Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2078617pxb; Sat, 28 Aug 2021 03:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSo/ZSidY/Lyu5Tumzno5xBtQJRSJsVaeC/6Vjpxz1xceOQnhQDUqOdUXgCXRFE1J/jmCM X-Received: by 2002:aa7:c1ca:: with SMTP id d10mr10309818edp.294.1630148134377; Sat, 28 Aug 2021 03:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630148134; cv=none; d=google.com; s=arc-20160816; b=oKF1XuIO+iM9XT+Qk6PwUp4S6fTG25veHI10pq45LbaEwVYBT6Tr5gOOHnL8f94iZL iqSGtYQITbeej6yXCYqlcfCs97qehnsVqXSLdgSMIx8J90cQwCqcyeaSWlshCgMuMvvT QH/T5AHBwL3N+dTEJQ1CA3xz8TxhgoShIvTkxVJgWoORgClTB2GZGYE788E7X2OriedM QVRsZW45qfM5rnHv/gZm3uCvWPo5BRuxbIkEsBMyO0L2QldM9C4JgcyivgecAl8MsEkw 8Hm6ln+uZ4G3Z4iOdqdFjR7gFRQboq191Szl0yoW7l5tkjiNkzTWEMdg9xQstPGbm45x Q4+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5Xwb3h1OqBiaIo1mkq5p/+pyxDHfFZ1O1dUclcY7d1Y=; b=XlsW0l7jlFFPcsQaWuYuzcmwGZGlPMmLWC6zc7i+ltxQcMI85D7PNDnT8yS/cGh2R3 SbI0eJElYiwVgX04ZiA3WGQrh07nCQXXWcjigASJ83MOk+4OAEvStCVQ9DnxzFZGmF8I KA276KPYyQJ9lc29HwbN1ASpQPRm0TxtVvBB+dIE76xkKAanwJ0Tv/LrXHS3OueEiHLp pysQ0KQi0jK5UYuuLtU4xeodWIUa9ZwljQAMpNDAyHFFbkytZY4JHk9j78kL+kZuKYTI 0DnkKw5UXQOQ0I/Q5Gf7eAoh2CnJC5EeR+rWzQ+LRowzo5VBAV+axDr+RlOjBiEmfErO ARRg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr16si8498101ejc.154.2021.08.28.03.55.10; Sat, 28 Aug 2021 03:55:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233892AbhH1KwS (ORCPT + 99 others); Sat, 28 Aug 2021 06:52:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33238 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233868AbhH1KwF (ORCPT ); Sat, 28 Aug 2021 06:52:05 -0400 X-UUID: f49769bdb54146aab5d38f9c83405b11-20210828 X-UUID: f49769bdb54146aab5d38f9c83405b11-20210828 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1725258525; Sat, 28 Aug 2021 18:51:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 28 Aug 2021 18:51:09 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 28 Aug 2021 18:51:08 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , , , Subject: [PATCH v6 1/7] i2c: mediatek: fixing the incorrect register offset Date: Sat, 28 Aug 2021 18:50:53 +0800 Message-ID: <1630147859-17031-2-git-send-email-kewei.xu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1630147859-17031-1-git-send-email-kewei.xu@mediatek.com> References: <1630147859-17031-1-git-send-email-kewei.xu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reason for the modification here is that the previous offset information is incorrect, OFFSET_DEBUGSTAT = 0xE4 is the correct value. Fixes: 25708278f810 ("i2c: mediatek: Add i2c support for MediaTek MT8183") Signed-off-by: Kewei Xu Reviewed-by: Chen-Yu Tsai --- drivers/i2c/busses/i2c-mt65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 4ca716e..2661ed0 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -193,7 +193,7 @@ enum I2C_REGS_OFFSET { [OFFSET_CLOCK_DIV] = 0x48, [OFFSET_SOFTRESET] = 0x50, [OFFSET_SCL_MIS_COMP_POINT] = 0x90, - [OFFSET_DEBUGSTAT] = 0xe0, + [OFFSET_DEBUGSTAT] = 0xe4, [OFFSET_DEBUGCTRL] = 0xe8, [OFFSET_FIFO_STAT] = 0xf4, [OFFSET_FIFO_THRESH] = 0xf8, -- 1.9.1