From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3AFAECAAD8 for ; Thu, 22 Sep 2022 02:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0/aKV8xXMIzpZ0dfMT53QAL3W48BQQRzcxYRSDQSLt4=; b=JP3CaRGin5dZQZ N5zLujr+eZBM25jWWTcfvIljfFl8O/mbvKAZcQGKau3bbbRJQuHs23EJwn9CD5KYYoxeDRF6YMBN2 r6llr4+fjkBqVHT3tP+WHhKB7oYiWzqw5M4MZBrUrXAytslr9fDUw7EcD94h6i0MGTfwQhJLSnp6W vPji6qB/MkEgXSZfeaB5ZS36hBMXGTjJAyouMdxkZtSSDv44SU1rcQ4dSPNzy+JV4QLQAdIO8ZmzN /WL0nMftuN6ae4SY7ESQOKteR+M2F1Sw75tO9CqIllHOBnQGTzlX0B4Rw+VdC5JTJBAzbZfOUR7UK wFtLz3uESuClLSZF8YjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obC4B-00D9r0-Hk; Thu, 22 Sep 2022 02:35:55 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obC48-00D9q5-EF for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2022 02:35:53 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 776A7B820DB; Thu, 22 Sep 2022 02:35:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D3B3C433C1; Thu, 22 Sep 2022 02:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663814147; bh=MMR3itBbBFn5YCH6vdTlQK8K7HWibMf9yzQoXvTYVEw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hIqWKxXYZjn7/Jjw3/xH+MDezC/8RCEcp0obY7usoYmPRaMB3kw1HPFO7gI1ujDb9 /ZKdw2SnrdnYds/JI2UnzLRaf4zidVumyw8aetrSnE18N6axKidj5tIYdgbI4NVcMd yEmUZxUo8XObwSW0BXvHnPE43aQPWSRwJVS8F+F1+MfuDCTXMPhevSDXUaU/KEuiAe Y2yF6WVSkUAlQNaCqXBRvv3bY10oWkHhhOnVh4gRjPWH+Ss0MTGzmBNypPnMUcYQQ0 rA2xCckdk+4MQcoXnMc36wyEcLjBRfqcKV4EIphd1ECtODubfC19f3Yl31IHzsQbIT zDCiYyufiWQQg== Date: Thu, 22 Sep 2022 08:05:42 +0530 From: Vinod Koul To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Robin Murphy , Marco Felsch , Sascha Hauer , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6] dmaengine: mxs: use platform_driver_register Message-ID: References: <20220921170556.1055962-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220921170556.1055962-1-dario.binacchi@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220921_193552_652288_0FEA19E2 X-CRM114-Status: GOOD ( 15.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 21-09-22, 19:05, Dario Binacchi wrote: > 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. > > The __init annotation has been dropped because it is not compatible with > deferred probing. The code is not executed once and its memory cannot be > freed. Applied, thanks -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel