login
Header Space

 
 

Re: Smartmedia/xd card support - request for comments

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alex Dubov <oakad@...>
Cc: <joern@...>, <linux-kernel@...>, <ben@...>
Date: Saturday, April 19, 2008 - 2:37 am

On Fri, 18 Apr 2008, Alex Dubov wrote:

First off, can you please use a mail client which does line breaks at
around 78 chars ?
 

That's all fine. Nobody asked for the backend to know about smartmedia
on FLASH format details. The MTD NAND FLASH layer does not care about
on FLASH data format at all. It provides merily access on the hardware
level.

I agree that your approach of making the SM/XD layer capable of
handling clever and dumb hardware adapters is a good one.

The point where I stringly disagree is that your implementation is
forcing people with dumb hardware (see drivers/mtd/nand/*) to
reimplement the (maybe already) existing drivers in order to make use
of the ssfdc format, which will not work with the following real world
example:

------------------
| NAND controller |----------| On board NAND
| with HW ECC     |
|                 |----------| SmartMedia Card
------------------

Having a separate driver infrastructure for clever controllers, which
provide only semi raw access to the FLASH chip is fine simply because
such controllers do not fit into the MTD layer.


Well, you probably do this with an iotctl anyway. So what's preventing
you to modify the mtd block layer to handle client private ioctls.

Also there is no real requirement to use the mtd block layer at all
for that. Putting your layer on top of the raw MTD device is fine IMO.


That's the best excuse I ever heard for not improving code which has
shortcomings.

Thanks,
	tglx
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Smartmedia/xd card support - request for comments, Alex Dubov, (Thu Apr 17, 4:50 am)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Thu Apr 17, 9:35 am)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Thu Apr 17, 9:38 am)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Thu Apr 17, 3:11 pm)
Re: Smartmedia/xd card support - request for comments, Alex Dubov, (Fri Apr 18, 11:05 pm)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Sat Apr 19, 2:37 am)
Re: Smartmedia/xd card support - request for comments, Alex Dubov, (Sat Apr 19, 10:25 pm)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Fri Apr 18, 5:35 am)
Re: Smartmedia/xd card support - request for comments, Alex Dubov, (Fri Apr 18, 10:49 pm)
Re: Smartmedia/xd card support - request for comments, Thomas Gleixner, (Sat Apr 19, 1:56 am)
Re: Smartmedia/xd card support - request for comments, Andy Lutomirski, (Thu Apr 17, 9:10 am)
Re: Smartmedia/xd card support - request for comments, Arnd Bergmann, (Thu Apr 17, 9:36 am)
speck-geostationary