RE: [PATCH]libsas : do not set invalid phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
[Jack Wang] 
Sorry, I forget to mention the patch are based on dan's V2 libsas fix.
> Hi all,
> 
> For detecting a failure to transmit initial dev to host FIS as described
in
> section G.5 of sas-2 r 04b , In order to generate the dev to host FIS, we
> send a link reset to the expander port, but this may still fail for some
> device, when this happened , we should ignore this , do not set the phy,
let
> libsas find the device later .
> 
> >From a315c8ee6f6b7ad000d6dc72d31dfb576ecbceb5 Mon Sep 17 00:00:00 2001
> From: Jack Wang <jack_wang@xxxxxxxxx>
> Date: Tue, 27 Dec 2011 02:25:19 -0500
> Subject: [PATCH] don't set the invalid phy
> 
> Signed-off-by: Lindar Liu <Lindar_liu@xxxxxxxxx>
> Signed-off-by: Jack Wang <jack_wang@xxxxxxxxx>
> ---
>  drivers/scsi/libsas/sas_expander.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/scsi/libsas/sas_expander.c
> b/drivers/scsi/libsas/sas_expander.c
> index e47599b..c7a27c7 100644
> --- a/drivers/scsi/libsas/sas_expander.c
> +++ b/drivers/scsi/libsas/sas_expander.c
> @@ -304,6 +304,12 @@ static int sas_ex_phy_discover_helper(struct
> domain_device *dev, u8 *disc_req,
>  		/* Wait for the reset to trigger the negotiation */
>  		msleep(500);
>  	}
> +	if ((dr->attached_dev_type == 0 &&
> +		dr->attached_sata_dev)) {
> +		sas_printk("Found sata attached_dev_type = 0, ignore it to
> let it found later!\n");
> +		return 0;
> +	}
> +
>  	sas_set_ex_phy(dev, single, disc_resp);
>  	return 0;
>  }
> --
> 1.7.1


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux