Message ID | 20221017091153.454873-24-victor.shih@genesyslogic.com.tw |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1348128wrs; Mon, 17 Oct 2022 02:19:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Fhmd1yZ67qM5/H25A1ypNQT+lBV81qbQ8WPktL+nshX3QiAwK58av+VjjhT3Ml2z4UBNS X-Received: by 2002:a17:90b:1b47:b0:20d:cdf2:c02e with SMTP id nv7-20020a17090b1b4700b0020dcdf2c02emr10551835pjb.233.1665998365106; Mon, 17 Oct 2022 02:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665998365; cv=none; d=google.com; s=arc-20160816; b=seOYkwV0QPH7WHTU4kWCK0bx8KZDzoRi7ODqEYHXiD+NjVJVkS9KJJC9xC1/gyJOru IlD6T3IXw+HYPIQnSeXbdzc95rb3BuXUdvkcdL7movb117Tf3yeE+ZyhOPC+kpw95CLV Z0wicWC37DOmj7p9wEeqttjASrQapQ79amHqjZbeDmRJLyh+XudPcnKJ+C5h+tGwYJre x7thx4vKC5SuscDSOV5tpe4cTaqBBeGL1tDmTIg2vrk5/5l3FJLJQovNtqZjyh4m5uDz KmBszN+IPTyvQaUsl9I0i0JibsFekxxQdKDHb6HGTehP19yaMXlEOOITY7gbxQtA7FtB x3HQ== 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=NnqdZrpjB39egxtL+QCzwuA4NRAaJFbgBz0XDUCs42M=; b=n0EHCGpfFQYCG2qltTjp7U5pQgzQfo+Q9FQWbmDY6GtOBISgPbodM69Ftq3rqH16Xa bLuGD0xwzZHPH3ma01Bfp+E2bw5234crYwgFCVGZe6AfPVtZF3hY013eaMxeinXIF8NT dypinAsLkMTxPxAFyLaAfqxy/91mqXFlI/o89F4YbMTTv+C8Gd3actd+wFgxGghGspfg 7fwqxAEyOMLbdPcAWxa2JFUuFMEc+VjKPPVsxoiMUKWm3+KYKDnjm/MiJszYQ+4uBbaD 3kENbm0qQxpbh5a+XnpcoY9MPR34tSc1yF5hJedOs6xxJqez0gji5tP1L9UkaP8S0l0T Wn0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nd36XPAf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo3-20020a17090b1c8300b0020087bc6415si19626710pjb.16.2022.10.17.02.19.12; Mon, 17 Oct 2022 02:19:25 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=nd36XPAf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbiJQJOt (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Mon, 17 Oct 2022 05:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbiJQJN4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 05:13:56 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FD3020F6C; Mon, 17 Oct 2022 02:13:25 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d10so10522780pfh.6; Mon, 17 Oct 2022 02:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NnqdZrpjB39egxtL+QCzwuA4NRAaJFbgBz0XDUCs42M=; b=nd36XPAfDfSTx/DgtkL1HGUbatdbwalbwITd1kDXsmYT72i/kdQsKBSlysBh01WhYs 9XVXJFLT67zS8zBm7Jf5d1kL2y/14fdKa73I/qUwJEKf/YcgDAueUic7cVNmoCCEzT1h I/ZWCpa6X49lPwVZ9cm1wQp5WjM27MglqkICXUcJZc3wGV/k4ZY8PSBz45VO3HkEVCnb VK9J7qdByc7nlweGQ5LuX1yZFxcHOvUa/aQN+cM68KN2ldp8Q7qtmOcfKdiUWq8QXHRq 7X6oBZsibeyPw2BG0wZtmfvW6FnDa1PbxQsJBCgUJyq3OwJEmCxwRzAzPodO5Sduq7ZX Miqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NnqdZrpjB39egxtL+QCzwuA4NRAaJFbgBz0XDUCs42M=; b=WKj/JrbWNNGpiyvgpHaUchSH9YS1VZtkJgRiVrHcqn/j5BQEVXC2WfSOn/eOYdmjT4 fqiIvUHQF0tTYRgf3yURcalQWN777Mjg55A2cY/VVLE8nYlWRWXUggV7lr5CTZWmcbXB HgmeFpKTu7nnCaRaz7T4dtQ+R5qutgA0ay6JLJPfx9AJ8uRwTnWdRsZBY4XZchUu6C3h nFbZgxwY8Xb7Pc9C6rhKj/rGX/6/M1ASTFSJDJ+5z6Nwqb0vUKdvaR/qvDrRnhlXQAbL EkGmHNvQgoJsgQNIBzmpUpEF7VJiwumuBw4cwjdjnKrkJ2bwQEn3TtuHCJognXXGD2+c jPbQ== X-Gm-Message-State: ACrzQf30+PB5YbYv7JgaWb65F9MqKfKN1Qo5zFEr/pawgxfRTC7U+7zq g7IPHMXrzbVT1mn1cvzmuoMJ5UhtDKQ= X-Received: by 2002:aa7:8a15:0:b0:566:1817:6fcf with SMTP id m21-20020aa78a15000000b0056618176fcfmr11620969pfa.85.1665998001583; Mon, 17 Oct 2022 02:13:21 -0700 (PDT) Received: from localhost.localdomain (2001-b400-e258-8c34-4ca3-4989-34c1-7890.emome-ip6.hinet.net. [2001:b400:e258:8c34:4ca3:4989:34c1:7890]) by smtp.gmail.com with ESMTPSA id t22-20020a170902b21600b0017f75bc7a61sm6091996plr.166.2022.10.17.02.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 02:13:21 -0700 (PDT) From: Victor Shih <victorshihgli@gmail.com> X-Google-Original-From: Victor Shih <victor.shih@genesyslogic.com.tw> To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, takahiro.akashi@linaro.org, dlunev@chromium.org, Victor Shih <victor.shih@genesyslogic.com.tw>, Ben Chuang <ben.chuang@genesyslogic.com.tw> Subject: [PATCH V5 23/26] mmc: core: add post-mmc_attach_sd hook Date: Mon, 17 Oct 2022 17:11:50 +0800 Message-Id: <20221017091153.454873-24-victor.shih@genesyslogic.com.tw> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221017091153.454873-1-victor.shih@genesyslogic.com.tw> References: <20221017091153.454873-1-victor.shih@genesyslogic.com.tw> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746925901696993273?= X-GMAIL-MSGID: =?utf-8?q?1746925901696993273?= |
Series |
Add support UHS-II for GL9755
|
|
Commit Message
Victor Shih
Oct. 17, 2022, 9:11 a.m. UTC
From: AKASHI Takahiro <takahiro.akashi@linaro.org> This "post" hook for mmc_attach_sd() will be required to enable UHS-II support, at least, on GL9755. Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- drivers/mmc/core/sd.c | 6 ++++++ include/linux/mmc/host.h | 1 + 2 files changed, 7 insertions(+)
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index cab4725209c1..975987fb02a1 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -1855,6 +1855,12 @@ int mmc_attach_sd(struct mmc_host *host) goto remove_card; mmc_claim_host(host); + + /* TODO: Is this the right place? */ + if ((host->flags & MMC_UHS2_INITIALIZED) && + host->ops->uhs2_post_attach_sd) + host->ops->uhs2_post_attach_sd(host); + return 0; remove_card: diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index cf5adf26b6e4..e58be4ccb308 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -279,6 +279,7 @@ struct mmc_host_ops { int (*uhs2_set_reg)(struct mmc_host *host, enum sd_uhs2_operation act); int (*uhs2_disable_clk)(struct mmc_host *host); int (*uhs2_enable_clk)(struct mmc_host *host); + void (*uhs2_post_attach_sd)(struct mmc_host *host); /* * The uhs2_control callback is used to execute SD UHS-II specific