Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp758952rwe; Fri, 14 Apr 2023 09:19:42 -0700 (PDT) X-Google-Smtp-Source: AKy350YXd+8e2vadhRgxtZ2cBRIR0MeZkMeXiv/5/cj1WOO5tUhiqQKjgMZana8QkXGaLgjjqIr+ X-Received: by 2002:a17:90a:f190:b0:246:b2de:f13f with SMTP id bv16-20020a17090af19000b00246b2def13fmr6194046pjb.24.1681489181744; Fri, 14 Apr 2023 09:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681489181; cv=none; d=google.com; s=arc-20160816; b=qrEb71ufMEfcNzWaoYpb2sSzrwqSIlWEAduBFExfHtApifKAjDst3C7jpHO1gxl/P6 YPj0djV9cuq77KJvw2kPOwYgseHJMP3d5jUyiggtEkd0deVo36XDtOoY+WI6cVdNHCER +mxYC+F15c9eyQsW//ncauPcfNTkv5U/sMsoKmfMwCxStSXg3BdHdUot2MXhXkE2QPMs fBbblAUBGPJAGBve6IqXlsXWNfzk8k22QbdK6aSbdZpanqn/VElTTMTPo40BIL108DJ4 zep7o+cbqLscDhL8/IA+5XnI9mGnRHbHeUd4I93YZ6SQjIaUudVhq65H4sdyU63ExoL+ TOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=AcrAdIw/i6wIDG+6jUQ7koxeYwprIkhWuT5Y0B8uUwI=; b=EHysn9MPqf2mOGA1YHsU79O+KF2jXhTJ3NZ7NLDH7w2ICPVfCwNCcKmV6pXLm2g1vu iRJt3rkff7szszoOseX9J+Yb0nXF5yGK/HJ0kqC+Q9WGK6eK2WPXFLC2iaUUbcf85nWB ovU4lP9Bn6LUq01nJT7q2Y+vahCXjVeHkJchm04iIUeEocyv7bdjBWIs5Bzx2N2SDFSe BfKW7/umTexvnYbyrp0BGYSm0MjS7GaghPrYmxTwcJPXUdLoiUC1RL6WrE++YqlQvyhX +8/B270o16RP8/Psm0E/+3+IL8fpkvkRpuao4p9qVkYBLUBVnwZutwUeAaULCdkkZS+3 Jp0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=ZFKVk02n; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob13-20020a17090b390d00b00246b5a609desi902073pjb.87.2023.04.14.09.19.26; Fri, 14 Apr 2023 09:19:41 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=ZFKVk02n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbjDNQNF (ORCPT + 99 others); Fri, 14 Apr 2023 12:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjDNQND (ORCPT ); Fri, 14 Apr 2023 12:13:03 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1FDE136 for ; Fri, 14 Apr 2023 09:13:01 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-504eb1155d3so12528201a12.1 for ; Fri, 14 Apr 2023 09:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1681488780; x=1684080780; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=AcrAdIw/i6wIDG+6jUQ7koxeYwprIkhWuT5Y0B8uUwI=; b=ZFKVk02nkwQNmmAWsmzpGY8TY+1AhNP8xYmZV/zZ9EznqK0yZzEC+2S4dZ5R5A8hPE iKeZA8/Qrsj9G2/YZQXdptJTCtZ2Iv6To98gRUSOC1XXU8/JiKp/wDI7D+hyz6tfyLqg ZmIkzWrMlW2HlU0sGq7qqzCp26eJsBTZyo8cgkcSm3WFMzHLK8vGtzYRVa08CpYbAqGh 3HbTxw7QcibwIV7JmOnj7px4GJmXAZI+XUk9oz+U2dqmOZJwI8396A/I9NNy8hcXyztP bG7uqrID9wJQ/VC3DyuSQCRO/7bpiEsmtZQnuMmc3eU7gLZIasQ2OK+o55DtspdhPqcm Q1PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681488780; x=1684080780; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AcrAdIw/i6wIDG+6jUQ7koxeYwprIkhWuT5Y0B8uUwI=; b=Qpugp5CX/N/kDaYw80fpZALKRtfR5y+/ksPz3gOt5hvu8fcade9CPfNmmIq0UTI3ZM eRi2C6uHLlR1c9lK9aOk7uiaQhsMquwn0tbS3wdDqfoOMMsc365HFpq75s/hgQPBPfQ4 PdR8rCgeMChCvgyR1SDqKH+q1oJxVdGZ7OWFI/4dVSuQhUSKDuf9gIwwWWQ2947Wx3r7 cFJ5r29Pz1sm/g0lGlw0meOQ8j/Y2ZPO853T5MVsRU2IpU2B5Kbdb9swl7I0z+WlSa9a LYB7hMflR/2ZSa1demZLvaFCCLzt9MexYadfhQLppk9zLHCLU2oE3u8B4vM1OvQar51D NLVw== X-Gm-Message-State: AAQBX9flpFJKyzfSrFJBfYAQgfNyyCHOfqJyHr1ixt/OqIQgsvHBCp82 fliJJuoRUDUNIbs1yIzZRYUQ7Q== X-Received: by 2002:a05:6402:3554:b0:506:74f5:876f with SMTP id f20-20020a056402355400b0050674f5876fmr5591216edd.6.1681488780212; Fri, 14 Apr 2023 09:13:00 -0700 (PDT) Received: from [127.0.0.1] (2a02-8440-d20f-2c76-3074-96af-9642-0003.rev.sfr.net. [2a02:8440:d20f:2c76:3074:96af:9642:3]) by smtp.gmail.com with ESMTPSA id h23-20020aa7c957000000b005066ca60b2csm2242687edt.63.2023.04.14.09.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 09:12:59 -0700 (PDT) From: Guillaume Ranquet Subject: [PATCH v2 0/2] Fix mtk-hdmi-mt8195 unitialized variable usage and clock rate calculation Date: Fri, 14 Apr 2023 18:07:45 +0200 Message-Id: <20230413-fixes-for-mt8195-hdmi-phy-v2-0-bbad62e64321@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFF6OWQC/42OSw6DIBCGr9Kw7jSAkmBXXXTRLnqCxhiQsZBUM GCMxnj3oifo8vtfMytJGB0mcj2tJOLkkgs+Az+fSGuV/yA4k5lwygtasgI6N2OCLkToR8kqAdb 0Dga7QIVMsEILrZQhua9VQtBR+dbuCznSeJzH5nF/PXd/iHiMZfNdZ7YujSEuxysT29V/rk4MK GhZSl4KaTpqblotX6cjXtrQk3rbth+qabgq5QAAAA== To: Chun-Kuang Hu , Philipp Zabel , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Matthias Brugger , AngeloGioacchino Del Regno 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, Guillaume Ranquet , kernel test robot X-Mailer: b4 0.13-dev X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 I've received a report from kernel test report [1] that a variable was used unitialized in the mtk8195 hdmi phy code. I've upon fixing that issue found out that the clock rate calculation was erroneous since the calculus was moved to div_u64. I'm providing those two fixes on top of 45810d486bb44 from the linux-phy repository [2]. [1] https://lore.kernel.org/oe-kbuild-all/202304130304.gMtrUdbd-lkp@intel.com/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git Signed-off-by: Guillaume Ranquet --- Changes in v2: - Propagate return value of mtk_hdmi_pll_set_hw() as suggested by Angelo --- Guillaume Ranquet (2): phy: mediatek: hdmi: mt8195: fix uninitialized variable usage in pll_calc phy: mediatek: hdmi: mt8195: fix wrong pll calculus drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) --- base-commit: 45810d486bb44bd60213d5f09a713df81b987972 change-id: 20230413-fixes-for-mt8195-hdmi-phy-9e1513b5baad Best regards, -- Guillaume Ranquet