Thread (85 messages) 85 messages, 6 authors, 2021-03-30

Re: [PATCH V3 22/25] smartpqi: update enclosure identifier in sysf

From: Martin Wilck <hidden>
Date: 2021-01-25 23:56:32

On Mon, 2021-01-25 at 17:13 +0000, Don.Brace@microchip.com wrote:
From: Martin Wilck [mailto:mwilck@suse.com] 
Subject: Re: [PATCH V3 22/25] smartpqi: update enclosure identifier
in sysf
quoted
@@ -1841,7 +1841,6 @@ static void pqi_dev_info(struct pqi_ctrl_info
*ctrl_info,  static void pqi_scsi_update_device(struct pqi_scsi_dev
*existing_device,
        struct pqi_scsi_dev *new_device)  {
-       existing_device->devtype = new_device->devtype;
        existing_device->device_type = new_device->device_type;
        existing_device->bus = new_device->bus;
        if (new_device->target_lun_valid) {
I don't get this. Why was it wrong to update the devtype field?

Don: From patch Author...
If we don't remove that statement, following issue will crop up.

During initial device enumeration, the devtype attribute of the
device(in current case enclosure device) is filled in
slave_configure.
But whenever a rescan occurs, the f/w would return zero for this
field,  and valid devtype is overwritten by zero, when device
attributes are updated in pqi_scsi_update_device. Due to this lsscsi
output shows wrong values.
Thanks. It would be very helpful for reviewers to add comments in
cases like this.

Regards,
Martin
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help