From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 251BEC43334 for ; Thu, 14 Jul 2022 04:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234437AbiGNE1u (ORCPT ); Thu, 14 Jul 2022 00:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235194AbiGNE1D (ORCPT ); Thu, 14 Jul 2022 00:27:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5212C2BB02; Wed, 13 Jul 2022 21:24:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B75D7B82372; Thu, 14 Jul 2022 04:23:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54F28C341CA; Thu, 14 Jul 2022 04:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657772638; bh=TrRXWrkQMD56R74PiDCIB/2Sib6HRyWtjxg0iqFt938=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WGDAazUjLIzBKqnpKZMSDsDQqiJJOdwqUHhysKqOeu1Qchasu0XtOlZGRj+seRT6T dIg1VCbnJBl/3lYHnjIHu3jB2RhoCOw86gOC941ODt8+fE7V/jA17khvJFumJYudQ0 uJkT6DzoajrwHVq/k2JFWVvWRNdno0H3N1PJAO1zIXeLzQzxl2sXcwFdnSNmH5IaQq VK/jZRHXq0mLSHit4ATWgGMCGM/XuDsmHwIxMM8urqSO39z0FiBdTC5f+m+OKjLuNJ 9ege8LQFm/hsX7tpN+0zkOND9tRwpgmn2F9S78g/LOoyEicDPljc2chtZBCVF/LuyD 511kzsQaH1ViQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Keith Busch , Chris Egolf , Chaitanya Kulkarni , Christoph Hellwig , Sasha Levin , axboe@fb.com, sagi@grimberg.me, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 5.18 36/41] nvme-pci: phison e16 has bogus namespace ids Date: Thu, 14 Jul 2022 00:22:16 -0400 Message-Id: <20220714042221.281187-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220714042221.281187-1-sashal@kernel.org> References: <20220714042221.281187-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keith Busch [ Upstream commit 73029c9b23cf1213e5f54c2b59efce08665199e7 ] Add the quirk. Link: https://bugzilla.kernel.org/show_bug.cgi?id=216049 Reported-by: Chris Egolf Signed-off-by: Keith Busch Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index fe829377c7c2..ab575fdd8015 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3432,7 +3432,8 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_DISABLE_WRITE_ZEROES| NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE(0x1987, 0x5016), /* Phison E16 */ - .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, }, + .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN | + NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1b4b, 0x1092), /* Lexar 256 GB SSD */ .driver_data = NVME_QUIRK_NO_NS_DESC_LIST | NVME_QUIRK_IGNORE_DEV_SUBNQN, }, -- 2.35.1