diff options
author | Eddie James <eajames@linux.ibm.com> | 2023-08-09 13:08:13 -0500 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2023-08-11 13:31:57 +0930 |
commit | adde0e112c6365c6a930a3d8cd0c7a4accd55adc (patch) | |
tree | d250f1b75675785b5c941651f617c3c630d3e3f8 /drivers/fsi/cf-fsi-fw.h | |
parent | 85f4e899de32ba3cd27fa601b17a700c85633626 (diff) | |
download | lwn-adde0e112c6365c6a930a3d8cd0c7a4accd55adc.tar.gz lwn-adde0e112c6365c6a930a3d8cd0c7a4accd55adc.zip |
fsi: Improve master indexing
Master indexing is problematic if a hub is rescanned while the
root master is being rescanned. Always allocate an index for the
FSI master, and set the device name if it hasn't already been set.
Move the call to ida_free to the bottom of master unregistration
and set the number of links to 0 in case another call to scan
comes in before the device is removed.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230809180814.151984-2-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi/cf-fsi-fw.h')
0 files changed, 0 insertions, 0 deletions