Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1844449pxb; Mon, 23 Aug 2021 06:08:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5sgoZiwd9bzZekgHoqHIq1hgAFTRNmR8yYQ2TVjdfmQ/KtDA+zTTuvnzWUGMNJ4NLc7nE X-Received: by 2002:a2e:8185:: with SMTP id e5mr28072148ljg.31.1629724123402; Mon, 23 Aug 2021 06:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629724123; cv=none; d=google.com; s=arc-20160816; b=oOe6Wre7RoW7kCVKX93mLBR+JLgHmUQaELOOxTBwQflOAO40ABQhMPdhfWLyeydwk4 XC+TZNbb0k/5g14glqRZrEGLkntQWdwZ60w4LrMWWtgtfTFv9e5edd0LepeuypcEFKqw 6wlCg+h12KgTOsrdfn4LxfXw6PdBE6qd3rqqCmK+Dg6pbKHUikjzsRMMib4vtKm+zCiy p3U/aAoO1a+hyiydeblm5jsfjTO36KVKYUdEN0AnI3k7cK6skshph4Sz65PNM/Ff9pPD SvNJIzOh7Mz2T0GLdUsLIecz+gGBV4XfK3zNQh36VXMsuszOUtS1/lJXSMi4OX8HW1Lu sjWg== 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=qE8Os5xLqqgd2GodKWwrkEahzPeK4I3zLqQXoWPYbbqSRcLehqfDMQWBcLLY+uBPat gHpiQ9vOBdA5svSwzeCBqHhAbfwgr0fVt4mD1vyYX0OfTEOh7ONt6SmC3rAS6MwCUuBn xhVEMYHwBoY0UIgmrv9cq4c4OKP1RhHmsku4dRFuktfp7TRhm50JPgkORoSSsaVlUw95 VJOzxPFlcphI0H1tgV7WzKgGcTklSisnesgEQ7AyBK9BIGkBUs7aZT0Q7VQ/pbFVV03D j3shCKSZdYDH/FR/WLmbYOfxxxyLBHZT9+9kJVOt0tYbh8/dJXr3SsXjVTwGWl29pLD6 T7nA== 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 um14si14989951ejb.397.2021.08.23.06.08.15; Mon, 23 Aug 2021 06:08:43 -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 S237400AbhHWNGn (ORCPT + 99 others); Mon, 23 Aug 2021 09:06:43 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:47758 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S237322AbhHWNGf (ORCPT ); Mon, 23 Aug 2021 09:06:35 -0400 X-UUID: 4ad85a4b9ff64c89bb0e9f780a9144fb-20210823 X-UUID: 4ad85a4b9ff64c89bb0e9f780a9144fb-20210823 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 275197041; Mon, 23 Aug 2021 21:05:43 +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; Mon, 23 Aug 2021 21:05:41 +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; Mon, 23 Aug 2021 21:05:40 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , , , Subject: [PATCH 1/7] i2c: mediatek: fixing the incorrect register offset Date: Mon, 23 Aug 2021 21:05:31 +0800 Message-ID: <1629723937-10839-2-git-send-email-kewei.xu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1629723937-10839-1-git-send-email-kewei.xu@mediatek.com> References: <1629723937-10839-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