From patchwork Wed Aug 1 14:17:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rivshin X-Patchwork-Id: 10552387 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9EF2814E2 for ; Wed, 1 Aug 2018 14:18:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C35392A28D for ; Wed, 1 Aug 2018 14:18:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B62452A384; Wed, 1 Aug 2018 14:18:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 90AC72A28D for ; Wed, 1 Aug 2018 14:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=aLAirWw6DGaJrtub6nc3qKhEmKhiksznYqAhJBvm4E4=; b=ik4 x8GtP2baGrwPVsmNWkhx6meY2un0e3IBBiVFLoPLIrPz5IZUMsPQ8Fs34pDfxs8YZSNGoei0MfqfP Ff8k+Vb2UkQnhiXfTORRODuCcuAJvYphW3WfPJVG8UH5j2TSZzOHhQD21i2ynLlzj7EqFfraULbVH c1Fwnk4DkJHLAzC9svv3FJxr4kZP4KfScAr9ID7bCD33fPQNdjcmc/gzKZcSW9Q+XkHOBnmKQ5KMl i3+6GefoBYrT3OnbeUjauWV13tTqHfQBaSBvhNI+iZH9+QyVkvuULX5f64FbcL842i6FlYbzgmCXl yl2b39rBze+57lG7Meob+7lHf5mf9fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkrx1-0008UL-Uw; Wed, 01 Aug 2018 14:18:07 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkrwx-0008RN-Gq for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 14:18:05 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C766021924; Wed, 1 Aug 2018 10:17:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 01 Aug 2018 10:17:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=awxrd.com; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=zkwOWw1tEXbDJdDRjz8pgI5K/EBCxaEpsvrpTI9xu CQ=; b=WQ4iZrMNWyWCpxqGaXBmQfdqq4Qh0MrmPoTZK5jOqIfYf7+SXavrHjjZX DOcCGAgRXs3C/oweX7OhMkCofdFw4ryjAfA0IPJXUFGrYPW5dTuzpfSm6WRME4DI JPMjyC8LUq3xRauVCeCoX0mUP7Xv94Jb79IQMl2UNWAlSLpe077jeLWjMuaKvsbW dkeDEMongqHFdpgzUb487HUhzxahVT7bdj7K7zAdo4Oegp+ZMEJR7gDorFUNIZ9q 3jWhMkBlEeXBrBCAqrx087C0pUm4BSHnQIxQKVZ6JUbJa63tmPi2j4BHUurke3+f bNhZKFYyhzq0NtxzRfRKJ5dG4OdWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=zkwOWw1tEXbDJdDRj z8pgI5K/EBCxaEpsvrpTI9xuCQ=; b=rrRZLujfX7wy25LoNPBdtXt1NSbwaQJ2p 76kVbczQweel60urpiRRgZPJOyLSXxTr5FZNIccPUrFdyf+zzCkGyYyRdIa1R1nG eAYWJR/LHmq08dBesh6yli1e+aGh830KszBdISKSNBeXxk05OJpMVvWHZza8/Drn Zizfyf+jG4GoDZCby4IoKpdIqomaIKBtNqnMd1o82nMRxlrCW+iT6sy/63l3p/Pb d1m3X1/KzvC3qApqXLU3jy0P6388oi+83tTFShM2D+8U1wO0OplRoQPjEGNJK7UA MNQ2sgCgX0fqaTGiT9/We0nCRTmukaHGFMGxmh6qFN9RWoqnXBJ9Q== X-ME-Proxy: X-ME-Sender: Received: from drivshin-linux.inscitek.com (unknown [24.213.148.66]) by mail.messagingengine.com (Postfix) with ESMTPA id 545BDE4519; Wed, 1 Aug 2018 10:17:44 -0400 (EDT) From: David Rivshin To: Thierry Reding , Keerthy , Ladislav Michl , Neil Armstrong Subject: [PATCH v4] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data Date: Wed, 1 Aug 2018 10:17:29 -0400 Message-Id: <20180801141729.2840-1-drivshin@awxrd.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180801_071803_784022_A700202B X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Tony Lindgren , "H. Nikolaus Schaller" , Andreas Kemnade , Pavel Machek , Thomas Gleixner , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Rivshin If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform data won't be set yet. Fixes: ac30751df953 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata") Cc: # 4.17+ Signed-off-by: David Rivshin Acked-by: Pavel Machek Tested-by: Pavel Machek Acked-by: Ladislav Michl Tested-by: Andreas Kemnade --- Changes in v4: * Added Ladislav's Acked-by [2] * Added Andreas's Tested-by [3] Changes in v3: * Changed dev_info to dev_dbg Changes in v2: * Added Pavel's Acked-by/Tested-by [1] [1] https://lkml.org/lkml/2018/7/16/346 [2] https://www.spinics.net/lists/arm-kernel/msg668768.html [3] https://www.spinics.net/lists/arm-kernel/msg669302.html drivers/pwm/pwm-omap-dmtimer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: acb1872577b346bd15ab3a3f8dff780d6cca4b70 diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 665da3c8fbceb..f45798679e3c0 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -264,8 +264,9 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) timer_pdata = dev_get_platdata(&timer_pdev->dev); if (!timer_pdata) { - dev_err(&pdev->dev, "dmtimer pdata structure NULL\n"); - ret = -EINVAL; + dev_dbg(&pdev->dev, + "dmtimer pdata structure NULL, deferring probe\n"); + ret = -EPROBE_DEFER; goto put; }