Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Buesch <mb@...>
Cc: <sfr@...>, <linux-kernel@...>, <david-b@...>, <piotr.skamruk@...>, <drzeus-mmc@...>, <openwrt-devel@...>
Date: Monday, July 14, 2008 - 4:54 pm

On Mon, 14 Jul 2008 21:09:18 +0200
Michael Buesch <mb@bu3sch.de> wrote:


I guess that incrementing `instance' even if the allocation failed is
somewhat wrong.


No check for overruns?


If this had used the typesafe

	d->pins = *pins;

I wouldn't have needed to run all around the place working out if
overflow/underflow checks were needed here.


What's going on here?  So new kernel/userspace ABI.  Not documented in
changelog, not documented in code comments, not documented in
Documentation/ABI.  This forces reviewers to reverse-engineer the
interface design from the implementation and then attempt to review
that design.  Reviewers not happy!

Userspace interfaces are the things which we care about most, because
they are the things which we can never change.  Please document them
prominently.


Now that is one weird way in which to document the interface!  What a
waste of kernel text :(


I'll skip this, pending suitable documentation of the proposed
interface design, and review of that design.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Mon Jul 14, 3:09 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 1:42 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Ben Nizette, (Tue Jul 15, 1:06 am)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, David Brownell, (Mon Jul 21, 4:49 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 9:00 am)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Andrew Morton, (Mon Jul 14, 4:54 pm)
Re: [PATCH] Add dynamic MMC-over-SPI-GPIO driver, Michael Buesch, (Tue Jul 15, 8:58 am)