Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4373095rwb; Mon, 31 Jul 2023 06:06:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYILpbs3VJ237LTxAEdsgpDyWJtp6lyaEFs98px//MW+j4DWaUSWGvl+uzmNQNhvyOQ/dR X-Received: by 2002:a17:90a:de91:b0:263:68b0:8ca5 with SMTP id n17-20020a17090ade9100b0026368b08ca5mr8160447pjv.43.1690808774964; Mon, 31 Jul 2023 06:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690808774; cv=none; d=google.com; s=arc-20160816; b=ioKJ/oGE49AX6gy7vqCjWoNGx03M01jfEGkLYS4MGfM5atDgAuSFYwXqTk50me52eE pMFW2FQG5Kw4siXFJjlhDnNsXisisn9dyRnTxnJODHxI4BD2IaaVqlyltJ/gS/VY58x6 PtiTSPPlzlwhCl9lh7gd3zA1c7eLunDEcSUKAGvEFvc7U+rXSd8+YN/5KZQnfiifMgLg 6reDTTUKPRwKJl9+cFfXRAZnQfaMtPrMB4QLBL4L7BuE4stLYNxW551DCqx/C77rLABL we40GhxSyi8tx1tWk4OIgGU9E17OWKtvPpVROaNEiQ9aICcbgsG8a0ZuWoeb8uWPbOIk euEg== 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:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=yAHy5UIi8Lr6cIvh2vvOVGCGqTAOrjg10E4Xsm/3qPU=; fh=WKkOy8x8nPNQBEjKu9l7Dfe5ecZZv2o6OKV1ithW+jM=; b=ewS2X9eCypUyby+bzFigF+ISpgdLA8kNBn39/imVTVkiNOqKgap3Gs33TAusZOjqMd W90ZTzLbE/CPOUHYelXX4xnL7en8qUuWSsN1+sHbgq19OJmwM/D5Rcc1UjNDTaBOrOUY TGME9zMvXFGlfXX3sVxjIKkPH5njNVyXs0GbfSFxDjr126kZiaHqwdQvr0b052kQUSiA fqR2sewhrsSbn32Nas6bNTZZgOtjBhIqJ2vmh9RtJwWN+HeRn+GzeT3azEAi2xDVtEnH K7o87rq9/rV7KfTIefH9NN2Yw78Pdzx/AxajGES0VBvPGuu5CMb5gYXT0XpLTiKRVYHf P0FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=KCfoDEKp; 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 l11-20020a17090a72cb00b00267fc4793cfsi7417576pjk.110.2023.07.31.06.05.58; Mon, 31 Jul 2023 06:06:14 -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=KCfoDEKp; 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 S232517AbjGaMoK (ORCPT + 99 others); Mon, 31 Jul 2023 08:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjGaMoJ (ORCPT ); Mon, 31 Jul 2023 08:44:09 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0622E46; Mon, 31 Jul 2023 05:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1690807440; x=1691412240; i=deller@gmx.de; bh=Ett9X0jsrsgrwDS6JF0aUQXmEsbC9Ju+HRz8v9VHpf0=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=KCfoDEKpfrgYNK/oeCttNkSWKYY7PISouCDVFRlWfeUVj0U3EHTLp+0tvtKrWakTzHzgiUC V04xVf3WZyDn3dZYvoSsWDwcs7hymV6aLnG5CjZIVprSD5VDChVQ19ejIeS+obuKRb4RUkFOh IYAPY4dQCZ8cFVNJK3ddjjDjP0IrLQRc/7+I0JGKrg8WlczDSS3sUIGlb6QogHHD0fr8FF6XX LPQvc0KeMov0zxAHPUJLn/++Vf5TMnM/vukvB7uNY8d6CFZKBVhnmXtbBw4pWZ2XwAeuDs3tq 2v5wOkzL8m7+evpZ5rm7H7UgQd5AQaO6a/U1QN6nX3itt+/YF0UQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.159.238]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIdiZ-1qcG6M3fm9-00EhN6; Mon, 31 Jul 2023 14:43:59 +0200 Message-ID: Date: Mon, 31 Jul 2023 14:43:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/1] fbdev: mmp: fix value check in mmphw_probe() Content-Language: en-US To: Yuanjun Gong , Christophe JAILLET , Lisa Du , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230727170318.18412-1-ruc_gongyuanjun@163.com> From: Helge Deller In-Reply-To: <20230727170318.18412-1-ruc_gongyuanjun@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:EWktxHK2pXb/uzLePyiOujXAmpX7rdBW66Gt7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26KbRlB3NbHdelzjCpNWBH+/xzryKFo3ZG5c24pOz8SI 6ctMYWNxUQoOd8Ttqo0ka58vugJ3RGycf6XA8nrVJiHrXXrdprS+p6UCjSUQrv1QzaelH2pBu SmGG9umZhcxtzvi0YifIbpQu2FQ= X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 7/27/23 19:03, Yuanjun Gong wrote: > in mmphw_probe(), check the return value of clk_prepare_enable() > and return the error code if clk_prepare_enable() returns an > unexpected value. > > Fixes: d63028c38905 ("video: mmp display controller support") > Signed-off-by: Yuanjun Gong applied. Thanks! Helge > --- > drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev= /mmp/hw/mmp_ctrl.c > index 51fbf02a0343..76b50b6c98ad 100644 > --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c > +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c > @@ -519,7 +519,9 @@ static int mmphw_probe(struct platform_device *pdev) > "unable to get clk %s\n", mi->clk_name); > goto failed; > } > - clk_prepare_enable(ctrl->clk); > + ret =3D clk_prepare_enable(ctrl->clk); > + if (ret) > + goto failed; > > /* init global regs */ > ctrl_set_default(ctrl);