[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8b0f76b2-d65f-2faf-a6e0-3623a71c18f5@huawei.com>
Date: Mon, 26 Sep 2022 20:18:46 +0800
From: Jason Yan <yanaijie@...wei.com>
To: John Garry <john.garry@...wei.com>, <martin.petersen@...cle.com>,
<jejb@...ux.ibm.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<hare@...e.com>, <hch@....de>, <bvanassche@....org>,
<jinpu.wang@...ud.ionos.com>
Subject: Re: [PATCH v2 6/8] scsi: libsas: use sas_phy_match_dev_addr() instead
of open coded
On 2022/9/26 19:43, John Garry wrote:
> On 24/09/2022 08:34, Jason Yan wrote:
>> @@ -2115,8 +2109,7 @@ int sas_find_attached_phy(struct expander_device
>> *ex_dev,
>> for (phy_id = 0; phy_id < ex_dev->num_phys; phy_id++) {
>> phy = &ex_dev->ex_phy[phy_id];
>> - if (SAS_ADDR(phy->attached_sas_addr)
>> - == SAS_ADDR(dev->sas_addr))
>> + if (sas_phy_match_dev_addr(dev, phy))
>
> It would be nice if the series was arranged such that
> sas_phy_match_dev_addr() is available when you introduce
> sas_phy_match_dev_addr()
I assume you mean sas_phy_match_dev_addr() should available before
introducing sas_find_attached_phy().
Yes, I can make that change.
Thanks,
Jason
>
>> return phy_id;
>> }
>
> Thanks,
> John
> .
Powered by blists - more mailing lists