From patchwork Thu Jul 12 17:28:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rivshin X-Patchwork-Id: 10522063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 699B2602B3 for ; Thu, 12 Jul 2018 17:29:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4889929ACD for ; Thu, 12 Jul 2018 17:29:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CA9929AD2; Thu, 12 Jul 2018 17:29:34 +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 CA90029AD6 for ; Thu, 12 Jul 2018 17:29:33 +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=IOcZlmyXdCBkCEofWsuF3V5MDPgRmiCBMIHAVTmhXLU=; b=d7c NLV/KN0VchMpcSfrSCsAz5vlMjclqgRU6n3BTtGFihllyhh/+cSLOpWmeQR/k4SZ/vmg8/AXvUILw cgONjSNsBC6OumFRGmzY62x5LaSes9mA6sYmxAYVWM2kSTBWF8UKpwa0xYdi8jt8Lpo6+cI2Ez1Gc uVzMtTENEUJyY6M8DL18aG0qHHnem9TYsEVtEQxIGRyMgWXR4VNEeh6PQ/4XtIwreLtI2UGluboHM RDk0cMdpZVsoNaXkpboCEVKLWXQyk/65z5el/+Xxe1AcOJmYeYG3zcqMKYNiNLH/j0c9ll2wB3haY pepituUCbxBBAEOFj0AnRvx9gKYMw5A==; 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 1fdfPG-0001ya-79; Thu, 12 Jul 2018 17:29:30 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdfPD-0001x0-Dd for linux-arm-kernel@lists.infradead.org; Thu, 12 Jul 2018 17:29:28 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 82BB732A; Thu, 12 Jul 2018 13:29:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 12 Jul 2018 13:29:10 -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=Gvk9EnhZrjbfAifEWagj4dQnMyyZ0L9fc53xjtuyJ FA=; b=3lkbYpF89/KmucAZJ+rB2/xfiAClZ8RDhAETBy1e2IfWezwgwMFoqclbU 7EIWzG21vFDDNOE/iUiHl1WP2ltuevBn/LQ92pio/R9Z8WpACOnTL+pHfJ/9dAJ+ h6gzVPidTmAiZd8mPr6phak4M1oePrwm9eGJ4yO67iL4BI3/ZrzTbpAzYjUXcebB G82bhxU7zalacPspjhfSq5dFLtkg5BKKfFzqxDKi/oCtIzorrsCZ4w/1gmhzjbuE aMId8JDW5kPqnPkqwAC90MdJMKDJWnuddiqV/MYj9x+DliVwVOPu11Rlq1XNarEK atrSb8SmWAIIh+nuDHlEfO4jqLxIA== 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=Gvk9EnhZrjbfAifEW agj4dQnMyyZ0L9fc53xjtuyJFA=; b=TjiT/6Y4/SSpUvdBIFf9BEyA50olbMAEf RB6YnlirR08DtFjBAkz0wUS5+pro8QSj1X/kqiZsh8ndIK3C90v2XRrlz0xm2wac qyEv7lOKNjZ2BIySfnvcqgtdrnjz7iJiVQaktnkCbT+yYvAgWMOaKsTWyS58v8X1 E7vZEOwp75120pdW8SfnrjEgi3FZ+tYwil8+SpfsN+g3RCcAC8jGGrFPGD+8rPSw EMJbNFV2BvhGRkiBJ7SHDYI9zSTB2QtfGVqrk1TnddHQOE9jo5aI7VThUzn3p5Yi 7un3ZTIXvCADUeJqSACzNn1BmjXnKmTl20R1ZLI8eGZhUwZLJU0JA== 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 297991027D; Thu, 12 Jul 2018 13:29:08 -0400 (EDT) From: David Rivshin To: Thierry Reding , Keerthy , Ladislav Michl , Neil Armstrong Subject: [PATCH] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data Date: Thu, 12 Jul 2018 13:28:53 -0400 Message-Id: <20180712172853.22293-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-20180712_102927_574075_FC5684E8 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. 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: Tony Lindgren , linux-pwm@vger.kernel.org, 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 --- drivers/pwm/pwm-omap-dmtimer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: 1e4b044d22517cae7047c99038abb444423243ca diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 665da3c8fbceb..d3d7ea7a53146 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_info(&pdev->dev, + "dmtimer pdata structure NULL, deferring probe\n"); + ret = -EPROBE_DEFER; goto put; }