mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SCSI] ses: update enclosure data on hot add
Now that hot add works correctly, if a new device is added, we're still operating on stale enclosure data, so fix that by updating the enclosure diagnostic pages when we get notified of a device hot add Signed-off-by: James Bottomley <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
43d8eb9cfd
commit
21fab1d059
2 changed files with 100 additions and 71 deletions
|
|
@ -315,6 +315,9 @@ int enclosure_add_device(struct enclosure_device *edev, int component,
|
|||
|
||||
cdev = &edev->component[component];
|
||||
|
||||
if (cdev->dev == dev)
|
||||
return -EEXIST;
|
||||
|
||||
if (cdev->dev)
|
||||
enclosure_remove_links(cdev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue