[PATCH] slimbus: Linux driver framework for SLIMbus.
From: Mark Brown <hidden>
Date: 2012-06-04 10:27:52
Also in:
linux-arm-msm, linux-devicetree, lkml
From: Mark Brown <hidden>
Date: 2012-06-04 10:27:52
Also in:
linux-arm-msm, linux-devicetree, lkml
On Mon, Jun 04, 2012 at 03:21:06AM -0700, Sagar Dharia wrote:
quoted
b) Similarly to (a) the driver may be probed before the device has been given a logical address (LA). This makes sense in the case of driver that turns on the device (say via gpio) once the bus has booted. However, the driver then needs to sit and poll slim_get_logical_addr() until the logical address.
This is not the case anymore. While taking care of the comments for RFC, I have introduced a completion that will be signalled when LA is given to the device. The driver can wait on that completion (wait_enum) instead of polling.
This would mean that the thread the probe is happening in will be blocked until the LA is assigned. That sounds like it might cause problems, either slowing things down or worst case causing a deadlock. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120604/56d38981/attachment.sig>