Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3307820rwr; Sat, 22 Apr 2023 02:50:05 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrlcEXjdX93S5ntzXS0MVzIvblNL3AE+HgyQWZuCoaQKV51YS/mgHoZYHp4NcamWhWuU+e X-Received: by 2002:a17:902:ced0:b0:1a7:db2f:e918 with SMTP id d16-20020a170902ced000b001a7db2fe918mr9156126plg.1.1682157005407; Sat, 22 Apr 2023 02:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682157005; cv=none; d=google.com; s=arc-20160816; b=0ABA8T8h+zdQpRcs6gh4E8gzEjHfYG5A3QPP2l0JHT9+3I672vyxuyD5YlBvUjhNY8 8eJ/RbJ8Qg5Q8rXHVvjsWe28ts+nWFXPW2rPGoVcNGbdZTFQ7MmgG3uyiuAzPtFxlzzw vAAqedr6pYtPhsUs78CIEg/CV9mJJF9YNrc3B/4YYsi0fEDm7XKeGFMoq8J4w2liZ6yB c2waQsfudNUpr2fQ78yoBbesmSUufnDRhEGjXl9vuyYY5sLWxiowCePaVWeac4PpHK2h YI5nTCEhWaJ59qQA6wAezOMTD2AHgw37qpiGmmutwU/O1cllMnWT0MbSmXf1T4s18TEn 5Lrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=8/DBoPOwK2qCLE7KQWdfpOxA6FLwpYN8t5b9KIZQTBg=; b=cE/UsXPSbRbthEVREt/7nPXDE1yo2d63w2Qjah94AQ1fOqHWXe0bnZvpda1awQkvt/ hNxApaeMt1Lb7/9/E6x1X74jFfXxszXP1oHOaDU8RHcurRrAlaNw/G8euwfPJIJtQV38 hNRJout7aqPCVo4XGsaKfT7wop6H8J8Dj78AHiOSa8xYWxqK/03fEmYTeZdaa4pOTyBE n3zOR+uBkUxOG4JFESCrKuy03s3my4Iy0WVQ/MlOtwYdpArZCznbPi1MyHKFsFtZmSCX qUFVspN19MGJfxW1VJJ/3WCcYrp6mHYxQuRa3xYxNrltjBD6enpxrXP5TBSns4asOewL zG9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=rVSlOPRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a170902784e00b001a1e237060fsi5818031pln.344.2023.04.22.02.49.53; Sat, 22 Apr 2023 02:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=rVSlOPRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbjDVJlv (ORCPT + 99 others); Sat, 22 Apr 2023 05:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjDVJlu (ORCPT ); Sat, 22 Apr 2023 05:41:50 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237D6CE; Sat, 22 Apr 2023 02:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682156503; i=deller@gmx.de; bh=DsrLIIluLdgO3bhcRHmlFP9nZL0fd0/iJPDU9qOBfjc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=rVSlOPRDQE2i5mnHQnYFaswQlPY/GF82A2OQ4DhfttWy+z7mPOlO+FwB8dSsNqxwD Gbv/2omTDZCGzHswS6tCTky9DGDDXep5DdLuTKBG9PcPb2f5cNGJ6N1ZCYE8Q6D3SI wpFEduLizWsk3d0NcK5UPP43VHrF755qINxOPrVguNlUnzFMOORccPEpy1e8KF/mnN J1mXlA0yVeab75d5kX0Hz+bKPmAuj+/QqfMbdS8Ft+0f9kvZRUh1iBBUGfAom3y2fp YQ3hfTEYK61lYJtbOHtXx0wgRllC67xY+xWikrQhMztZINIBUgiIhli3d1gaaFkQyh Ri8kpBgH7WBiA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.157.94]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N4QwW-1qH0Eq3yT8-011TXz; Sat, 22 Apr 2023 11:41:43 +0200 Message-ID: <6a884317-392b-f650-a568-d15ccc48003a@gmx.de> Date: Sat, 22 Apr 2023 11:41:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] video: fbdev: mmp: Fix deferred clk handling in mmphw_probe() Content-Language: en-US To: Christophe JAILLET , Cai Huoqing Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <685f452cacc74f4983aaff2bc28a02a95e8aa8b7.1681414375.git.christophe.jaillet@wanadoo.fr> From: Helge Deller In-Reply-To: <685f452cacc74f4983aaff2bc28a02a95e8aa8b7.1681414375.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Enc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gVVG1pOHXsD73r8qoGHMzdGUqOKPM dUH0DDlwO/SojzviCPZXHaDt1X0MDFYRq45DU3fBb9yDlN4V57QC6+MN0hbakEeRG9gMn7vRX J5f6dP0cabXmb8tygWYLHgvZdfH2n/rboVt0uuP90WD2s5n0PkTJGB9juMVTWcS2BhXbf1zol 1oR9FUeySknBwgD+J6DIVUfiqi0= X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/13/23 21:33, Christophe JAILLET wrote: > When dev_err_probe() is called, 'ret' holds the value of the previous > successful devm_request_irq() call. > 'ret' should be assigned with a meaningful value before being used in > dev_err_probe(). > > While at it, use and return "PTR_ERR(ctrl->clk)" instead of a hard-coded > "-ENOENT" so that -EPROBE_DEFER is handled and propagated correctly. > > Fixes: 81b63420564d ("video: fbdev: mmp: Make use of the helper function= dev_err_probe()") > Signed-off-by: Christophe JAILLET > --- > drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied. Thanks! Helge > > diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev= /mmp/hw/mmp_ctrl.c > index a9df8ee79810..51fbf02a0343 100644 > --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c > +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c > @@ -514,9 +514,9 @@ static int mmphw_probe(struct platform_device *pdev) > /* get clock */ > ctrl->clk =3D devm_clk_get(ctrl->dev, mi->clk_name); > if (IS_ERR(ctrl->clk)) { > + ret =3D PTR_ERR(ctrl->clk); > dev_err_probe(ctrl->dev, ret, > "unable to get clk %s\n", mi->clk_name); > - ret =3D -ENOENT; > goto failed; > } > clk_prepare_enable(ctrl->clk);