From patchwork Sun Sep 4 14:10:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2345 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9218F40F46 for ; Sun, 4 Sep 2022 16:10:44 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id q6-20020a17090311c600b0017266460b8fsf4454263plh.4 for ; Sun, 04 Sep 2022 07:10:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662300643; cv=pass; d=google.com; s=arc-20160816; b=cqC5ijYEEyfobwZ2LLqEcqZZx+mY/XjxgsWyATFWsBuZTTXH1JYVdpxi2yTaZQxMBZ NL4UquqnMX0bNwRIncgQbI0Iqqf3RxySkzv5Ittkax79sDQzK9IvqcVaJhzO0yyKAOlS 3t8FSrDd3gzRMjFABllJdhw26Bf0o7JId10zHTGPw+qfKmhoLREr/elWcOSPyqtPDlln KoB1ytjI+VrEodMS+EKRXEWDtmvuVahsklEq74m6mG8YXGyyqp5hV+dH5L1TeuFWfCG5 HdZ7XTcRBm9j9+mY91751tNyt5KiuHYaE2JkLCtRNmSwJY5sJgs0kp588/SSNAWdFF6c LzJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=p9BUgPrxYEuAYSdCqWYHnH5Vkk9pA/5ExZ1MpE2zieY=; b=kdAYf+TWOLX1F6MQvFnE4520pL/OEGa6qKTV6ADUsdtpfCVo6iC5FHbSs9NzbHtbNL hIs1Kcfk9pUjpnv3tRTcquakLwrsRlzCIiHm/FKjlpv3v17UEE2QekiXMNf+YzsoRW5h HVu0qM8rK1QRYqBpWihX8z1yF7PoOQQY6wO3yQTW3PFgVmqLe9SW9HM2yrmyFYSwJ5xm nocayQGcRSn8Mp9Erhh4TDTXqbtILRgsM+vNMhEY9uKQDq+djrNSLIePRo+pD0UxqjIA qYh9GxnKw/kJhqgdMbLvZDiheKdwbKdCmFOaMNtRENqgSDyYTejliXvFQYXzC1IuOFFC g1Mg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TGI1HUQ/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date; bh=p9BUgPrxYEuAYSdCqWYHnH5Vkk9pA/5ExZ1MpE2zieY=; b=pyoIUO7YOxlvxVMuYqJ6TH0WY87q71QU0pD0lRuS9eOIBhtG9HFlNtptOrAbEFsSmg 5EDuDCoZHLOUmPzxByM44Maj9aQ0+8mjQ7EwgPUlVOuM/Va6FCq4c/klmB3xlVrxKGqM LRXlfTvWpszoH2PGmhwoi6trtuMdPbuxJNogE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=p9BUgPrxYEuAYSdCqWYHnH5Vkk9pA/5ExZ1MpE2zieY=; b=l3Ie11Y3lfNcTHHh6Ry5z69C2RK904p1Dzoh59DOiD8ZT87DK+zNSfIdEX6OWHAVvZ 3PLzlIHNBY0deC0gDfDrEDSiX+CCU3nX5SJy7BCctMZRv0VPUdDAquoibPUAH/bRG874 tzLiU9gy6dAJ8Y0uP7T43ocuF9VfiBgrc6ikg3wdalmStGoMVMqlLS5zMcKRvVmELBqS if4vUlhjiSA4oyj3xj1zQsxJLAaXIBN8JNd1aV+0oxuUJUfO2UygYeR92vnEpeuhgBQB 0WdItu6QgaAAizagsEQfqEh8Ejt2yYW8EzTLaBz2a17OrxIE2bHnZ+ZpQ9mz9CQblR73 hMgQ== X-Gm-Message-State: ACgBeo2hjxc8xhzJNhr0lfRXPdFreFV6QbifFxD1VmWm9c7RgqWitnoN BzsKYXlZW+T4+Z6Hc3VA9vDHzGQz X-Google-Smtp-Source: AA6agR4I3Cc5+EG9cpJ2T7/LgfUZB3iCGwuHnCzMMWW88iXQP8t2yP90CAVmJNeikAz5QfYLjqu8yQ== X-Received: by 2002:a17:902:b48f:b0:172:b57e:f0ff with SMTP id y15-20020a170902b48f00b00172b57ef0ffmr44890343plr.25.1662300643191; Sun, 04 Sep 2022 07:10:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:90c8:0:b0:429:ead7:6932 with SMTP id a191-20020a6390c8000000b00429ead76932ls4380619pge.4.-pod-prod-gmail; Sun, 04 Sep 2022 07:10:42 -0700 (PDT) X-Received: by 2002:a05:6a00:174f:b0:53a:a96b:10b0 with SMTP id j15-20020a056a00174f00b0053aa96b10b0mr23445398pfc.68.1662300642319; Sun, 04 Sep 2022 07:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662300642; cv=none; d=google.com; s=arc-20160816; b=pGqAhaTqON3LDuA+ff0ebmCf/VSHTlow/SWpTRgEiQora260QwoTrFria9qwwhTAdv MYsxNCoIb6OX7SqvSt4ortLJ4Fi28HYpOGlYWDk+xY8Tn1HnDYfVPt8H1XfGcg+DHwac t9ZkZfrgSMvukTrsV2XERrvwKTnPmsy2eH1rzGBQOgdVNaXX145LmC34eeZR1CCPTmRp 5Wneg0FgUhDu/Ey1PNFvlqdL1p5F5cAKjHuinc7Ft5Ll+JtgtsNMkX8AqAS79ZQuljyM UiDBmCC5TMJbBucMw1YCXEwyIGPOFaZOhrioseaCOFC/9mCJjXcPr0qPRu68Ny0RCjOy S9Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=C3neU1AtxmqWdDSuYqkB7lF7A3shUmwSCsbgD00NRVo=; b=J/cwZms/cEBzn8hUebjazqLfYJL83yOqQhvS4sZ8JoVRf5Fwc0NZOyoOpvbhfNAYs+ Xb4GG5lLKt3ofP1n2YqXI4+2DbYoT+fOm9mWD6jCIqUr+IDLd80y00f9rkeMuetUIrx+ 1x3KBHRmWGZVGsCBCR37yzrzmfrdnOyThxOJwttZf+B3W0WdrZPVvgpFPAA5pTVCQUfH UpTaN8vDSpuQMiLib573CNerO5VJL+sryqqWkpUWksawZxMVGuTffTzIf4ZITRKb3OJ7 2FLBAbtt5w5CN8i8MjMVWoxcbPSDyIasuk37fqhrIopHseV6eipjyK+78WGcx1Khxarf uSGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TGI1HUQ/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id k1-20020a170902c40100b0016a39ba33ffsor2825784plk.96.2022.09.04.07.10.42 for (Google Transport Security); Sun, 04 Sep 2022 07:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:820f:b0:176:9654:354d with SMTP id x15-20020a170902820f00b001769654354dmr4925350pln.79.1662300641893; Sun, 04 Sep 2022 07:10:41 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-31-31-9.retail.telecomitalia.it. [79.31.31.9]) by smtp.gmail.com with ESMTPSA id z9-20020a17090a170900b001fe136b4930sm8606760pjd.50.2022.09.04.07.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 07:10:40 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Michael Trimarchi , Dario Binacchi , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v5 1/2] dmaengine: mxs: use platform_driver_register Date: Sun, 4 Sep 2022 16:10:19 +0200 Message-Id: <20220904141020.2947725-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TGI1HUQ/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Driver registration fails on SOC imx8mn as its supplier, the clock control module, is probed later than subsys initcall level. This driver uses platform_driver_probe which is not compatible with deferred probing and won't be probed again later if probe function fails due to clock not being available at that time. This patch replaces the use of platform_driver_probe with platform_driver_register which will allow probing the driver later again when the clock control module will be available. Fixes: a580b8c5429a ("dmaengine: mxs-dma: add dma support for i.MX23/28") Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Cc: stable@vger.kernel.org --- Changes in v5: - Update the commit message. - Add the patch "dmaengine: mxs: fix section mismatch" to remove the warning raised by this patch. Changes in v4: - Restore __init in front of mxs_dma_probe() definition. - Rename the mxs_dma_driver variable to mxs_dma_driver_probe. - Update the commit message. - Use builtin_platform_driver() instead of module_platform_driver(). Changes in v3: - Restore __init in front of mxs_dma_init() definition. Changes in v2: - Add the tag "Cc: stable@vger.kernel.org" in the sign-off area. drivers/dma/mxs-dma.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 994fc4d2aca4..18f8154b859b 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -839,10 +839,6 @@ static struct platform_driver mxs_dma_driver = { .name = "mxs-dma", .of_match_table = mxs_dma_dt_ids, }, + .probe = mxs_dma_probe, }; - -static int __init mxs_dma_module_init(void) -{ - return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe); -} -subsys_initcall(mxs_dma_module_init); +builtin_platform_driver(mxs_dma_driver); From patchwork Sun Sep 4 14:10:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2346 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 116B740F46 for ; Sun, 4 Sep 2022 16:10:54 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id s129-20020a625e87000000b005383388a6bcsf2871527pfb.2 for ; Sun, 04 Sep 2022 07:10:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662300652; cv=pass; d=google.com; s=arc-20160816; b=LboykJGM/ZSuBl/2Aory4WtIQm8RIdeQ+eEPcJfT+crfBPCbrUXrQCrZfrEGCTLBp9 LBERdiBreeWp0U+8/OiN3Wg5fdnyo9yTHn3IXeZSm5dsTB3kD0WPFlotoWuCXoIWE6b4 31m+xi3+TRrPqL5f937e43LAClj//Pj2sLEBPq4NWwf/wG2eDidhmA48oaOWtM0aVFof 5qWQjVLmvuEcFjWtTw9a2W95Czf2Pu8Gezw/uBcsNPyZTAFml2oIlGRxSUjzUfsCnSdr f67XaCs0EuH0dj7b9IwxwA60UNeP529hzB861c36o7l6Iq7kToMJKQJ+owL6k+tO89xg gkAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=kwGeJ63kyYVgmNgXSD6ImK6NorP+EmdYzt8LZTkI4CQUEx1FFlUGlDElzkG/KBptuM uhG49TugCuFJ/mLxjmknVrDo3mKqUXqqhFgIucvBPwf8dxISL389/Bq+Gdmjbh59h2sk sv+qRQGSjLLRRR3xyhcIGoQ9CK/wZu8g+4SY9CGzFbr7YPjCQBQgrJz1Hj8VC43nSo7M U8kCKxnUqqVK6Cf96Ab3MKHa2AZxSgtQ2Vp4q6jY5RUr6Grd7zSUko6ESgJPxoSpTQ5F 7IieLXvKw/EOX/Cn+t8E4a9bQWVQBhfiAEKJq8uqROcttVTetfNeLEEX4uwg8ISvbGQi 78Qg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mA5YuvaE; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=mJ6dbmbNJQlm2VGju9iMot2KqGUIHQy5NO4VeBrc2UFW32h4zwWyoN9gMpSWv43fDV zy2L9IfWiGUz+oZtnoHexwFO7eJ61s3RKjMzp05nvGFTc09Ca6Q+OrzfJe22NRRq1dXT 4G7XeveyM4ihzxqfDL0TFvYAH9hg+VUg2PiXs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=bKp3Y8UmfvO/yrW3eZUgPm+1MTV9LBkqj1XNkQpEXaD64FBXqQqPDIscxjnET1dDaG NiKEViRatW0dg54WA+E++8X/sthkRoO9nY+Qh4DWJqqjimK44yrSXGYpmrETu9XeA2un QycUFFjxPTauV8jaSm/quAslr/wAQP9KGfs52ZrgV/kSnEd3UoT7WSFSFRKYEcpFTWGq Y9nEydXeltmn/WLlqqdN2jFQ5XQyi7xLfIDfrJlBwRH4bHdR1Th5IhwfYQmJXiGZpCXg vd4QJVRglTtU0R5N64m+EWxgjQLATNGdsxhFoSa7bkVz1q9BUh7xxd016ElKY0yXC88+ NPmg== X-Gm-Message-State: ACgBeo3YViSTWbJwodOE5OqF5aCsRJM/+Az1SIPfCH/81C8ceynMJteY 6qaVkcfKK2F8xr9zduc47Sf0vGL0 X-Google-Smtp-Source: AA6agR4Z2UgesLmKMpe+IUPeGHwE4dsgtmDYMXUsbfC0td4/V/POc47VWQoLj3lqe7XOdopgygF0Mg== X-Received: by 2002:a63:804a:0:b0:42b:8b81:72c9 with SMTP id j71-20020a63804a000000b0042b8b8172c9mr36124883pgd.355.1662300652770; Sun, 04 Sep 2022 07:10:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:cf98:b0:200:36a4:89f9 with SMTP id i24-20020a17090acf9800b0020036a489f9ls1328143pju.3.-pod-canary-gmail; Sun, 04 Sep 2022 07:10:52 -0700 (PDT) X-Received: by 2002:a17:902:70c8:b0:175:368b:1255 with SMTP id l8-20020a17090270c800b00175368b1255mr24433279plt.83.1662300651873; Sun, 04 Sep 2022 07:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662300651; cv=none; d=google.com; s=arc-20160816; b=0MxUJVzw2Zr9SmlNiIxBdaELoFIe9Uf/8SRsX+Rqn/RkPfWe5UdoNknkKUp453ywFC Trm9lkFGhAseIwrskE6Zppzcxd539xDNFwoDLHMxqqVUm7qC55W/13NZJlNl8btLdwKa pwooCAWpPPchjB4yidCSFgHwKGDIgXrlsZ+JWz361mZf0yRzzgADLTIwg9EkT5WFJn/A /a44iRYpaC1LV5dXamPSHpehAzU0NMjvh8tBJ3xvf6lBQ3pUwvQqF9wTtKKL3jDPXhjC Snl1xdhVE7dFV1VId9vRgyESAeSMnPejzwy9T3MIPOqyCct3RnukryZC10XZnjk2dGtq ewLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=VvuKOjMoACWrZqEt702zKIEBeUEZ9LVW1luV2bloaktcUbYo6QHY4ajlJ6Eg1okpNr cqMX4iBoN2v6lUTVcvQbVw4hADjJYIxvA0pB4+psPCNxSkM5NWWkNjV7aHmY3bJ2TVK7 yCvwgSFVbCnI5Xn19Cl8mOz1Y79IU79PystlcGUzy9VmGF0aLPhDKcODwGLcFaoGpcYp ySE7DdHi9hQP7Pgi7voPEWk8Dd3ZCvV9RpHjehd2+XfamAHzJkwr3j31pE8b636BIF9L +aP98Yd9GtUtzH8IgqQELR8RigLnbb+wQWBUTfuKt/MzzbLpnHVMw3Yg+5CgOnkbIswd yfHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mA5YuvaE; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g13-20020aa796ad000000b0052d548fe27csor3572172pfk.3.2022.09.04.07.10.51 for (Google Transport Security); Sun, 04 Sep 2022 07:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:5a50:0:b0:429:8580:fc61 with SMTP id k16-20020a635a50000000b004298580fc61mr39578533pgm.215.1662300651563; Sun, 04 Sep 2022 07:10:51 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-31-31-9.retail.telecomitalia.it. [79.31.31.9]) by smtp.gmail.com with ESMTPSA id z9-20020a17090a170900b001fe136b4930sm8606760pjd.50.2022.09.04.07.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 07:10:50 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Michael Trimarchi , Dario Binacchi , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v5 2/2] dmaengine: mxs: fix section mismatch Date: Sun, 4 Sep 2022 16:10:20 +0200 Message-Id: <20220904141020.2947725-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220904141020.2947725-1-dario.binacchi@amarulasolutions.com> References: <20220904141020.2947725-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mA5YuvaE; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The patch was suggested by the following modpost warning: WARNING: modpost: vmlinux.o(.data+0xa3900): Section mismatch in reference from the variable mxs_dma_driver to the function .init.text:mxs_dma_probe() The variable mxs_dma_driver references the function __init mxs_dma_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Cc: stable@vger.kernel.org --- (no changes since v1) drivers/dma/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 18f8154b859b..a01953e06048 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -834,7 +834,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev) return 0; } -static struct platform_driver mxs_dma_driver = { +static struct platform_driver mxs_dma_driver __initdata = { .driver = { .name = "mxs-dma", .of_match_table = mxs_dma_dt_ids,