From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] [OneNAND] OTP support re-implementation 1/1 From: Artem Bityutskiy To: Amul Kumar Saha In-Reply-To: References: <87D6E94B11734CE1A253D9AE203F4192@sisodomain.com> <4A94CF0A.6060106@gmail.com> <6098B9D32DCD48C387EF96034FFFC55D@sisodomain.com> <1251466736.3514.10.camel@localhost> <9c9fda240908310234h6cef3afev6a3f6e315321631b@mail.gmail.com> <4A9E0C47.205@gmail.com> <8A3568961C4E4E7495A397D2267B6E37@sisodomain.com> <1251958245.5060.6.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Thu, 03 Sep 2009 14:19:03 +0300 Message-Id: <1251976743.5060.13.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: David Woodhouse , Kyungmin Park , linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2009-09-03 at 16:07 +0530, Amul Kumar Saha wrote: > >> >> + > >> >> +config ONENAND_OTP_AREA_BLOCK0 > >> >> + bool "BOTH OTP area AND Block[0]" > >> >> + depends on MTD_ONENAND_OTP&& !ONENAND_OTP_AREA&& !ONENAND_OTP_BLOCK0 > >> >> + select ON_OTP_AREA_BLOCK0 > >> >> + > >> >> +endif #MTD_ONENAND_OTP > >> > > >> > If there were 10 OTP blocks, would you add 10 options? > >> > I mean, are these switches really needed? Can we remove them? > >> > >> There is just one OTP block. > >> Three options are provided for the three known combinations of 1st Block and the OTP Block. > >> The option to choose one should be provided to the user. > > > > Wouldn't it be better to make this run-time configurable? E.g., module > > parameters? Too many config options are frowned upon usually. > > > > I got it. But I guess in this case the numbers are not that big enough to call for Module parameters > implementation. > Is it okay? IMO, the amount of OneNAND config options is already large, and I would not introduce more. With module parameters you may always add kernel boot options like: onenand.otpblk=0 or something like this. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)