[PATCH 1/9] spi/pxa2xx: register driver properly
Grant Likely
grant.likely at secretlab.ca
Wed Dec 29 16:40:55 EST 2010
On Wed, Dec 29, 2010 at 10:26:35PM +0100, Sebastian Andrzej Siewior wrote:
> * David Brownell | 2010-12-29 09:00:36 [-0800]:
>
> >I detect an effort to change the classic model for board initialization in Linux: first set up
> >and register all system/platform devices on each
> >board then do the same for their drivers. ("hardware first" ... "software second".
>
> What are you suggesting? platform_driver_probe() does not work with
> hotpluged devices.
That assumption only holds for certain devices on certain boards.
platform_device_probe() is a machine specific optimization that I will
not hesitate to remove if it breaks the driver on other machines.
> I don't see a reason why it should be available to drivers. It is
> unlikely that platform devices are hotlpluged but not impossible.
More and more likely all the time though. Many drivers use the model
of registering child platform_devices (for instance, multi function
devices).
g.
More information about the linux-arm-kernel
mailing list