From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from co9ehsobe002.messaging.microsoft.com ([207.46.163.25] helo=co9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXjR9-0008Tw-FT for linux-mtd@lists.infradead.org; Thu, 02 May 2013 02:39:59 +0000 Message-ID: <5181D25C.2080001@freescale.com> Date: Thu, 2 May 2013 10:41:32 +0800 From: Huang Shijie MIME-Version: 1.0 To: David Mosberger-Tang Subject: Re: nand_base: fix for ONFI chips that do not support GET/SET FEATURES References: <5181CF32.1090502@freescale.com> In-Reply-To: Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Cc: Artem Bityutskiy , Brian Norris , "linux-mtd@lists.infradead.org" , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , =D3=DA 2013=C4=EA05=D4=C202=C8=D5 10:34, David Mosberger-Tang =D0=B4=B5=C0= : > + !(le16_to_cpu(chip->onfi_params.opt_cmd) & 4)) it's better to add a macro to replace the hardcore '4', such as #define ONFI_OPT_CMD_SET_GET_FEAT (1 << 2) Just a suggestion. :) thanks Huang Shijie