Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp714162rwe; Fri, 14 Apr 2023 08:48:00 -0700 (PDT) X-Google-Smtp-Source: AKy350akEcWHzuhmR96N5NWWCjmmDyTvwFBEv6mLWd4p2goG320nn3xDRIRwRSx0vIa1XIAsyWG2 X-Received: by 2002:a05:6a00:1a93:b0:627:e701:8ca9 with SMTP id e19-20020a056a001a9300b00627e7018ca9mr8756765pfv.2.1681487280125; Fri, 14 Apr 2023 08:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681487280; cv=none; d=google.com; s=arc-20160816; b=im1pZd+C8ZyKxuzFxg2F3+rXpM0gIKlw/2BmsSNsJ2fzetVON20Rw5veOD/nwH+tsc 0lqffIkUUqjdFhM6bUBoo2R7ECqPgudrZbKOhq2V/YH8OuRJ2dDE/V/UutGPGv1c7096 ERpREF2BEdjEPhktCPGhWiBT/qQqmreLmjL5inez2cZBxHDwfLc/+cNupYCmKldqTUki LTyN9t6+6F96alUNCYYpjWbhs6WEDnsnwZqrQHbLr3cKViVFte20ADEw0BaBoDOiI1JI 0evSy15z59wUZa5R5vohV62hVQYJZ5AFkPtsNo32Zwz5tOKbNkHaFXnfgfPsuUhzca68 Aw3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YIbNvnDJkbKIDG9W40wHYyYsAJM6e0/VxMfL2/QQhNY=; b=Cj7xwLgC/Q4DUwZ18k9/GcWTMQb1tZOWWT2aGY+vRLBsu5AME+qk9+5N4tfubLEHDb pD5Rtobsc1961wzV6zfffYEUchumxSuQA4uOAtKd/tUi/OCxL21O8aC7P8gXnUctS44Z h2SvEnhaz6FkIVReQadL8KNT/SVFKtmk6tEpTw+xc/aBa+IIe5gCquWzRGgIKggKF3OX nxeK8nfBp/Quv7Q56n6pr+91Y/Yix8QFlGGdqV26drRYaWJmtPw72BlAmCV8Vsi89ehP OSOp5mKRpyd0bG/sLcSKkEQ0wYzX4MaEr517AG+Uqwm7xirobEsXTZnol7Ut3jzEBXyk DfSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QXpobAtY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a63ef48000000b00518f82d7053si4771577pgk.493.2023.04.14.08.47.46; Fri, 14 Apr 2023 08:48:00 -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=@gmail.com header.s=20221208 header.b=QXpobAtY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbjDNPn6 (ORCPT + 99 others); Fri, 14 Apr 2023 11:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjDNPnz (ORCPT ); Fri, 14 Apr 2023 11:43:55 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58559A5CD for ; Fri, 14 Apr 2023 08:43:51 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id r15so1051220wmo.1 for ; Fri, 14 Apr 2023 08:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681487030; x=1684079030; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YIbNvnDJkbKIDG9W40wHYyYsAJM6e0/VxMfL2/QQhNY=; b=QXpobAtYXuuja8eAnUitUYYdJFXqaConoab7s3RSbwHCOgxUoVFacXpnQJBcpA+JQb 5N5tvC74yxQMqIqvqsop1XuZ4P+M7IaoRPqSbiY/1c2NeOfnuh57dPnBNRYtuvpOuOYQ d4ovTXDqN0R67vvA11ZrTveMDsLXR57NkWxMv0PtrbwpGTIEWGxabu7b6Kc4D1VC/yVL ftBSnh4ajvZ0aKZhcFea4GRL9sEGf22K7vufTD/WbjkwkdvB2NQi/q4ApF1oXBGDeC/I rZ1ZyK37G8LoSePqAYSqaAqTRIwbVHk0FT/40JaT1ZT4QJ2nRUPTFVGP/TsKf+MDR3mA gvvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681487030; x=1684079030; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YIbNvnDJkbKIDG9W40wHYyYsAJM6e0/VxMfL2/QQhNY=; b=YrKMIaGfWH+LZP7o2mkzQ/CO9Y6D4tPBqHMneIkTJSH9cG01LzAvIkQRGjOqZfZ9rr ib0SBg4/pWc6HgXpTYO74XNMBUOJJBGDDNB4aowr3+v+3vNXZk6n8sYgUopqqTa8Vdnq 1aOWXB+Od4wUxmJxMHZ5ZcDQY5BLyTfHfq61+mYU8diVrFSR7WttXRd4UVfHvsumFmHX AVELUwAZ/ah3J9rT2Lwz8gKOmOFYcdrxrNGd/W2aWH89ucj6inG6NFjSl7KHgM8jyfc1 L8bQKvkjCMo7beY1FaJIVm2o3lID5RO94ZumIrpgtL5SS677gEU3TjyZ5VE1CddY0ISf CFoQ== X-Gm-Message-State: AAQBX9clikew/yLHL+RlK79efnNxBR/mzjc+BnEjWGO//e6WmMKLYPng 78EdxaV1oY1rfemE8CDkJL46thW5m1Wrhg== X-Received: by 2002:a1c:770d:0:b0:3ed:95a5:3257 with SMTP id t13-20020a1c770d000000b003ed95a53257mr5261946wmi.2.1681487029517; Fri, 14 Apr 2023 08:43:49 -0700 (PDT) Received: from [192.168.2.177] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id r4-20020a05600c458400b003f0a090d798sm6510629wmo.18.2023.04.14.08.43.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Apr 2023 08:43:48 -0700 (PDT) Message-ID: <3242b862-0e7c-b7e9-14cd-3fbcbb87ba04@gmail.com> Date: Fri, 14 Apr 2023 17:43:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] phy: mediatek: fix returning garbage Content-Language: en-US To: Tom Rix , chunkuang.hu@kernel.org, p.zabel@pengutronix.de, chunfeng.yun@mediatek.com, vkoul@kernel.org, kishon@kernel.org, angelogioacchino.delregno@collabora.com, nathan@kernel.org, ndesaulniers@google.com, granquet@baylibre.com Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20230414122253.3171524-1-trix@redhat.com> From: Matthias Brugger In-Reply-To: <20230414122253.3171524-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 14/04/2023 14:22, Tom Rix wrote: > clang reports > drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c:298:6: error: variable > 'ret' is uninitialized when used here [-Werror,-Wuninitialized] > if (ret) > ^~~ > ret should have been set by the preceding call to mtk_hdmi_pll_set_hw. > > Fixes: 45810d486bb4 ("phy: mediatek: add support for phy-mtk-hdmi-mt8195") > Signed-off-by: Tom Rix Reviewed-by: Matthias Brugger > --- > drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c b/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c > index abfc077fb0a8..c63294e451d6 100644 > --- a/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c > +++ b/drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c > @@ -292,9 +292,9 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw, > if (!(digital_div <= 32 && digital_div >= 1)) > return -EINVAL; > > - mtk_hdmi_pll_set_hw(hw, PLL_PREDIV, fbkdiv_high, fbkdiv_low, > - PLL_FBKDIV_HS3, posdiv1, posdiv2, txprediv, > - txposdiv, digital_div); > + ret = mtk_hdmi_pll_set_hw(hw, PLL_PREDIV, fbkdiv_high, fbkdiv_low, > + PLL_FBKDIV_HS3, posdiv1, posdiv2, txprediv, > + txposdiv, digital_div); > if (ret) > return -EINVAL; >