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;