From patchwork Tue Nov 8 08:25:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 16927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2563218wru; Tue, 8 Nov 2022 00:29:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GXZ4WTPXW9+pz38fildAzhUxReURp2RvOd6AgqdOEU6sMStQ728x0d9DgWqODCQ7wOtUk X-Received: by 2002:a17:902:7ed7:b0:188:7a1f:8a28 with SMTP id p23-20020a1709027ed700b001887a1f8a28mr13670173plb.130.1667896177151; Tue, 08 Nov 2022 00:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896177; cv=none; d=google.com; s=arc-20160816; b=mODdsuVBj+zKQTm1ZFTAQuZW9GFFIO6txikxNB3bE8EYsdbJtSQzqLYVE5irJbLp3K rngmlXf/IKunopVCCYmz+x76vMrbZBoMcVCUlaK1d+xOLFdFayNq+Kqi8OAAGfZDJ86d LQZ/KnmcJL9yMj/wyAsiB+Alr1t4NxPzpRiu4ziVsjuIJ1VlojDL7mmFdOw+wefKRXrS N2jJ0PswIHXd9JyeVdJwA65j+vngi5/Qm5Mew4N9b33c+enir5/8jJkMoYFfFcSMtPm1 nW83WoI/EVdQj1kEkZ32sHXrpUIt8pZVp2KWJZZpTz+YGbZz+GHiHFHYlanHqa7dIaU1 Yl7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pB9ae38EbgcREzrM6tNMQ4NRzQ296L5HvzgPjDbrNRU=; b=Y0EdVasVJDKjgUBY6ZXKzA3Yb8BjnxrRWo+P7jSg9Zoqh+x1WScRxjakg4x46Ixuvq T9+NUlnqyQ+zTORniYyokbnAc8EdHT4+hsG77YirCCcNcgGf+hoJdOGxgBGhQwHBAY44 QqQH0uHHqEH6aoptdvtrDmVvsf3kd6I0R7eH9Y4tCoRY4lB8c4GHjgXcO2PmbFDYGwM4 to3DzhidD7mvY7ehMQY16r8v46CCoSNTONZr/rwWNG7pB8AAkJCnwhe2MGPnZiy5nYXl SqFFwDnZn0NBpnPPHlPeh2o447AojpTFbvEduIMT0MHct62Wb2Ol0pN2MK4STROJ695C yVyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu10-20020a056a00410a00b0056e69d7f44asi10497266pfb.113.2022.11.08.00.29.23; Tue, 08 Nov 2022 00:29:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233774AbiKHIZo (ORCPT + 99 others); Tue, 8 Nov 2022 03:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbiKHIZl (ORCPT ); Tue, 8 Nov 2022 03:25:41 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD91B27B20 for ; Tue, 8 Nov 2022 00:25:39 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 08 Nov 2022 17:25:38 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id C85522059027; Tue, 8 Nov 2022 17:25:38 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 8 Nov 2022 17:25:38 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 89233B62A4; Tue, 8 Nov 2022 17:25:38 +0900 (JST) From: Kunihiko Hayashi To: Adrian Hunter , Ulf Hansson Cc: Jassi Brar , Ard Biesheuvel , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 1/4] mmc: f-sdh30: Add reset control support Date: Tue, 8 Nov 2022 17:25:30 +0900 Message-Id: <20221108082533.21384-2-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> References: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748915901815420978?= X-GMAIL-MSGID: =?utf-8?q?1748915901815420978?= Add reset control support for F_SDH30 controller. This is optional. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/host/sdhci_f_sdh30.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c index 3f5977979cf2..7f4553b28180 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "sdhci-pltfm.h" #include "sdhci_f_sdh30.h" @@ -21,6 +22,7 @@ struct f_sdhost_priv { struct clk *clk_iface; struct clk *clk; + struct reset_control *rst; u32 vendor_hs200; struct device *dev; bool enable_cmd_dat_delay; @@ -150,6 +152,16 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) ret = clk_prepare_enable(priv->clk); if (ret) goto err_clk; + + priv->rst = devm_reset_control_get_optional_shared(dev, NULL); + if (IS_ERR(priv->rst)) { + ret = PTR_ERR(priv->rst); + goto err_rst; + } + + ret = reset_control_deassert(priv->rst); + if (ret) + goto err_rst; } /* init vendor specific regs */ @@ -175,6 +187,8 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) return 0; err_add_host: + reset_control_assert(priv->rst); +err_rst: clk_disable_unprepare(priv->clk); err_clk: clk_disable_unprepare(priv->clk_iface); @@ -191,8 +205,9 @@ static int sdhci_f_sdh30_remove(struct platform_device *pdev) sdhci_remove_host(host, readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff); - clk_disable_unprepare(priv->clk_iface); + reset_control_assert(priv->rst); clk_disable_unprepare(priv->clk); + clk_disable_unprepare(priv->clk_iface); sdhci_free_host(host); platform_set_drvdata(pdev, NULL); From patchwork Tue Nov 8 08:25:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 16925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2563040wru; Tue, 8 Nov 2022 00:29:09 -0800 (PST) X-Google-Smtp-Source: AMsMyM6yNj20j0HapFjieKaE3AozKvyre/qOzeKMKzu2A+v8F3WyInB5pSV4U0EptWeIG3eclIUX X-Received: by 2002:a63:d848:0:b0:46f:81cb:6d6c with SMTP id k8-20020a63d848000000b0046f81cb6d6cmr46030819pgj.453.1667896148811; Tue, 08 Nov 2022 00:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896148; cv=none; d=google.com; s=arc-20160816; b=0Bq350TVeUMf4ykvjtUfpQl+bbJXhho1Vu8MbnbMhyX1MgEcQdwdAozYzkTxfS+uiJ iqAeOEzYVV7s7VnzRDVGVPXRykvP5H3jRz+BMtxFctHS0x3IhEXM4a4I0oOn6kiPeRz4 QIQda8IXtB+VHmphqw8I9Xcr99Rd5TodY5ZBGweprnoDewv4Xi3Mn4ioP/2yXAmDu4Rx QWbbv3zHS92Ver145/Aw0cm1d1juMKdWjhpSQvccOhAov7xK+NAruelo4YXdO2w2ahfD 3njc4N16QTFIK9xC0SR/BHTeKNkp41z7PFpNsYvxl4On8rAI+abB5QtVmuRiLV2vPMoO 5NTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WzaIx2id1J3HF1+QPvrs+7dBVecLtAw50Dvm/6ap1Fw=; b=J2BwonXUOMREi5RbMfv//Pq8WdEBFECZzDcltW9x8f8BIUcOZdcfiCqrP0q/DpblrT MmGYF4UR4pTYB0ha6llWqJC2K6Ucj/rxYC6+nxvfrZRgZgT9fFkOhEGhPK0KNXiP/vZM Lk3pTFJLGhqvQFPli92dzgX3U4hiTVwbTlHPdgZHCrreTOk09RBoB/ulWJnI4PxVRdSF GG6Hk4IeEwteZh5YoAGq9gcq7pkLLW9RpkAB0PCwfCANs2a3n9AeGy1f2S19tqyHHP+1 xciqKnnBuQlGapKQcx1aSL668ChMq+PRUVQQlnJQ0BJAa5iDNRHWpO2j9hHtnqkl6dxZ +EwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a71-20020a63904a000000b0046ec058379bsi13436089pge.99.2022.11.08.00.28.54; Tue, 08 Nov 2022 00:29:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbiKHIZy (ORCPT + 99 others); Tue, 8 Nov 2022 03:25:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233728AbiKHIZl (ORCPT ); Tue, 8 Nov 2022 03:25:41 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3906E27B11 for ; Tue, 8 Nov 2022 00:25:40 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 08 Nov 2022 17:25:39 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 97BB620584CE; Tue, 8 Nov 2022 17:25:39 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 8 Nov 2022 17:25:39 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 3A906B62B3; Tue, 8 Nov 2022 17:25:39 +0900 (JST) From: Kunihiko Hayashi To: Adrian Hunter , Ulf Hansson Cc: Jassi Brar , Ard Biesheuvel , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 2/4] mmc: f-sdh30: Add support for non-removable media Date: Tue, 8 Nov 2022 17:25:31 +0900 Message-Id: <20221108082533.21384-3-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> References: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748915872142802144?= X-GMAIL-MSGID: =?utf-8?q?1748915872142802144?= To use F_SDH30 for non-removable meda like eMMC, need to enable FORCE_CARD_INSERT bit to skip the delay for detection. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/host/sdhci_f_sdh30.c | 7 +++++++ drivers/mmc/host/sdhci_f_sdh30.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c index 7f4553b28180..e7617a08276d 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -76,6 +76,13 @@ static void sdhci_f_sdh30_reset(struct sdhci_host *host, u8 mask) ctl |= F_SDH30_CMD_DAT_DELAY; sdhci_writel(host, ctl, F_SDH30_ESD_CONTROL); } + + if ((host->mmc->caps & MMC_CAP_NONREMOVABLE) && + !(sdhci_readl(host, SDHCI_PRESENT_STATE) & SDHCI_CARD_PRESENT)) { + ctl = sdhci_readl(host, F_SDH30_TEST); + ctl |= F_SDH30_FORCE_CARD_INSERT; + sdhci_writel(host, ctl, F_SDH30_TEST); + } } static const struct sdhci_ops sdhci_f_sdh30_ops = { diff --git a/drivers/mmc/host/sdhci_f_sdh30.h b/drivers/mmc/host/sdhci_f_sdh30.h index fc1ad28f7ca9..7c3c66291d42 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.h +++ b/drivers/mmc/host/sdhci_f_sdh30.h @@ -29,4 +29,7 @@ #define F_SDH30_CMD_DAT_DELAY BIT(9) #define F_SDH30_EMMC_HS200 BIT(24) +#define F_SDH30_TEST 0x158 +#define F_SDH30_FORCE_CARD_INSERT BIT(6) + #define F_SDH30_MIN_CLOCK 400000 From patchwork Tue Nov 8 08:25:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 16928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2563253wru; Tue, 8 Nov 2022 00:29:46 -0800 (PST) X-Google-Smtp-Source: AMsMyM6xLj4O3STp9Z8DhlSFwWbWW3GjOy0jrvztx3cHcLaboC7tuyAz6o5WJ7TezS3pxcCHuuCy X-Received: by 2002:a17:902:ab8a:b0:187:2e6d:c57a with SMTP id f10-20020a170902ab8a00b001872e6dc57amr41985724plr.75.1667896185769; Tue, 08 Nov 2022 00:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896185; cv=none; d=google.com; s=arc-20160816; b=NMo76XwMaTBKoejy4Wd1ujX0Oc/m+zUt8gE9cWr371UKtrSbcBJd4bYEpvMf3W6KfO bFq/4Ti3Lxyu7glGkpD31t4vOkiNQL7DZZRXuD0asvobLu7hisddpEIvArkWCYnO+5SL mtwqx665vRP3kNS63plZP2Hm8H9z5AIXx+/Ys2dM0M5+whZvHcbFsNrCHJ7PeSV4FpDU U9RIt8yJKj3H0FVk64g6CcEjtMJMr3rgDIC55VTaXz7Ktn+G0Tjt1WqNg9CSFYDbyGZD G3UP+adpge60Ymk3lM7DuSG1CUhi8D9Hazg82W0cAUSBC5s1NLQYKWL56DGn+3Um2vhH mnqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1bQc39XNg4VbodyeR022srGA+DXwEYzST70lbJMIU0U=; b=I22GIBiXECk8JMu8uCjHtgLNSHP6ndyXaZiobyzA35hKlunKKne4p/VELA4+gJKqFH cbfpeICS8lew5ujOfog431niG2v3mXxlNiYvXzz9MbdteHisQ8HdwGZz8aMkyAErzmof 35yGFDmU7CcrJ/2cMCjQvdyKV4+2sCa+Et4P0Ozdxbdfeux+q0kF0icOrxx+nqc+8WPY PVjWmm42wS7tj8yMxZ2SkFYG3vLdBzcJ88AffZYEpcis+qz4t1KWDbFtYhluuDSfQcSs RL2xeVb/zoWeNgl2z+B19Fw5F1CSOQnhjlpMoZfAQlSmrN+m0PaqU9s6dESRNGV/Tuet +I1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 195-20020a6305cc000000b0043a93738a14si15263321pgf.167.2022.11.08.00.29.32; Tue, 08 Nov 2022 00:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233777AbiKHIZu (ORCPT + 99 others); Tue, 8 Nov 2022 03:25:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbiKHIZl (ORCPT ); Tue, 8 Nov 2022 03:25:41 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B29D727B1C for ; Tue, 8 Nov 2022 00:25:40 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 08 Nov 2022 17:25:40 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 24C1720584CE; Tue, 8 Nov 2022 17:25:40 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 8 Nov 2022 17:25:40 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id CDE47B62A4; Tue, 8 Nov 2022 17:25:39 +0900 (JST) From: Kunihiko Hayashi To: Adrian Hunter , Ulf Hansson Cc: Jassi Brar , Ard Biesheuvel , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 3/4] mmc: f-sdh30: Add quirks for broken timeout clock capability Date: Tue, 8 Nov 2022 17:25:32 +0900 Message-Id: <20221108082533.21384-4-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> References: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748915910787166710?= X-GMAIL-MSGID: =?utf-8?q?1748915910787166710?= There is a case where the timeout clock is not supplied to the capability. Add a quirk for that. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/host/sdhci_f_sdh30.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c index e7617a08276d..af30343eaf33 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -187,6 +187,9 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) if (reg & SDHCI_CAN_DO_8BIT) priv->vendor_hs200 = F_SDH30_EMMC_HS200; + if (!(reg & SDHCI_TIMEOUT_CLK_MASK)) + host->quirks |= SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK; + ret = sdhci_add_host(host); if (ret) goto err_add_host; From patchwork Tue Nov 8 08:25:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 16926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2563055wru; Tue, 8 Nov 2022 00:29:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM6St0HrwIdzX+Wg8SEWhrcc1sHk5kdPN5YZ0cHTk3b9hF4gw8itoC5vnIyiKPYYIbj/zB4L X-Received: by 2002:a17:902:7485:b0:17d:5176:fe6e with SMTP id h5-20020a170902748500b0017d5176fe6emr55107171pll.147.1667896149821; Tue, 08 Nov 2022 00:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896149; cv=none; d=google.com; s=arc-20160816; b=o1fkv3IMUjI/IjlJCR18v77CCySrRkJqthalXTTtZMbOCerhiNXMr7FSSWTOaFIN4j U/fpqtPeVSqAHG0ZyiMClKuT+Gi5L3a4BtWFmmKrSVolP++8dl8NwR2X7diVNFs+m1Xs 5h1RrQsyTzrOb2BWcetYiRKbtERGqlNOV3o81hXMmVh5DW7vAwstJFm101BEh8IiU4YG 2g0ccbmZ/rO0YQhyBqezTHYSohlYYCMPGeeoOAaK+pKUgXO3yTHOHngRoR918tFBKERY LlASQPMIOSBlKUSPFut+AxgGTPK/nJtQlbcJjbWLcMS2cXBwVgbGlrO08nGl7+BVB6w9 XlXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dh5l55PRzZOMcA5A/JtGxzIkbnRD8waOt4xG0HPu22g=; b=wJYfVRT026D/A+rrrwsn5TSsxf8JaSlTZ9Lbwb6YmiS1IR6tXWbwCQAg4MFCWVi7Jf UJNtGLOJpsD9CW6159BGyMAPUH0AGXrxvwsKoBATmH+MlIwLiqTLLnXsR6gThW4QcYGL jmxG00L/J7jTLPmq1xI44+AMfa5dsv7/Tl4EkgugfX9qTemq2I3uTHWSzW37e2g/Knqo fBQcnVCb4DDR4NYn+EIUz0RonLb7NMePM3WV2ichaCWt1+SjB+Q8Xx9RS44BVXu1nAEP TfkhgF/zWbhvkimp47qM2btlDFHcdLf+Roqj/GsUHVu/wdee2fH5ofE2SdlT6iHveGo8 x7aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170903405100b00186a06a3396si10578183pla.153.2022.11.08.00.28.56; Tue, 08 Nov 2022 00:29:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233651AbiKHIZ6 (ORCPT + 99 others); Tue, 8 Nov 2022 03:25:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbiKHIZm (ORCPT ); Tue, 8 Nov 2022 03:25:42 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F4CE27B21 for ; Tue, 8 Nov 2022 00:25:41 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 08 Nov 2022 17:25:40 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id A2DAD20584CE; Tue, 8 Nov 2022 17:25:40 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 8 Nov 2022 17:25:40 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 6A655B62A4; Tue, 8 Nov 2022 17:25:40 +0900 (JST) From: Kunihiko Hayashi To: Adrian Hunter , Ulf Hansson Cc: Jassi Brar , Ard Biesheuvel , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 4/4] mmc: f-sdh30: Add compatible string for Socionext F_SDH30_E51 Date: Tue, 8 Nov 2022 17:25:33 +0900 Message-Id: <20221108082533.21384-5-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> References: <20221108082533.21384-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748915873180612135?= X-GMAIL-MSGID: =?utf-8?q?1748915873180612135?= Add compatible string for Socionext F_SDH30_E51. Currently there are no new features for this IP, just add it. And add missing Copyright and MODULE_AUTHOR. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/host/sdhci_f_sdh30.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c index af30343eaf33..2643ae97b2e7 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -5,6 +5,7 @@ * Copyright (C) 2013 - 2015 Fujitsu Semiconductor, Ltd * Vincent Yang * Copyright (C) 2015 Linaro Ltd Andy Green + * Copyright (C) 2019 Socionext Inc. */ #include @@ -228,6 +229,7 @@ static int sdhci_f_sdh30_remove(struct platform_device *pdev) #ifdef CONFIG_OF static const struct of_device_id f_sdh30_dt_ids[] = { { .compatible = "fujitsu,mb86s70-sdhci-3.0" }, + { .compatible = "socionext,f-sdh30-e51-mmc" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, f_sdh30_dt_ids); @@ -258,4 +260,5 @@ module_platform_driver(sdhci_f_sdh30_driver); MODULE_DESCRIPTION("F_SDH30 SD Card Controller driver"); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("FUJITSU SEMICONDUCTOR LTD."); +MODULE_AUTHOR("Socionext Inc."); MODULE_ALIAS("platform:f_sdh30");