Hi Mark,
On Tue, Jan 28, 2014 at 03:42:12PM +0000, Mark Brown wrote:
> On Tue, Jan 28, 2014 at 02:35:06PM +0200, Baruch Siach wrote:
> > So how about doing devm_gpio_request_one() in probe() right after
> > devm_spi_register_master()? This should be compatible with deferral, and
> > yet avoid open coding the "cs-gpios" property parsing as the pl022 driver
> > does.
>
> It needs to before otherwise we'll try to instantiate the slaves without
> their chip select which isn't going to be a great idea. The ideal thing
> would be for this to be handled in the core rather than in the
> individual drivers, the property is standard.
So until the core code gains this ability to request gpios what is the best
option? Do as pl022 is doing? Leave it at .setup? Something else?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html