From patchwork Fri Nov 17 20:19:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 10063769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B1552601D3 for ; Fri, 17 Nov 2017 20:31:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3CB42AD93 for ; Fri, 17 Nov 2017 20:31:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 986312ADB8; Fri, 17 Nov 2017 20:31:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2936E2AD93 for ; Fri, 17 Nov 2017 20:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933141AbdKQUb3 (ORCPT ); Fri, 17 Nov 2017 15:31:29 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:43346 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759039AbdKQUTT (ORCPT ); Fri, 17 Nov 2017 15:19:19 -0500 Received: by mail-wm0-f65.google.com with SMTP id x63so8696623wmf.2 for ; Fri, 17 Nov 2017 12:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=DYtsadmRzbCN8AtDJs3ZiPufEydmtxuc2n+wG2KZfuo=; b=cLdUYxDDlxbXgmvR0YA1w0qxrRJyfqZ/g2Ie3Abikmvo3H+Nku5wDHLN4rxmBy/UKy ilC1KxSIFAyacBvzMaCBmiZ8qQb1UkEYXv1n2GACxCCeHCBfypVUaguR/KUxBlpNwUZn VmTvSd3X6jm0engRHOaqU+qVF9YZSMs6SQF3cujf0Lq0ns0HlZ4E3OKyetobXKjIgGKO j+7h2KPK7ufPU2ptWjRKB7fPUff1Wy8ndHpWKpqnP8Vr3/uyYVzdaZUky36zD4dH8136 R8tkfGCgmgR7Kx0LcrhhrBOFGsiqJ1FXVJq7RKvW2Zo7eA6yCpS0/wtvCX5SmN3bh29c /wYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DYtsadmRzbCN8AtDJs3ZiPufEydmtxuc2n+wG2KZfuo=; b=cGQQwbzzqkhIEHP1OPvutzrX6ix3Wh0YubE+3O6t5eS7OWbmtZihq3pxPXsT3HztoP V68xeKQPM/gJfFQPGGO7GzCpzjz658bLtHkrAtNRqLpj3sl4DQMerVyV7adbcz0jm1H1 07ZG06m4eI44V40Jkot7TWhacxxXdH5PdYx+dVZYRz4u5nABTQTW6/yvJvXn7cZWraxF joySzTcBELDiNJgOEO91R9DPD1iFQTxww5jg5w1J4rGOlOUKVp94RrBOWRR4Z6Qpy6BF tWmfvGi+0pROmJzivQscoziMzHO4z/aL02m/PYmHxPLb3dCv6+3+3FqpIx2mDfE0mLZS mICA== X-Gm-Message-State: AJaThX7vuuODHVYGldn9Srj2T3/XrLOwQhhiQMe/B0VvtENbJSX06sbI Yuj1NE1WKw7P0rg8ja45YA== X-Google-Smtp-Source: AGs4zMZeC0V1g7lz0JcgE99e8vB98fH7MriPN+WHhFfStzGZuZhH4RHBXep/bR62WoQX0y9dPxNT4A== X-Received: by 10.28.140.15 with SMTP id o15mr4779930wmd.8.1510949957784; Fri, 17 Nov 2017 12:19:17 -0800 (PST) Received: from localhost ([46.222.203.184]) by smtp.gmail.com with ESMTPSA id d23sm6933338wma.48.2017.11.17.12.19.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Nov 2017 12:19:17 -0800 (PST) From: Xose Vazquez Perez Cc: Xose Vazquez Perez , Takahiro Yasui , Mike Christie , Matthias Rudolph , "Martin K . Petersen" , "James E . J . Bottomley" , SCSI ML Subject: [PATCH try #2] scsi_devinfo: apply to HP-rebranded the same flags as Hitachi Date: Fri, 17 Nov 2017 21:19:14 +0100 Message-Id: <20171117201914.8517-1-xose.vazquez@gmail.com> X-Mailer: git-send-email 2.14.3 To: unlisted-recipients:; (no To-header on input) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 627511e3e modified some Hitachi entries: Four models, OPEN-/DF400/DF500/DISK-SUBSYSTEM, can handle REPORT_LUN, and the BLIST_REPORTLUN2 flag needs to be set. And DF600 doesn't require any flags because it returns ANSI 03h (SPC). ~~~ The same should have been done also for HP counterparts. Cc: Takahiro Yasui Cc: Mike Christie Cc: Matthias Rudolph Cc: Martin K. Petersen Cc: James E.J. Bottomley Cc: SCSI ML Signed-off-by: Xose Vazquez Perez --- drivers/scsi/scsi_devinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c index 2464569..44d8cfb 100644 --- a/drivers/scsi/scsi_devinfo.c +++ b/drivers/scsi/scsi_devinfo.c @@ -186,9 +186,8 @@ static struct { {"HP", "C1557A", NULL, BLIST_FORCELUN}, {"HP", "C3323-300", "4269", BLIST_NOTQ}, {"HP", "C5713A", NULL, BLIST_NOREPORTLUN}, - {"HP", "DF400", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, - {"HP", "DF500", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, - {"HP", "DF600", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, + {"HP", "DF400", "*", BLIST_REPORTLUN2}, + {"HP", "DF500", "*", BLIST_REPORTLUN2}, {"HP", "OP-C-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"HP", "3380-", "*", BLIST_SPARSELUN | BLIST_LARGELUN}, {"HP", "3390-", "*", BLIST_SPARSELUN | BLIST_LARGELUN},