Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1475547rwj; Sun, 18 Dec 2022 08:56:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+F2dWcyDp9qHIIZ6Ax6Cb9OspV/OEbcuTvxjWaQDfK1g3c5hqRZv0J/2tE4Qd7o15tI7A X-Received: by 2002:a05:6402:164b:b0:46b:fb39:1136 with SMTP id s11-20020a056402164b00b0046bfb391136mr34763493edx.19.1671382568575; Sun, 18 Dec 2022 08:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671382568; cv=none; d=google.com; s=arc-20160816; b=mCMmwErcmqCrTf/sAB+2Ut7DCmDQry6oSTYFNxqCF/NDiNqsjoSaMhVPN46/vpML9L y3RDy4m835/RJN7TCD/dqYm47v6xKUl5BNLSGZMxRB8P7hrsQhQSdPXjqFZQ+L1as0co z+q1Qlwg/1OIiSy3ghKsyVmyOjT8/sXVDCDkVTHB8LXb/p8d5Axf19z1oigY/b6lmPw9 wFQxcDI7ZOmoG7gAsN3/8Tn0Ps5a52tlxZ1NtMWXz4816cOiYF796KppWm6rc2tKpTBg HXUOi2nM3idds/ZL4DOW1Q/coxmFuo9xvmXud3DS86bPpPwr2qtpFOA4LTFSwXCZaS6e c27A== 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 :dkim-signature; bh=8rjOoFYKMXthv4SNRQZ5OtllY6Eo9wycH490L1EdmXk=; b=nMspD3kch26J1kxsVfOysdRHHorg5IKxmoRXHaMT5UOhOEOZRjB8pxyvQ5LuD/pWwf 4zzURPB6wZZLxLpvy3rDw6jgB2RKHp4OiFlKtNk1epg3/w50R/LIJWW23blymAEZTtmr ZMMiTZZfsSd4kXN0v3RdT8y+5wspjRhTBVY6n/WGrqHqCm66WSlUkW9Sldb5kKOmC0rz MAtF8LBH69v6qaMJX5r+8Xins5WDZj+urIyrl+tmrlbrVK5LaVXrMNCCbxP2K6qOJ17F pmnZYfQMNq1Nf1f4SunwYJU6c2SFkiT1s61u9L1ndp3xjXup/DF1XuhfvuPW+8VUhts7 LWUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ciQOHxtI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v6-20020a056402174600b0046a7c877f58si6178184edx.335.2022.12.18.08.55.52; Sun, 18 Dec 2022 08:56: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ciQOHxtI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232718AbiLRQpW (ORCPT + 70 others); Sun, 18 Dec 2022 11:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232627AbiLRQoj (ORCPT ); Sun, 18 Dec 2022 11:44:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C80C10; Sun, 18 Dec 2022 08:15:49 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 3F2DB60DCC; Sun, 18 Dec 2022 16:15:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF202C433F0; Sun, 18 Dec 2022 16:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671380148; bh=1fqa4hwTzUpUc3qjpVotRIMcelCiIEWnjYcZFbHL+44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ciQOHxtIbnTrxRPA6B/9G9znoJSPgUsK33KdBtYTll2XG2e27jutwo7Vt68Xj1slT TrDYuwcu0xeQPGp7OniwV2BMPrP+DwnKT9okYbaUSFf2/eKLDlU4NNVcaG5Jv0p7Iz VwQDS96eqdbiFbWXJ9hXGGQbfz/2qwmKivVza7bx0lXFLyIuHi4lxzubjQkVIIw77G E9WzKnkFAxML77vsdqfjuZsIJR3xFBecyXKynxFnYAFiau7I+NxOtM3WPODtgxgw7L UrdctgEfMdu8lPznHxdOnMqxMX1nmI6Y+XgdbAWbWVp6OVeMTbL5FdukXExz9dr4mJ 6+hV44iK+5UaA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kunihiko Hayashi , Jassi Brar , Ulf Hansson , Sasha Levin , adrian.hunter@intel.com, linux-mmc@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 43/46] mmc: f-sdh30: Add quirks for broken timeout clock capability Date: Sun, 18 Dec 2022 11:12:41 -0500 Message-Id: <20221218161244.930785-43-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221218161244.930785-1-sashal@kernel.org> References: <20221218161244.930785-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Kunihiko Hayashi [ Upstream commit aae9d3a440736691b3c1cb09ae2c32c4f1ee2e67 ] There is a case where the timeout clock is not supplied to the capability. Add a quirk for that. Signed-off-by: Kunihiko Hayashi Acked-by: Jassi Brar Link: https://lore.kernel.org/r/20221111081033.3813-7-hayashi.kunihiko@socionext.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- 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 3f5977979cf2..6c4f43e11282 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -168,6 +168,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; -- 2.35.1