Message ID | 20221213090047.3805-23-victor.shih@genesyslogic.com.tw |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:8188:b0:89:790f:f786 with SMTP id m8csp3858880dye; Tue, 13 Dec 2022 01:06:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5HGP3pWkL2RQnki1bKRv3jqvi04YjMsLQnZBEbEfdyGArWbfRe+kEaJ0Nnz87C7AbYGSSX X-Received: by 2002:a05:6a20:3ca7:b0:a5:df86:eea0 with SMTP id b39-20020a056a203ca700b000a5df86eea0mr32330443pzj.34.1670922364648; Tue, 13 Dec 2022 01:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670922364; cv=none; d=google.com; s=arc-20160816; b=VST/tLQWFik2++tFRNAAcxfwBhl3VmSkqnR/7UJtaY1lFwWqtBk+D96XeSg8+FJrJt 33kmS0A/m/gl18l6wEI8uZ/v9ls8DvJTcSkH4BUXSA6HGMwPw6QFdNl0BaFf2u8ISR45 +7ZEhZcp32Cv3JyzpMNg18Zx5Wh+hD8oOCd4pwfvG5qqOCNr5/3VuWejfAi0ehjJns5K sd34nYgw6vTUI1oS1+7stunWWkOfOuRj9H9wzaik5/USonkg91blBrzSd79ldkgF1Wfi BqylEr2rVYJZawwCmqVeYKdlQzNaF2WMrzGN9/+xv1h81qq1m60G9g1puGltTktnT5Q2 nigQ== 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=2Kq/ZXg9ME6XTZIY0I3C/hVCMUMiXGyK0OXCfujvze4=; b=YQHX+w5Eb9ie55K6hoKua6G2tQzkYYb/0jW56SJFuiWyzM7mzWb1smXfKCdOXz1h75 kSi33yUdVMwqiyACKBGyO86om2WKEAtJaj18Z8ZRH8IipvK1nimgJAohKZaZTrOYAKwR TEcLlnFkd6SAQqD8/iUr12jUINAD5ashLgq/g86ccRkb/MKKQc7cwBbBnQDVBbhBrPWb TQYzVRuRFW5dldWR8eJ7zDch3i+XNvI631pdf+iKFht5RJac3Lu+L1GL25KTUeiONDSf r0xN/4nErYigwEMudrTq6DreaVcTWLaYoG1FtvgkO2D5GEVBJmMsKWfjhYpaFhh+Zt5W /r2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="PCZigT/k"; 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 f13-20020a056a0022cd00b0056e6d31b27asi12731857pfj.160.2022.12.13.01.05.52; Tue, 13 Dec 2022 01:06:04 -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=@gmail.com header.s=20210112 header.b="PCZigT/k"; 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 S235095AbiLMJE0 (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 04:04:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234901AbiLMJCX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 04:02:23 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F541057D; Tue, 13 Dec 2022 01:02:21 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id 130so1727916pfu.8; Tue, 13 Dec 2022 01:02:21 -0800 (PST) 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=2Kq/ZXg9ME6XTZIY0I3C/hVCMUMiXGyK0OXCfujvze4=; b=PCZigT/krisCTR5uD3N9K8HerxEPS2PQ0keSaKkk92eH+il+pE9hWS1lZAH4Rr6E08 tV55ylKX8z/8bh43cmHVZyXNV6N9pEbteplRpCoMmhkBX9zd73FJjn7leu6kLHC2J/uq nExiU9+v2tkwNuzxZaIAXxfKBa2wR8LYYgxz5BBjKp448/LmdzvtD3mxAW44mHl0Fhy5 T1XoInGXH1vVQnUs/pQ/tD0FjBPkaPBtV3txQvv1JAkphFaRZvqXx3JlmuHw/mSGoE5L FukBcZ45c8EKEqWUcobTqtA91h8OB4jhKkku4xk3or8WAGmvsJ9vWbpPjEFgK6EqXdq9 lxww== 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=2Kq/ZXg9ME6XTZIY0I3C/hVCMUMiXGyK0OXCfujvze4=; b=IwQyxJ81dMpAJTFsyce4d6eLB4gYTymKewM/ffbZ5b+TNVgGSTkJKvEWm3gf/JUAKI uNRpCz5xHx6bJeHIO5Ou6huDe+PPBIFkj8w4/C8oE9B3CmSGOGIDQMtx+JwwR5edTXeO OY/bdh6wZSc1kKx05VmHDzSWY2o13MrocyJhF8/l93d6ajEVv1OvFORv+BRrkCbF6DGA ZTfUvG5rk9pwgBu+blc3lN31fUdp/5KCFASdxGRR1fK3nhNgq3NjXmhgTMdPpZ5X0s2P Xmb9R5ewEtDTt7Q663UH71AzpVwwQtBQk3oJqISz2IVW2kgpl8C9eXbqwFREPgoPNXhY kFMQ== X-Gm-Message-State: ANoB5pklafeymbFA7nkJtJTnsWDpim2geKDZ1EMfPT/0uRr04u0dt46S m3r5SxOKd9FD/ThMaFWLqUI= X-Received: by 2002:aa7:93da:0:b0:576:de1:cd32 with SMTP id y26-20020aa793da000000b005760de1cd32mr20411121pff.0.1670922140695; Tue, 13 Dec 2022 01:02:20 -0800 (PST) Received: from localhost.localdomain (2001-b400-e2dc-5c03-264b-f684-a8c9-21ae.emome-ip6.hinet.net. [2001:b400:e2dc:5c03:264b:f684:a8c9:21ae]) by smtp.gmail.com with ESMTPSA id 81-20020a621954000000b0056b9ec7e2desm7141682pfz.125.2022.12.13.01.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 01:02:20 -0800 (PST) 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 V6 22/24] mmc: sdhci-uhs2: add post-mmc_attach_sd hook Date: Tue, 13 Dec 2022 17:00:45 +0800 Message-Id: <20221213090047.3805-23-victor.shih@genesyslogic.com.tw> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213090047.3805-1-victor.shih@genesyslogic.com.tw> References: <20221213090047.3805-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?1752089089418857852?= X-GMAIL-MSGID: =?utf-8?q?1752089089418857852?= |
Series |
Add support UHS-II for GL9755
|
|
Commit Message
Victor Shih
Dec. 13, 2022, 9 a.m. UTC
From: Ben Chuang <ben.chuang@genesyslogic.com.tw> This "post" hook for mmc_attach_sd(), uhs2_post_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/host/sdhci.h | 1 + 1 file changed, 1 insertion(+)
Comments
On 13/12/22 11:00, Victor Shih wrote: > From: Ben Chuang <ben.chuang@genesyslogic.com.tw> > > This "post" hook for mmc_attach_sd(), uhs2_post_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/host/sdhci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h > index e5f64b38e339..4aac22b58d79 100644 > --- a/drivers/mmc/host/sdhci.h > +++ b/drivers/mmc/host/sdhci.h > @@ -728,6 +728,7 @@ struct sdhci_ops { > void (*dump_vendor_regs)(struct sdhci_host *host); > void (*dump_uhs2_regs)(struct sdhci_host *host); > void (*uhs2_pre_detect_init)(struct sdhci_host *host); > + void (*uhs2_post_attach_sd)(struct sdhci_host *host); This gets called already in "mmc: sdhci-uhs2: add uhs2_control() to initialise the interface" Either move that line to this patch or vice versa. Please check compiling after each patch is applied. > }; > > #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
Hi, Adrian On Fri, Jan 6, 2023 at 5:31 AM Adrian Hunter <adrian.hunter@intel.com> wrote: > > On 13/12/22 11:00, Victor Shih wrote: > > From: Ben Chuang <ben.chuang@genesyslogic.com.tw> > > > > This "post" hook for mmc_attach_sd(), uhs2_post_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/host/sdhci.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h > > index e5f64b38e339..4aac22b58d79 100644 > > --- a/drivers/mmc/host/sdhci.h > > +++ b/drivers/mmc/host/sdhci.h > > @@ -728,6 +728,7 @@ struct sdhci_ops { > > void (*dump_vendor_regs)(struct sdhci_host *host); > > void (*dump_uhs2_regs)(struct sdhci_host *host); > > void (*uhs2_pre_detect_init)(struct sdhci_host *host); > > + void (*uhs2_post_attach_sd)(struct sdhci_host *host); > > This gets called already in "mmc: sdhci-uhs2: add uhs2_control() > to initialise the interface" > > Either move that line to this patch or vice versa. > > Please check compiling after each patch is applied. > I will update it in V7 version. > > }; > > > > #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS > Thanks, Victor Shih
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index e5f64b38e339..4aac22b58d79 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -728,6 +728,7 @@ struct sdhci_ops { void (*dump_vendor_regs)(struct sdhci_host *host); void (*dump_uhs2_regs)(struct sdhci_host *host); void (*uhs2_pre_detect_init)(struct sdhci_host *host); + void (*uhs2_post_attach_sd)(struct sdhci_host *host); }; #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS