From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: "Ewan D. Milne" <emilne@redhat.com>
Cc: linux-scsi@vger.kernel.org,
James Bottomley <James.Bottomley@hansenpartnership.com>
Subject: Re: [PATCH] ses: Fix SAS device detection in enclosure
Date: Mon, 16 Jan 2017 16:02:24 -0500 [thread overview]
Message-ID: <yq1ziiqk9b3.fsf@oracle.com> (raw)
In-Reply-To: <1483997616-18900-1-git-send-email-emilne@redhat.com> (Ewan D. Milne's message of "Mon, 9 Jan 2017 16:33:36 -0500")
>>>>> "Ewan" == Ewan D Milne <emilne@redhat.com> writes:
Ewan> The call to scsi_is_sas_rphy() needs to be made on the SAS
Ewan> end_device, not on the SCSI device.
Ewan> Fixes: 835831c57e9b ("ses: use scsi_is_sas_rphy instead of
Ewan> is_sas_attached") Reviewed-by: Johannes Thumshirn
Ewan> <jthumshirn@suse.de> Signed-off-by: Ewan D. Milne
Ewan> <emilne@redhat.com> ---
Ewan> drivers/scsi/ses.c | 2 +- 1 file changed, 1 insertion(+), 1
Ewan> deletion(-)
Ewan> diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c index
Ewan> 8c9a35c..50adabb 100644
Ewan> --- a/drivers/scsi/ses.c
Ewan> +++ b/drivers/scsi/ses.c
Ewan> @@ -587,7 +587,7 @@ static void ses_match_to_enclosure(struct
Ewan> enclosure_device *edev,
Ewan> ses_enclosure_data_process(edev,
Ewan> to_scsi_device(edev->edev.parent), 0);
Ewan> - if (scsi_is_sas_rphy(&sdev->sdev_gendev))
Ewan> + if (scsi_is_sas_rphy(sdev->sdev_target->dev.parent))
Ewan> efd.addr = sas_get_address(sdev);
Ewan> if (efd.addr) {
Ewan> -- 1.8.3.1
James?
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2017-01-16 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 21:33 [PATCH] ses: Fix SAS device detection in enclosure Ewan D. Milne
2017-01-16 21:02 ` Martin K. Petersen [this message]
2017-01-17 7:56 ` Johannes Thumshirn
2017-01-17 14:47 ` James Bottomley
2017-01-17 19:02 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq1ziiqk9b3.fsf@oracle.com \
--to=martin.petersen@oracle.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=emilne@redhat.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.