fsi: Lock mutex for master device registration
authorEddie James <eajames@linux.ibm.com>
Wed, 9 Aug 2023 18:08:14 +0000 (13:08 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 11 Aug 2023 04:02:14 +0000 (13:32 +0930)
commitb1d3a803acfa900611d5a1393fc4aef801cb1385
treeafa4c49642196c9d7d0af2f752c9c15e84db97cd
parentadde0e112c6365c6a930a3d8cd0c7a4accd55adc
fsi: Lock mutex for master device registration

Because master device registration may cause hub master scans, or
user scans may begin before device registration has ended, so the
master scan lock must be held while registering the device.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230809180814.151984-3-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-core.c