Received: by 10.213.65.68 with SMTP id h4csp892090imn; Tue, 27 Mar 2018 10:41:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+P+cnh2E4R0pNqMk4AHEu5flgwZxgGygI/U9Bl7gJdxHdQuOsIHKaqyAXNsZ09lsV0dIDI X-Received: by 10.99.123.70 with SMTP id k6mr173080pgn.292.1522172504238; Tue, 27 Mar 2018 10:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522172504; cv=none; d=google.com; s=arc-20160816; b=kPawsLysAvMs/X0GD3k+h69lsZUKqCT0+Lhx2TMa25AtRrZHuVphjlK25IlkjyLMQ9 usEERyB58nunTgPLf1ZZqgoaSnZyvS8E2E1Lho2x1jfk15iuq/Tr1Zyh4wMlQm7jqVMl QHD3Lt3fQz+VdQ0ue7hi1TKc5/9OPmrluBh+UWP9tt2sI+bxGy0wjCQWZD5Bo23dNikM 59L8AStrg6bVTpViJDLCMKSXPWl6hjdHtkSo4Wer66ac0cn6uzbrLXK1eLG9qlJ+ZUS/ jYrTL+r3lggnENcIiSn9Y3V7PEQSVJebmzKAnhW5t9TgymGoxtMVgzCaKSd+ILNkQ/2n 2iMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bM/3ISDddme7AxOm/ehPzCTXp/SXtBGBpebeRo8D0ng=; b=0h+XY6vjQ72WDddOesZ2UAvEWUCQINIrTVEY0vyyS0DR2jWzsX8I9BV4m+eeOG3D76 mzOyxHxYMXGicZp13wL9jM6jBlp6oOkZKaYQ3Sa32JrZgKVD5+bcCjOKZS5ClxOnuDRM Muyl4hZPXSOvXP4lM47IB0qXD4ASdklQ5oQGExRytJSaIBhjuoE6gLV9p3HV5A6KpdrX BzQQ/h+sIYgEdmpUVyWrTPyzgfMRapf2KQENOlXPwHpeSxLHuXWbiwPfekeC24SLnlJk Mdn62E+ldW14R5NJftsuCIkYcVQa/k8iNkwJUrfYtm8fyGXFog+RyBkMcrxxfO3rk502 JQGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17-v6si1721498plm.352.2018.03.27.10.41.29; Tue, 27 Mar 2018 10:41:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754196AbeC0QeP (ORCPT + 99 others); Tue, 27 Mar 2018 12:34:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44232 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbeC0QeL (ORCPT ); Tue, 27 Mar 2018 12:34:11 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5986C1210; Tue, 27 Mar 2018 16:34:10 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dirk Behme , Mark Craske , Ulf Hansson Subject: [PATCH 4.14 017/101] mmc: core: Disable HPI for certain Micron (Numonyx) eMMC cards Date: Tue, 27 Mar 2018 18:26:49 +0200 Message-Id: <20180327162751.030735190@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dirk Behme commit dbe7dc6b9b28f5b012b0bedc372aa0c52521f3e4 upstream. Certain Micron eMMC v4.5 cards might get broken when HPI feature is used and hence this patch disables the HPI feature for such buggy cards. In U-Boot, these cards are reported as Manufacturer: Micron (ID: 0xFE) OEM: 0x4E Name: MMC32G Revision: 19 (0x13) Serial: 959241022 Manufact. date: 8/2015 (0x82) CRC: 0x00 Tran Speed: 52000000 Rd Block Len: 512 MMC version 4.5 High Capacity: Yes Capacity: 29.1 GiB Boot Partition Size: 16 MiB Bus Width: 8-bit According to JEDEC JEP106 manufacturer 0xFE is Numonyx, which was bought by Micron. Signed-off-by: Dirk Behme Signed-off-by: Mark Craske Cc: # 4.8+ Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/core/card.h | 1 + drivers/mmc/core/quirks.h | 6 ++++++ 2 files changed, 7 insertions(+) --- a/drivers/mmc/core/card.h +++ b/drivers/mmc/core/card.h @@ -82,6 +82,7 @@ struct mmc_fixup { #define CID_MANFID_APACER 0x27 #define CID_MANFID_KINGSTON 0x70 #define CID_MANFID_HYNIX 0x90 +#define CID_MANFID_NUMONYX 0xFE #define END_FIXUP { NULL } --- a/drivers/mmc/core/quirks.h +++ b/drivers/mmc/core/quirks.h @@ -109,6 +109,12 @@ static const struct mmc_fixup mmc_ext_cs */ MMC_FIXUP_EXT_CSD_REV(CID_NAME_ANY, CID_MANFID_HYNIX, 0x014a, add_quirk, MMC_QUIRK_BROKEN_HPI, 5), + /* + * Certain Micron (Numonyx) eMMC 4.5 cards might get broken when HPI + * feature is used so disable the HPI feature for such buggy cards. + */ + MMC_FIXUP_EXT_CSD_REV(CID_NAME_ANY, CID_MANFID_NUMONYX, + 0x014e, add_quirk, MMC_QUIRK_BROKEN_HPI, 6), END_FIXUP };