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: 943148 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pwm-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=awxrd.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=awxrd.com header.i=@awxrd.com header.b="3lkbYpF8"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="TjiT/6Y4"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41RNQK1c3Jz9s2M for ; Fri, 13 Jul 2018 03:36:09 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726639AbeGLRqk (ORCPT ); Thu, 12 Jul 2018 13:46:40 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36619 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbeGLRqk (ORCPT ); Thu, 12 Jul 2018 13:46:40 -0400 X-Greylist: delayed 419 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Jul 2018 13:46:40 EDT 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 Cc: linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tony Lindgren , Thomas Gleixner 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 Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org 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; }