Message ID | 20221130133747.3777340-3-vadym.kochan@plvision.eu |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp929082wrr; Wed, 30 Nov 2022 05:38:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf40r0aemaRNS8pRDlDuc5cLt48hiLP0qA/wl8PmRzsP2itUX0AmItxjC/Se9myeeS8mxb01 X-Received: by 2002:a17:90a:a898:b0:219:263c:3ee3 with SMTP id h24-20020a17090aa89800b00219263c3ee3mr19483769pjq.89.1669815533164; Wed, 30 Nov 2022 05:38:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669815533; cv=pass; d=google.com; s=arc-20160816; b=ncp9S7X8hZjov+YK1S3fAGsUqEjJATD6A+yfydp4ZaQHmTDCkF6GWetthAeKScABs2 95KIrsi6LuPJ1c5++5YKX66OF2vtJpwZeKMIvxvL2eGLUy3req716q6dTs/nFW2V6p1e jdZT2ZDrj/UDUw3xYYQ3nL9acWwjLGKrU4Ffh2aW5paohHFhCh5qG2fXLbkJIEG8sf1f m4nEMncNnziXDwnQuKOgd/U/u+njHnrrE1MgTFhFItz/XwGJRwm6XUiqmPXqsDL7Wp1Y VVjBCluRL10b0R/9h46mR/A+aYwneiRqufdzSTc/OK6cjeGq6Beh93XCwnfOY3iKhcGa 5dIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2q5pw07O8LLInZ9JVL3ZCnjb7KZ/LT8mqYy9Bnciscg=; b=PAc1NuN96hCEWhvjIPuCEgCwPMeF8Vd7A76BiS1/MPmnvG/X1aVA0tfuL56OmWu0Ez d/9jPrmLCKKDrEbS3YQXIRTyEA+9yjGOGZqqmqyaO439MB/N1H9nu9pVpEj286ipgU5C F83SKQl43R9tlwc/zr42L/6m81tnsRp+4KmGy46YpPzd8p557Tvdkm7L3haPftPc370+ +A5M3ZzylQmeIAZffbgmLAQe8qtAMTvHxTexVE77qfdQetgPj76FtreLUhuAdWIPnqUb FgX1qnIkEjow5Rp3jRYGDeccpyCoQLocMmKw9FrQsd2bDOGL1LkbaoqJvAiQHEtjohX2 +X6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@plvision.eu header.s=selector2 header.b=FNjEmkZE; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg14-20020a17090b1e0e00b00213255221e3si4801592pjb.1.2022.11.30.05.38.39; Wed, 30 Nov 2022 05:38:53 -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=@plvision.eu header.s=selector2 header.b=FNjEmkZE; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbiK3NiS (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Wed, 30 Nov 2022 08:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiK3NiJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 30 Nov 2022 08:38:09 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2124.outbound.protection.outlook.com [40.107.6.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D09A28E0A; Wed, 30 Nov 2022 05:38:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WIUiJ7FJL+R7HKsHJ2242TNCmeKx0pDrQ5J+wtXb7vgfSuOeskcDurUUHChl68NlSpNI9Rze7cPWMg+CxMXef2E4ACelrKe1yhEXgGWQKwv06ppuZaHyyzRuFq2iuYqaBvRg3Wkphsj0s5BCIWYNHbzjzDmKOHR5eGnwMWcw+q3xu1z/fviwtqj1D6JelJil5yhtyLw5gNb7Ygt3WjZtBNhLHzMHobuAeVCa4iLS35isLIEJtSjW8/7hr8eit2d79MlEzmU18VqKbLuxPZxSkl1E0U7rJz+agJD7XaoGXB/XsXIvwoXREd9YzBioov817yTHWvwPuq9D7I6ZIKQ0rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2q5pw07O8LLInZ9JVL3ZCnjb7KZ/LT8mqYy9Bnciscg=; b=Kp6wvemI6x7HQkNPQxYvWpiXOXxp+LSSN/+qUQnEN3g+wxaUjl1izk+GCR9fcWCNOejIcKqYff5kyhh9G4scYQn2oqpyodTENJbdgs2eTuXE1A6b/fpCmeWAMvCUYznpY2vffKfl2xdh6BVEZU8sbXrQBMPK7p5QJV6KElu1KoNefEivMmlrWt1GTUgmqioQ3pS9HMau6X69PNJtLCDbMbPHg8wQP+Hoip1LQWdgJmMW5qZ8bRdJ1VymRzh2QPUkGDjQMsJOATEQyaH6icPmuQOsttfuC4CkvLuf6+vzBtgHfnZshOO+E5RTjuObjD7HtXrLwa3GO7Fp44mXSdIRGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2q5pw07O8LLInZ9JVL3ZCnjb7KZ/LT8mqYy9Bnciscg=; b=FNjEmkZEPX/UUAjS1tFQKT/EGQgdgAAvY82PKYGlfI5mH2BsKrI/w1UOON384+2RSouSjYMw5VQahGXla6wBNnLo/5aDY27ytrt0q/GlyWIB1I8VCxLzp48KnELL0CowzGkbPpXWCmSZOdOxPp3DFPkQFRdti7q68/zMWzhqUz4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by PR3P190MB0858.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:80::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Wed, 30 Nov 2022 13:38:06 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a%3]) with mapi id 15.20.5857.023; Wed, 30 Nov 2022 13:38:06 +0000 From: Vadym Kochan <vadym.kochan@plvision.eu> To: Hu Ziji <huziji@marvell.com>, Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Adrian Hunter <adrian.hunter@intel.com>, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman <enachman@marvell.com>, Chris Packham <chris.packham@alliedtelesis.co.nz>, Vadym Kochan <vadym.kochan@plvision.eu> Subject: [PATCH v2 2/3] mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers Date: Wed, 30 Nov 2022 15:37:46 +0200 Message-Id: <20221130133747.3777340-3-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221130133747.3777340-1-vadym.kochan@plvision.eu> References: <20221130133747.3777340-1-vadym.kochan@plvision.eu> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: FR2P281CA0105.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::17) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|PR3P190MB0858:EE_ X-MS-Office365-Filtering-Correlation-Id: 99a0c50e-d5d1-426c-8284-08dad2d81cd9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YxQH1CjRf32mow+v2Jqs6KNpVtJ4c/CXSXyEcBUiOms9IhJuKcI32/TijB/r2EK1+ImyiVbhhMxNgVsg6rmE+txtRDx/RlYkMSOZNZFIJMT2oDc7fh/cCdX7tbycPyJV+eiOrfjS4gMLDUa5Q+QRWgYTSnJZbqzkkIRwNCHhBBD5AalHuya/L7fgnwTCbKvbDzAln5lgk1VS9WVy8d6rV25HecTBbTSR3/K/96xo6CagkFX7/MWU3Uri4tRUf4AL4FMmn06onN8XDNqloCAM5Uzyxw7Trs2ggqMxMQMR2pqO//nUOLJqyC25RP7AQwBNRzts/OxtZpiwLC8ENpH+jx+B/PJP3XOWYrt3M1bKn43aVrPEhS92Ybmsij8hGCI693YpYNOuOGiRTAxtUsoDPGAC0EJc6weRyYSmOPnFR2DmMMzF2hjFixBmv8i/ZSA8RW3+K9S7u9EJyglafXGS0p/iU5+Y5yyaEQ5v1JH56TwUF17YNQRSbsfJAkESp58wxoXpnC4XxEq2+g2fO+QrTDXbt/SAAVEHCHcaiiCJWcIiMPKwrCLMGAlyA+tIcSysCAJNGXgv2Msu2Wj54LmMwugfEFHNCEnh/0hF5Vxwm33OmqsuXjrMlnM5Rm5DoRi/26lJdjNJwCdOxNwQ0csEssEZxV8Bb93ZJTwXf6P0IhI0u14Gb6wg2K05teOaoVwUhm9SnkcMKKKav+8ryVhL4w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(366004)(39830400003)(376002)(136003)(346002)(451199015)(8936002)(110136005)(5660300002)(54906003)(186003)(36756003)(41300700001)(66476007)(4326008)(66556008)(316002)(8676002)(38100700002)(83380400001)(107886003)(6486002)(2616005)(6512007)(26005)(86362001)(478600001)(7416002)(66946007)(52116002)(6666004)(1076003)(38350700002)(6506007)(2906002)(44832011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEEtXLSlUeZ65+8Mt3zMBGXoObzsOtr+BF1qixwCx7miXRZypPDwRgO6shjOXIBheMwnRDzrCEpo64NsYckjAcdDrAdVCW3x3TrlIuwMyjoJdvrDUL2u8/40ZQJvQKxaMSry0xcl9XWr0FOiXEiOJjPB4l2pMPC7FRHDGeDGTJQdI20cQ5ZqKTR3bixEDm2B5ZbHV5YoprgPVRjceIhW5y15kipCToal9ZmuB/M7qhodKq1EVQZaHn7++8q4hXlu9acD4Zk4qR76zssBXj7VkqxGDK2JTOHHUp6IlGuZJ1UvbJiWzpU7HOd6x+08mtDELeeUAJmXTW3bz84zy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hymz4vL/+JsQ7KqFnZQKZBL2Pf0kIvWqIdz6FqBWymEmmqgNns7W/CGKmhCZtadxXCJBPDzRAejZMCXVLs0hhTpuK2bW0T9Lq1/k2PnSXcFGrxb180bRMNoQVOcziZD/Lydc4Bams0MgkOJj+5Kk9RWdb9ICZsgJY+I9l8B28slcgvWbx8+TOM9MUnnT+K0xCPc4DHZtQ== X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 99a0c50e-d5d1-426c-8284-08dad2d81cd9 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2022 13:38:06.6382 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3Ui6UmHx0o68z6qkkhtRlpy4gVzqlotJTq8c9Rh4bOS+TnVyz8mNinR+aS12Dg9W0Emxv/+DJRz634O3ItzvLj/qVRvP3KtQmbgf+mua2Pk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P190MB0858 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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?1750928492702194577?= X-GMAIL-MSGID: =?utf-8?q?1750928492702194577?= |
Series |
mmc: xenon: Fix 2G DMA limitation on AC5 SoC
|
|
Commit Message
Vadym Kochan
Nov. 30, 2022, 1:37 p.m. UTC
Particularly it is needed for xenon-sdhci which uses set_dma_mask callback
to fixup the DMA settings for AC5 SoC.
Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
---
drivers/mmc/host/sdhci.c | 2 +-
drivers/mmc/host/sdhci.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2108e8075609..e5d9abcc2116 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -4022,7 +4022,7 @@ struct sdhci_host *sdhci_alloc_host(struct device *dev, EXPORT_SYMBOL_GPL(sdhci_alloc_host); -static int sdhci_set_dma_mask(struct sdhci_host *host) +int sdhci_set_dma_mask(struct sdhci_host *host) { struct mmc_host *mmc = host->mmc; struct device *dev = mmc_dev(mmc); diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 908da47ac5ba..b46d47c19650 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -815,4 +815,6 @@ void sdhci_switch_external_dma(struct sdhci_host *host, bool en); void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable); void __sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd); +int sdhci_set_dma_mask(struct sdhci_host *host); + #endif /* __SDHCI_HW_H */