From patchwork Tue Apr 12 12:35:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kongxinwei X-Patchwork-Id: 65612 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1892974qge; Tue, 12 Apr 2016 05:34:50 -0700 (PDT) X-Received: by 10.98.71.149 with SMTP id p21mr4280924pfi.133.1460464490857; Tue, 12 Apr 2016 05:34:50 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cg4si10095343pad.22.2016.04.12.05.34.50 for ; Tue, 12 Apr 2016 05:34:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756611AbcDLMet (ORCPT ); Tue, 12 Apr 2016 08:34:49 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:62037 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756589AbcDLMer (ORCPT ); Tue, 12 Apr 2016 08:34:47 -0400 Received: from 172.24.1.60 (EHLO szxeml433-hub.china.huawei.com) ([172.24.1.60]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DFB77569; Tue, 12 Apr 2016 20:34:33 +0800 (CST) Received: from localhost (10.46.21.222) by szxeml433-hub.china.huawei.com (10.82.67.210) with Microsoft SMTP Server id 14.3.235.1; Tue, 12 Apr 2016 20:34:24 +0800 From: Xinwei Kong To: , , , CC: , , , , Subject: [PATCH 1/1] scsi: usb: fix bug which some usb isn't used Date: Tue, 12 Apr 2016 20:35:54 +0800 Message-ID: <1460464554-14116-1-git-send-email-kong.kongxinwei@hisilicon.com> X-Mailer: git-send-email 1.9.4.msysgit.2 MIME-Version: 1.0 X-Originating-IP: [10.46.21.222] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.570CEB5B.02B5, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: e4a493926f259129cd30414c6984b187 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org some usb disk such as Manufacturer Lenovo will have some problem in init process. when it run "scsi_dh_find_driver" function, because this parameter of "sdev->inquiry[5]" is 115, it will return "alua" in "scsi_dh_find_driver" function and will have some error log (alua: Attach failed (-22)). some usb init will fail and isn't used. Signed-off-by: Xinwei Kong --- drivers/scsi/scsi_dh.c | 3 --- 1 file changed, 3 deletions(-) -- 2.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/scsi/scsi_dh.c b/drivers/scsi/scsi_dh.c index 54d446c..36b3f354e 100644 --- a/drivers/scsi/scsi_dh.c +++ b/drivers/scsi/scsi_dh.c @@ -77,9 +77,6 @@ scsi_dh_find_driver(struct scsi_device *sdev) { const struct scsi_dh_blist *b; - if (scsi_device_tpgs(sdev)) - return "alua"; - for (b = scsi_dh_blist; b->vendor; b++) { if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && !strncmp(sdev->model, b->model, strlen(b->model))) {