[PATCH] mtd: rawnand: Skip timing mode readback check for GigaDevice NAND

Teng Wu gigadevice2025 at gmail.com
Fri Nov 27 04:24:12 PST 2026


On Tue, Nov 24, 2026 at 02:40:24PM +0100, Miquel Raynal wrote:
> Hi,
> 
> >  	if (request != tmode_param[0]) {
> > +		/*
> > +		* GigaDevice raw NAND chips (manufacturer ID 0xC8) support
> > +		* the timing modes advertised in their ONFI parameter page.
> > +		* Skip the strict ack check; keep it for other vendors.
> > +		*/
> > +		if (chip->id.data[0] == 0xC8) {
> > +			goto update_interface_config;
> > +		}
> > +
> 
> There is a vendor driver, you shall use it rather than polluting the
> core with vendor specific fixups. Check what
> macronix_nand_fix_broken_get_timings() does for example.
> 
> Thanks,
> Miquèl

Thank you for your review.

I agree that vendor-specific workarounds do not belong in nand_base.c. 
Adding a dedicated nand_gigadevice.c would be a substantial piece of 
work and is outside the scope of this effort.I understand if this patch
is rejected, and I will drop it for now. 

That said, if there is a significant future need to add nand_gigadevice.c,
we will refer back to the changes in this patch.



More information about the linux-mtd mailing list