Thread (4 messages) 4 messages, 2 authors, 2012-08-22

Re: [PATCH] spi: Master driver for NXP SC18IS602/603

From: Mark Brown <hidden>
Date: 2012-08-22 19:24:34
Also in: linux-spi

On Wed, Aug 22, 2012 at 12:19:59PM -0700, Guenter Roeck wrote:
On Wed, Aug 22, 2012 at 07:32:30PM +0100, Mark Brown wrote:
quoted
This feels like the wrong thing to do here: given that the user needs to
explicitly ask for the device to be instantiated we really ought to be
one the right bus so this should be more of an error.  Not sure what I
can constructively sugget except for an error message and perhaps
returning -EINVAL though.
Makes sense. Changing the return value to -EINVAL results in the following
warning message from the driver subsystem.
sc18is602: probe of 7-0010 failed with error -22
I think this should be good enough, as there are other possible reasons for the
call to fail which result in similar messages. Do you want to make that change,
or should I change it and resubmit ?
The above looks good, we don't need to go overboard - so long as it's
not a silent fail I think we're OK.  Please send an incremental change.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help