Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp96575pxv; Wed, 30 Jun 2021 00:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoJ3gM/J204bM3K41WIdeqXKJIrQedylU7zXjHQGhQcModAuCtYRLW10i0cuq8ARz8N5QZ X-Received: by 2002:aa7:c9d8:: with SMTP id i24mr45389798edt.79.1625038397908; Wed, 30 Jun 2021 00:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625038397; cv=none; d=google.com; s=arc-20160816; b=mZitMef3lLFJjCLsHViMp3UcGg8jac6RR6BXmMi0V37SuAWxJsG79YeMuSUr/5c0nX GCHD4/n+I8S3iX35+IvFvNHd/lKyT/+w0hINlmnTanIXsVH28NWmYsgYQVVLVvFAIajd NAaZZ2Tw3oJYKYakIhWJe7zOVliOQ7DsHjJ3/3cd9xR9jpeKh/lA+9/7UAvGV/ESKQdr NjZ0S7REFG2XPmYAQlr/YApud5iQAvhMXMISLxvD/g/azpvcq1ZnIP7KSUUHfc0s1zyZ 1Eh6eDd3qQUmLD9IJmzVWov1LZbkPY590XcjnuQC08e0GtXj1HbFSInH/EMAUn93BR7V lyqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lxYiu8p2N8GfVq4zjyFWRywFohMl9B93gUN+WOKNciM=; b=Md3FOjtkuImCAah29upHv6yB3y2T1tEQQmC1U9T4WBOKE4ANogBdXTpgU2QujVm0QV jAmzdpxAVpKXZjLl/sskhA3fQB0RnHUUmcmai12B0K4NGyHY8UZU+5i9EApdvZpoCSJH msv3rcVPuezBJMWuxd5FXhTdfEjOfUcI7lTez+wm2dMjo1wYdVCI5HlSnySNF4XdiXS3 Wz3PacjBbSG+KCeAZUh3v/DqlCJRYKwpzh02NTDbthGgGYVviHDQSJOKoKp6sr7Z+sMl jRkXm1759xHHvMNwKrTpIoMlzdeh74haxHf25s8tjCtEDbHKKyq96hjwxEu/EEJd5Lty KlcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P3dnnE9e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hu7si14746442ejc.426.2021.06.30.00.32.54; Wed, 30 Jun 2021 00:33:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P3dnnE9e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233092AbhF3HeN (ORCPT + 99 others); Wed, 30 Jun 2021 03:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbhF3HeG (ORCPT ); Wed, 30 Jun 2021 03:34:06 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35166C0617A6 for ; Wed, 30 Jun 2021 00:31:37 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id w19so3322240lfk.5 for ; Wed, 30 Jun 2021 00:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lxYiu8p2N8GfVq4zjyFWRywFohMl9B93gUN+WOKNciM=; b=P3dnnE9etYGaSIabOdksbhak7yrNNEj7JkC2s9ceXmf359Lo+sLDn+MN5AaMIeP7nH uuFlGOlo+AL2gRFKJ2sRTPn6O3eDynC6a1yVJ32Vnr9A044z8C0sghr9j14oH/VWFeof tYfsqbi8erpR+0ZcEnIoOakG/5XanHNAsR8JE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lxYiu8p2N8GfVq4zjyFWRywFohMl9B93gUN+WOKNciM=; b=m9OKVXJbKR3CiPc+CoAeMh7p7jYCeXWs+muIHZkNL1IeWAjK7KPjrAmiQwEYUv4SV0 9yMJtlw6v0xbMIsOe57V7x9McJIofgfwcYQbKFydQbp2E8CEAE9K1C0R1XxatFx6Gabc AjffePUqVkcqnoS8O2NrIgTZyoMiTEUE8/OpRjvCzbULPLbJ9DwLRVnJSSLbkRnldtOJ Qv8LmC9oj7nxA06dvIYsJ+K1ObeOAeNkftv4ifAGe2KTgXZ1yGRsVJYuJ4XYLFYHOMNb srRNffBRHYgsdRPFtC9ikyrdWv2rp/3OswhCaZyQTrikNywu4XjjExV9VX7VsIqRLbpV H8Xg== X-Gm-Message-State: AOAM530XTxHKEyDOADuxP6kN0FrggqxOJ2ZFMi1kjwe4yCmOVk5nDxKo YOhJiSFcDqfSV9dhj0sv5ZRhYbPOwqgAbINoIMY/fQ== X-Received: by 2002:a05:6512:63:: with SMTP id i3mr26374013lfo.587.1625038295495; Wed, 30 Jun 2021 00:31:35 -0700 (PDT) MIME-Version: 1.0 References: <20210616224743.5109-1-chun-jie.chen@mediatek.com> <20210616224743.5109-4-chun-jie.chen@mediatek.com> In-Reply-To: <20210616224743.5109-4-chun-jie.chen@mediatek.com> From: Chen-Yu Tsai Date: Wed, 30 Jun 2021 15:31:24 +0800 Message-ID: Subject: Re: [PATCH 03/22] clk: mediatek: Fix corner case of tuner_en_reg To: Chun-Jie Chen Cc: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, srv_heupstream@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 7:01 AM Chun-Jie Chen wrote: > > On MT8195, tuner_en_reg is moved to register offest 0x0. > If we only judge by tuner_en_reg, it may lead to wrong address. > Add tuner_en_bit to the check condition. And it has been confirmed, > on all the MediaTek SoCs, bit0 of offset 0x0 is always occupied by > clock square control. > > Signed-off-by: Chun-Jie Chen Reviewed-by: Chen-Yu Tsai Though you might want to consider converting these types of checks into feature flags.