]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: pm8001: Initialize devices in pm8001_alloc_dev()
authorIgor Pylypiv <ipylypiv@google.com>
Mon, 21 Oct 2024 20:18:28 +0000 (13:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Nov 2024 01:45:16 +0000 (20:45 -0500)
commit4501ea5f0a5ca1a3fe58ef7b48f1bd3829c6c7e5
tree9641be97c750be57a0333f3a2ca90e89b9819330
parentc8d81a438544a8c439b89bd88cfdc35117011658
scsi: pm8001: Initialize devices in pm8001_alloc_dev()

Devices can be allocated and freed at runtime. For example during a soft
reset all devices are freed and reallocated upon discovery.

Currently the driver fully initializes devices once in pm8001_alloc().
Allows initialization steps to happen during runtime, avoiding any
leftover states from the device being freed.

Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Terrence Adams <tadamsjr@google.com>
Link: https://lore.kernel.org/r/20241021201828.1378858-1-tadamsjr@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/pm8001/pm8001_sas.c