Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4623365pxu; Thu, 10 Dec 2020 00:58:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1Yx9BNQ5EoQqZUJRSVE4gyYjDH2oSPHIulJNNO4fp9tcBN/pIeuFLPV0ruRqVYKrEJHTO X-Received: by 2002:a50:d553:: with SMTP id f19mr5577313edj.323.1607590738846; Thu, 10 Dec 2020 00:58:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607590738; cv=pass; d=google.com; s=arc-20160816; b=0VIbsv/QeXcC4DerePSRfQ0cRXHDRAH7JlFWDaao5wCCKHrjbzeZz8VmojmG7jWvU3 pDaoSQpqQCVe3voxZDJ9ybRZ+PW9TVmNzlcPqu2hT6WC+dWOaxgZGpd4tXHE4UjsWx2l AcovMz/yCzKFSeO3ll5GLl3FYbWzFmhv/t/9QFWiK5nUhp4deBYdx/g1x4kSg3JVYjgk nHoQgNetSYyG4wV5+2hY8q2DWP6vPVhfk94BpqQCjp6yW+wMAPEbhbbrh6S4bjhRHEdm WfQ75a9x6IkCBO/N/yIuqleJ/ZBRczEFbzqWKDXCbNclFs5KCE4ZxoFo+hFhUK5rlY2b UsHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:subject:cc:to:from:date:dkim-signature; bh=HCyDnFCdhOMjKJYaVtPXo6Biu4oISSf9NaYfiCXEhy0=; b=gHRj/7zIeHX4KT4dS7AuKrqE+mlBfNuzLpnANaQ9DqOunr8B0e/LEIRJGGmYI1B9vJ inM5GTjn9xlZdm3NrUapNojb9wdywcMDx/FSo2bt8popOUtgzHbERVm+QVhFlK+cP1pn hqf/m4wnUPcgKM6fBdKlJkXJxW9Q1xOyKqM6kB/GgzrOtVFM2J+rnctvsWVZCMd/fLAz nXIcjG1wV9e9hkmmK3Zs57OQbP6ST8XrT2SBgInS6MHLdioJvV2nhyDSP8DC4r2jfACr b+RM/t7FZl4qVJFs/jSoDDlxRlYH8vqRZKAUqYRdrG/1eciVOTqv5SJIc3YIhm9z3FCP LJaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=fHxlPR83; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md13si2126126ejb.324.2020.12.10.00.58.36; Thu, 10 Dec 2020 00:58:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=fHxlPR83; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730793AbgLJI4W (ORCPT + 99 others); Thu, 10 Dec 2020 03:56:22 -0500 Received: from mail-co1nam11on2082.outbound.protection.outlook.com ([40.107.220.82]:61792 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731463AbgLJI4G (ORCPT ); Thu, 10 Dec 2020 03:56:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fikhLL3J24E3QQoH2GuijSeTkcwSUJh68RkGpsfGL/iso2WpPguU1ClUbS7b+x3lra+MzurchyCtmLCZPy1UnT7yYWUCeojR3l08hIoTEygeMCeNqABzEBv78OYwgJsZsgOiD9Pbo4tkEJqCdpyvb+2cGrC3q3j2+XrheEqGZDBMrjYZSwjHxZWUZmFJQgQ4YjqBFp4u5i8zg0XfWFVcEJB5nc5PixOLIOJEcV18MP1shX7gzepQ6d/jj2/V82WNWJBw2d1w1QElTl5QYDk4GgpgQMd2YH4buBIaP902KFcMorlVhj7HM3h0d2DaMGMTK2N6X+CGURziEiRggaa4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HCyDnFCdhOMjKJYaVtPXo6Biu4oISSf9NaYfiCXEhy0=; b=Msm6rflapzuJCooRWPwotGZyKwB0oXJOUwkX2cydlTqAoFJSoVj4EsBHHVmHlAtdeJQxhr0TDBQ8PV64ntTR8uE8wNhaNVi6nLL+5STPZXMFCubM4cB9mxLWgCw0EEyDKdrklBcsQP2CgH8KKa6plbvi6BuQQKlwe+kC64gLrMnIgdHYjP1MzHYEYXvrzZn4ah6Bav7U8CstbaW9zLYcoZX+L/fIz/l/BQmgi38mNoUhiuNfwt9E2IGMEN68DBXZQVskqNx14qOc2l0mtqORuVrGP6Pi1M9uylhEcVcOuOFPtMiuD+v6MSV22+H+/xY9y43Ives+7/tBsYWJrc3HaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HCyDnFCdhOMjKJYaVtPXo6Biu4oISSf9NaYfiCXEhy0=; b=fHxlPR838zHjZp4fUBySmjIRrzw3vuZxBfoA9PAFNAlsmrUX48+hya+rDB90bhy3O1kndtVUKmIX6KMNgMYemXfrkXRIV7yqPBDLV6Kbqx1u158yktBBvTXBcxVrA+glEs5sAIIgCG39Mm/LQA3rqzkPHjpLDI8QzdZUt1l+37g= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=synaptics.com; Received: from SN2PR03MB2383.namprd03.prod.outlook.com (2603:10b6:804:d::23) by SA0PR03MB5482.namprd03.prod.outlook.com (2603:10b6:806:b3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Thu, 10 Dec 2020 08:55:19 +0000 Received: from SN2PR03MB2383.namprd03.prod.outlook.com ([fe80::412b:8366:f594:a39]) by SN2PR03MB2383.namprd03.prod.outlook.com ([fe80::412b:8366:f594:a39%9]) with mapi id 15.20.3654.012; Thu, 10 Dec 2020 08:55:19 +0000 Date: Thu, 10 Dec 2020 16:55:10 +0800 From: Jisheng Zhang To: Adrian Hunter , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: sdhci-of-dwcmshc: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN Message-ID: <20201210165510.76b917e5@xhacker.debian> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [192.147.44.204] X-ClientProxiedBy: BYAPR07CA0077.namprd07.prod.outlook.com (2603:10b6:a03:12b::18) To SN2PR03MB2383.namprd03.prod.outlook.com (2603:10b6:804:d::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (192.147.44.204) by BYAPR07CA0077.namprd07.prod.outlook.com (2603:10b6:a03:12b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Thu, 10 Dec 2020 08:55:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d79a2efc-36a9-45bb-2dae-08d89ce95238 X-MS-TrafficTypeDiagnostic: SA0PR03MB5482: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:983; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ujV3AHPd7uqhMoLzvhkmgXNHB/37yzn7HYPSfdJwhBNUBivL2+s704DsoD5xRpcZ4AsfGEVhvSg9+pWfeP+O7OeRumuf+L5QbxpwnM033BuYtRjGpAGfgR8NBnZXixlvo9Oi/sAmv8OnucIjcPCi2LqHlqkC0U2lzVVVw1oDoyBEy1qbPgi3UZUhiXHeOKvT8jyKFEkQcFaaxfQ4onTsSR6PwfeLRIj+aDTGUh5HnggvwUms2zH3NNbkuQ4H1IQVMAPFHkf6EcSyXbBGjTkov0GOEa9CCPey645RpXqwDXMg23udg2Qdnoq3KjF454zWQyJOqx/oPJxVwxUsx4QGwK+qqraWsgSOYTef5c3bK6OTpRtjPAiBTzX+t4HzIB/YHmz11UA8isj/vLCQOgqc4+oCYr5T+woKeKUOaBbOUTY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN2PR03MB2383.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(136003)(346002)(366004)(26005)(66946007)(7696005)(8676002)(52116002)(186003)(4326008)(110136005)(66556008)(6506007)(4744005)(9686003)(55016002)(66476007)(86362001)(8936002)(2906002)(956004)(34490700003)(5660300002)(83380400001)(16526019)(1076003)(6666004)(508600001)(133343001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiS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w3MJR5gyE4uC+k4q12o65P6dGroxz8MXu?= =?us-ascii?Q?AeDnGVw6Ugzx1nSkSZWo6xzzaROoOQJaGtdxWTzsnbgEs5i2k+cMkzEiHSYQ?= =?us-ascii?Q?TU5KJ/4M7GmYTSKpM+FBaESMXbTwveGxL8PQcAD5PYuJamljX1TLg9LrSaEs?= =?us-ascii?Q?QyOK?= X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-AuthSource: SN2PR03MB2383.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2020 08:55:19.2482 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-Network-Message-Id: d79a2efc-36a9-45bb-2dae-08d89ce95238 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jrO5oYcEPFh5Pv/KESAgxSRwEHboETTqFS9AED7ZYPOwo0ZQbTODh2ZSLaG4d4quspqQjjnmc4SvQEYu6Lvznw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR03MB5482 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SDHCI_PRESET_FOR_* registers are not set(all read as zeros), so set the quirk. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 4b673792b5a4..500040253de2 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -87,6 +87,7 @@ static const struct sdhci_ops sdhci_dwcmshc_ops = { static const struct sdhci_pltfm_data sdhci_dwcmshc_pdata = { .ops = &sdhci_dwcmshc_ops, .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, }; static int dwcmshc_probe(struct platform_device *pdev) -- 2.29.2