Re: [alsa-devel] [RFC 09/14] SoundWire: Add support to handle Slave status change

From: Pierre-Louis Bossart
Date: Mon Nov 14 2016 - 12:38:17 EST


On 11/14/16 10:08 AM, Charles Keepax wrote:
There are some issues with this, as the slave driver only probes
when the device actually shows up on the bus. However often
(especially in embedded contexts) some things may need to be
done to enable the slave. For example it may be held in reset or
its power supplies switched off until they are need. As such it
generally helps if the device probe can be called before it shows
up on the bus, the device probe can then do the necessary actions
to enable the device at which point it will show up on the bus.

Yes, this point was made at the LPC miniconference. What's not clear to me is if you would want the codec driver to be notified that the bus is operational and let it handle things like sideband power management for that device, or is someone else needs to know.