soundwire: bus: split handling of Device0 events
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 25 Jul 2019 23:40:10 +0000 (18:40 -0500)
committerVinod Koul <vkoul@kernel.org>
Fri, 2 Aug 2019 16:59:38 +0000 (22:29 +0530)
commit15ed3ea2280e3afaea82afa664a6d1adc65b0009
treea5353ac173d9b2759004744b85f23b09e1d294ca
parent68acd85996f6456ad95b458f19bc7309ed530a4b
soundwire: bus: split handling of Device0 events

Assigning a device number to a Slave will result in additional events
when it reports its status in a PING frame. There is no point in
dealing with all the other devices in a loop, this can be done when a
non-device0 event happens.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190725234032.21152-19-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c