Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2298150pxb; Fri, 17 Sep 2021 06:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz8HEd69fGgumXsAtpdiEwsiEfUtx8OOrZUih13BbDrggtrH+QeAB2DR3ukFR99ZvxVkfp X-Received: by 2002:aa7:dbd2:: with SMTP id v18mr12817044edt.315.1631886515485; Fri, 17 Sep 2021 06:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631886515; cv=none; d=google.com; s=arc-20160816; b=pb3ZQfX8WBoShOQK1mOlhH1LEidQeNpVooWMOOLkpS43WwXN2ELe8whOdLg2ExuuXt Fc2DN6z9gjGjJrEdVbzHdCY5BuA3BpAc1Pnss2+Eme6l9rL6+zpYVaCiYx7T0kPBFvvB /F91/3zW+P7dAqLuqknXoD2IS0eqzmRbx7WkUfkeRWDZTC6LpIWqmSiKsvb/EqCQblpq LUYHgoITACR/SU36OzQd/XOHSpVzFaGFnHJc3s6+mn74BSIT4DD8lBBR3PyydkpdEVph qII/JYi8mLeIsxBIh5kQzPbIAGGMnos/F4/FdFqafLjNYBl/R8VFNWy0MSUM55aAHrbJ KNOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SSciV8KQQyc3x5i2a+MVwdUFy7atwxpJ6ZQWN176/1I=; b=m8Fstxz3qVd9jwsGMXykw29Z0s9uuUMpvti2m8tmq3z+Nujaby0F05xWVGLXVlz2sH YtQVWPt9psUIxQnfCxiWYlAorDQpuysBkd+5a7E11OAN0+LbnADkvN4z90mGB0J8u82Y eGFPKfepDbeGMFPnzclj/baJD2S4hj5p5vL9GCxT6cNvCajCWYdnjQYpnTNTVPinjfyl hpD/JyYpfZRZnCJ0oVdQK+NoG4s57UFbHD1xdPLdOmg/7yg3oWDvqATIj7byREhttZ5m 48jBB5WHSD36hYFYUV0vrauqdhORfCmN1+3zg+IEXNzuayoKG6r6sshE4C7TeG/MDqcB xQtw== 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 cy12si8071710edb.311.2021.09.17.06.48.10; Fri, 17 Sep 2021 06:48:35 -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 S242160AbhIQKPr (ORCPT + 99 others); Fri, 17 Sep 2021 06:15:47 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:51294 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S242138AbhIQKPp (ORCPT ); Fri, 17 Sep 2021 06:15:45 -0400 X-UUID: c9e0ffb421f342d6937dcaa92fb59695-20210917 X-UUID: c9e0ffb421f342d6937dcaa92fb59695-20210917 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1579245948; Fri, 17 Sep 2021 18:14:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Sep 2021 18:14:18 +0800 Received: from localhost.localdomain (10.17.3.154) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 17 Sep 2021 18:14:18 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , , , , Chen-Yu Tsai Subject: [PATCH v7 1/7] i2c: mediatek: fixing the incorrect register offset Date: Fri, 17 Sep 2021 18:14:10 +0800 Message-ID: <20210917101416.20760-2-kewei.xu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210917101416.20760-1-kewei.xu@mediatek.com> References: <20210917101416.20760-1-kewei.xu@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 Reviewed-by: Qii Wang --- 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 477480d1de6b..32518081b5a4 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -193,7 +193,7 @@ static const u16 mt_i2c_regs_v2[] = { [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, -- 2.25.1