From patchwork Tue Oct 18 16:51:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9382715 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 00E4D60839 for ; Tue, 18 Oct 2016 16:51:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7558295F9 for ; Tue, 18 Oct 2016 16:51:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBBC62963C; Tue, 18 Oct 2016 16:51:07 +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 455D6295F9 for ; Tue, 18 Oct 2016 16:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757116AbcJRQvG (ORCPT ); Tue, 18 Oct 2016 12:51:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34474 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755421AbcJRQvF (ORCPT ); Tue, 18 Oct 2016 12:51:05 -0400 Received: by mail-wm0-f66.google.com with SMTP id d199so310725wmd.1 for ; Tue, 18 Oct 2016 09:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=O13eKClhaJZsqkpaQIgOj/9ugJ0cp0tR4eW5fScmHMU=; b=hbw7jcOvifjZbRWDdqwQHCpBSQr5QQsrKTdWZBYoPvGDOWxHK6mb6uxfLiwyAxS80y AIEECARMnJYBfFLgmYus1l9AQ2UhdXVxtgmRL1oTQHG0a8aeZbkvbWvKIKD9VIeSaC1y 6FSHziH5/tvx7FZd4a/1iIrVDqn0tDfroh8dKUbnVizCEM4LRH7QXNH3UYylRFwTHowW 5g/fbU/cZLudsOOZfQnCX7eRk7EFAltMUhtlZDuV+IbFLIWhrQ7zjUD+iXqYkAlTo647 Ux1B2PyBXezRaDFyjmbyur8sJfq/ZGYMLELB8O+wSDpnbOwHfQXbmhoVkrWqGoJAOXOK x5tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=O13eKClhaJZsqkpaQIgOj/9ugJ0cp0tR4eW5fScmHMU=; b=baJCh6z8JG+8wuDlsxtx7sYOGH2iKEeMAhhBxG0jZ0Y12sQ0KbFDqmk0z+WN3ake7s h87pcb/woPeTZb3tK10/tCCxkcWtVRoHV+o66HY3KwktlPCbj42L5pQ7TrBkZ4T9nawi YTn5XUc4T47jpZVWjjWosZxssnLnpOWTe8+RUjqLOsMUjIjAu+kCVEuZ9JJ/DornRQ1y ve/MjRLQgl6vubg8KFFYO9XCwt5BwIkMivbprqKwWoC1YcnIvFUwT1wIS4zq9yCwnh+p WVoDtgD4IqZtbzvewxEApCYt15EURDMVmQkBjsU7Rh58V3LFzYcTZ7k9EwfUtK6nnyGB AgOg== X-Gm-Message-State: AA6/9RmPNPpmdHHQn1hC24ohXqsbkCHHBFNYPIknKDd3XOX7T+DzjqHXicZ6FxkuzodJXA== X-Received: by 10.194.79.170 with SMTP id k10mr876307wjx.209.1476809464219; Tue, 18 Oct 2016 09:51:04 -0700 (PDT) Received: from localhost ([46.222.188.157]) by smtp.gmail.com with ESMTPSA id p2sm363418wme.4.2016.10.18.09.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 09:51:03 -0700 (PDT) From: Xose Vazquez Perez Cc: Xose Vazquez Perez , Takahiro Yasui , Mike Christie , Matthias Rudolph , Christophe Varoqui , "James E . J . Bottomley" , "Martin K . Petersen" , SCSI ML , device-mapper development Subject: [PATCH] scsi_devinfo: apply to HP-rebranded same options as Hitachi Date: Tue, 18 Oct 2016 18:51:01 +0200 Message-Id: <20161018165101.4286-1-xose.vazquez@gmail.com> X-Mailer: git-send-email 2.10.1 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). {"HITACHI", "DF400", "*", BLIST_REPORTLUN2}, {"HITACHI", "DF500", "*", BLIST_REPORTLUN2}, The same should have been done also for HP counterparts. Cc: Takahiro Yasui Cc: Mike Christie Cc: Matthias Rudolph Cc: Christophe Varoqui Cc: James E.J. Bottomley Cc: Martin K. Petersen Cc: SCSI ML Cc: device-mapper development 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},