Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5735597rwb; Mon, 5 Dec 2022 03:29:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5fdQKpjLF+h8s3hgFHwnxUax96Xxe1FxCAnNpUZBLc3eyisiGeQNOt2x3zwMHL7Qtoqzy6 X-Received: by 2002:a17:903:2ce:b0:186:e852:b271 with SMTP id s14-20020a17090302ce00b00186e852b271mr65380912plk.117.1670239742633; Mon, 05 Dec 2022 03:29:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670239742; cv=pass; d=google.com; s=arc-20160816; b=iN06oKqR2x5vZsyJ7igeZXInGoJY0pzV86D6ZqNZ74weJen0EEH3JgLAC0ZDVuRysZ JAykmcgUIblVxpVDWr+jCD5w+P1wOG08zqNnlJAhb83oOaF7ke55XfUbUiX3ZMRjQR76 xrjZIOdh4bxyKgaePOBjQ/W0H0UxG6VGtgi7tm+GlDVfXau0yMQGTiu8Vk+wKLiebCLq T2uS14+47mZjpzVJkLzLBwcWSI1VjWqd4yj7FrXV8CNl0Za7Ov6Sa0PVwOSHkZx4FdBZ EHAf+6j/SDRJ/LzTbGx4ZgslxLKGtGxm+FwlcbItJeZbMRf5NPQKSi457dtDi4KgQ4BU t8DQ== 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=Ey09jtabUAQlpFOVjz/ZCGOl8FKQUNzR4azGy+CAeqA=; b=lyNq+IAe9LPoqbOl/N9VdAAEcoBTO5+sBk+akMLfQOIqRDgCxatwyUdTZYoataLTW7 P4/9tGH1ih679v8uZuEW5OD6BNQBrYR1vROaVLD3/trZMyiTO4ASch1/SxWMjD+XR2Km OZo54Z/L6nNMhrlz9vbTC9rZdCiKbns+vG4+h5gnLx0bQl2eqTEsu3bu5+wXEVJyfBtu 4fR3vR9yGXYZtVaaRHLhuC1M6opvJINr28MAsSWvj0uQO36vU/SG1/+S98uKGJFxL7wN ADYtZ3SobyjNeANyRdPl4wOOv6XSzyUUjSWjuVAjNx6umLdbvWNawDBM2aaFGpfNl/UD s0XA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@plvision.eu header.s=selector2 header.b=vG89Iqig; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w189-20020a6382c6000000b00478aec5f39esi4156836pgd.834.2022.12.05.03.28.50; Mon, 05 Dec 2022 03:29:02 -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=vG89Iqig; 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 S231375AbiLELAN (ORCPT + 82 others); Mon, 5 Dec 2022 06:00:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbiLEK76 (ORCPT ); Mon, 5 Dec 2022 05:59:58 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2118.outbound.protection.outlook.com [40.107.241.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C44167D7; Mon, 5 Dec 2022 02:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UT7wv9Zyup5hfRjVzY8V6qNKxfgDXuRS9h+2W8+wxZ3EvieBR3PvYT3LctyjRLxySHrdEA5BKH+WELgodI13Mt+cNOa6PUNT5Mzije3oLfYshdaVmMvDT13zXZZLtX8Rte6zqA3AAaJqVlQ7Kq0QONBZSzc1khkIzsFjX7kNK+Zo1EeDLkDw2AqZFVX5pwoDD6gBX35RvL9eMBOX3jqHLVPnqUNl7H93cglznGrfnK1KKgxlglqnhgKH8bqaBq+2pWIXv70XKcYOEyR9FQWD49hsWuOY1ViuHKoRc3ggrzwvTxMtGfDZAe+DC/nG3fe7jL/B4AiPX0McKbb8zEPHtg== 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=Ey09jtabUAQlpFOVjz/ZCGOl8FKQUNzR4azGy+CAeqA=; b=hyBQo0mkuhoMlRqKw4y53ipDgZw9dV3qqepzWkInaphuWYKPY52j9hE3XQ+1RLtw+0CRWgM8nfHqQe9GiUoFygdnXN1S+A88F5JFlMPUegiTKqiK/WME/YIRAlRV9+gMsyCVd8ogXhxY/uwYW7TetmSoRdgOiAm2zm10afo5e3H8fxLeI4MktX7ZHcNopBzFH/R5YKPLj4xt1EIcJ13NBzQWzjDBEx6ok894/16NUTVRzkqSXva7O3oPGXgGDda000P+Q2ybggquUPkz9Zlgb0/r3I7bG8l8tEIQ/k6TAJqYkKqIedJKTzWngKIk4n5Dg00uVD9JGkhL+dcXcl5AIA== 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=Ey09jtabUAQlpFOVjz/ZCGOl8FKQUNzR4azGy+CAeqA=; b=vG89IqigGe4+HYw33Ep4hSlqXmWNPitF1RTjRHlzmUVL7uEzXIvqCt1QzASqUlLhie2SSW2F01PdDGwCTDgDqowzRNRl4kDNRiU1UtVTfBWcUoeZTKZI6xno9eqw6Gmhn2oXLEjW69MWEit+Q8LpHzBp3FzF9ojv1+Z2RS+gWCw= 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 AM8P190MB0980.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1da::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 10:59:50 +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.5880.013; Mon, 5 Dec 2022 10:59:49 +0000 From: Vadym Kochan To: Hu Ziji , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman , Chris Packham , Vadym Kochan Subject: [PATCH v3 2/3] mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers Date: Mon, 5 Dec 2022 12:59:29 +0200 Message-Id: <20221205105931.410686-3-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205105931.410686-1-vadym.kochan@plvision.eu> References: <20221205105931.410686-1-vadym.kochan@plvision.eu> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: FRYP281CA0018.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::28) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|AM8P190MB0980:EE_ X-MS-Office365-Filtering-Correlation-Id: 927fa950-e448-4a09-714e-08dad6afd440 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +HArG96V0NVcGnbgcGjuqcNFgm0kxaCE1pv4QdXODGMEzpkjUFOE3TvW94BAANJiIM5rf72pWpRlUJh0KwCovQAnzGRZF1sOsX1Qx5PhA+ENv96KKSf2qxFesXS+7O0zrD/ycHZQGn3pmyQ94h774gw5YSPWLLoAi7VvgzMM17I7ZaEP9YUh4TN5RRSlyJkjxRASgrG4bSXUCVklswVMMIEFDJgyX2XBIexsRymTIkZ5d3DNwX+j2vHpM2JogidAjDT5ScYU5DALszHAOTCTPmxCgaJaFxmECurL/uLRnVCtjXrfC6wrodAtnzbTz5sHsmy7unopZ/Br8s3UPHC4mXZ9cc1c42RqWS+fQvvMze1qc+CCJtEMONXzesHsuCIM4KWS3voIfwlNXYiyM/dculgoRRJpNUT9CBWNIa05CeGaNaSgvCgSb/izirSUSrBf+PY4RAMPssszOdCN1HtV0G/3pri1PM1avJ/kAb0I9G+Iy989tOWDX3rA2uOjvG7B2da0gbMoSZozH2nKgjYZJhi2Wvu4ChB6HtsXBr640kmDVTK14TvWo7xX64ADNcjYpxxS7vO8EhMdiuobJrdJdDSmda7HQoyNd4CWbVbNZ4qH1ylGNBE9wDn/RLLOtcBH6f14ulAguqqcko7JkJ3qs/CxzeymoaR3si4kYJZdyp6prHc7vnHEcZpy0mKzHF38 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)(376002)(396003)(346002)(136003)(39830400003)(366004)(451199015)(36756003)(38100700002)(86362001)(38350700002)(2906002)(41300700001)(8936002)(4326008)(44832011)(5660300002)(7416002)(83380400001)(66946007)(478600001)(6486002)(66476007)(66556008)(316002)(54906003)(2616005)(110136005)(8676002)(107886003)(1076003)(6666004)(52116002)(6506007)(26005)(186003)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zDfa7djD9/dkwq+5p+wqkBHPVHd62VMzKkVwJ8l9VbiYSRksT/D16R4zboGi?= =?us-ascii?Q?CNjJzSboOPihMYUhwX41xAeXbywUJkD95MdvrFw4zmoRINlNcTdowvZZV1Et?= =?us-ascii?Q?ftFWfIWGV/eOQiWc8ZrtUM/aXTW1ERRrny4cygClNEz6xvlJWm9+ejf1ITxw?= =?us-ascii?Q?geKOHaLh9u4yH9nR/0m8Iwp7gSzj+x7mfcXGthgIt8JN0XoZDV5uuo8yaauQ?= =?us-ascii?Q?3Rb2YuPawlKLwsJDTF0/ISBll64NtbtbrrScQaxXHq8WCXZdEBo9QDuM8J4x?= =?us-ascii?Q?TZI1gZezio8pGuAstOYWU6KpP2Kwz8gCfW4ZvJiULoeQe6NYF/VXeJSI/5JO?= =?us-ascii?Q?dgOhRylL93Ig/pFo3JGg/lNcs9Htfy7cUs+XjnwyeVHEIhT4u+A5SvVnoFrv?= =?us-ascii?Q?8x328AxC6wGkoa6gvlewP0hH81+pzXi4QRzeH5FhRs7hofgeOTJKmgOUeuJt?= =?us-ascii?Q?qQl5PKb3pYDhEkBt+gmH3wXEiuLJlB4fqug6RWRB64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qBtw+srxu7gWOK1L8ZjHCCPH0j8uEKa4spapvLALsJezohUI?= =?us-ascii?Q?iAGBLAXQXLsmcWfPyYiWe2/weLjtC781A8bvBVGhZpnCr3gImh7bBSHaQpVr?= =?us-ascii?Q?EE8hKR4jQjqpViqPduBAVdQ8TmJYApvc7LUmeb38w1ftO/E1petK+O+ju9RV?= =?us-ascii?Q?U8UecHSWxEhKxFjH9fr0yLIrmL5y+AKjRUhpkTt8AErtkCRc2TV0rFdhnGJA?= =?us-ascii?Q?7g=3D=3D?= X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 927fa950-e448-4a09-714e-08dad6afd440 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2022 10:59:49.6991 (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: 0knt1Owyw1GkWDIjAKQIbREHQrGOVwOkKnUig5uWAYAXABcdMSqstDK95keaiV0pHHZ6DyhKKh/gq/g5K+hK/h3shkNuLpYezGaoKoA7oxA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0980 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v3: #1 Fix missing EXPORT_SYMBOL_GPL for sdhci_set_dma_mask drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2108e8075609..d3ed0531d985 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); @@ -4051,6 +4051,7 @@ static int sdhci_set_dma_mask(struct sdhci_host *host) return ret; } +EXPORT_SYMBOL_GPL(sdhci_set_dma_mask); void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, const u32 *caps, const u32 *caps1) 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 */ -- 2.25.1