Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2072363pxv; Sat, 17 Jul 2021 03:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL6u4DItCQakY8djEM9lbvBljKn2mvr80nq+9yBlEk/RqU1jonyKNJJNp3YlVXW1pCG+Uv X-Received: by 2002:a05:6602:2e11:: with SMTP id o17mr2095956iow.55.1626517171438; Sat, 17 Jul 2021 03:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626517171; cv=none; d=google.com; s=arc-20160816; b=0lHYvHPWTZ1kQS1jZdaQb/M6a2z0f7/oVxKnJYEIo2uoEq2KqB51yumx381GL/buGi m9wsKdmPAeMrkdmek+CeSnqsvxJLOFhGlE84ThbDTiJUcE+A3o7HDKGAQMT8wtk54O09 e50EktWm5bs2csid1AE7cvzFNEvl6HyRz0PdkhnhsdQ8NqnAMC6JNrVEP3pd6I4AFXTY Imo8CQkQK6k5BpO6AwVenLCPoq5lK/eaMltpn3s7qXqJh0fJM5zvfA9b+seU0vvnucy4 G1xbNe0OQRuSMLgstYukRIzbxPF7FrR5WhJPCXD8y6WYKLl2Yy8UFePORJJCNdM2MiW6 napQ== 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=RavYWgEjqf1N8ledOf3ZrnJzMkI8bsrUdIRGKOuV9EA=; b=KOrlCArJC4D31i57r/xovHeYnWtYY63ZjaX6i4JHknv9ppi130zciTMQuYt0LkZbZQ TJrUAqMafR/YWRB30a5Iz64x7E0m3aotQI+le3cm7rCwMTu7GqLdJcajG4yAUfu9QEuv SipdgCVpcLAHIXTChoUrhEdxla8ylBeKmOdd7gLTHgfbqeXugN/L2qEoImHukNZIo7g3 nlUa9FjTDZngLDKD9og5fuSN0LeRWv+DAmxwNuCh/2oXx/ErDVFO5nnsInIXuL5AVewQ G1mTHb0eFRQVw4jlzYwAvZkwNp8NgiqUsLPvz0tf48ZoJcSU3PnmXG5lAydJ5rqoZWrS 7d9A== 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 n20si14098933jat.115.2021.07.17.03.19.19; Sat, 17 Jul 2021 03:19:31 -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 S233630AbhGQKV0 (ORCPT + 99 others); Sat, 17 Jul 2021 06:21:26 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50508 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233259AbhGQKVE (ORCPT ); Sat, 17 Jul 2021 06:21:04 -0400 X-UUID: fe37a6832ef44583a824466ff70b7e0f-20210717 X-UUID: fe37a6832ef44583a824466ff70b7e0f-20210717 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 176851532; Sat, 17 Jul 2021 18:18:05 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Jul 2021 18:18:03 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 17 Jul 2021 18:18:03 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , , Subject: [PATCH v4 1/8] i2c: mediatek: fixing the incorrect register offset Date: Sat, 17 Jul 2021 18:17:52 +0800 Message-ID: <1626517079-9057-2-git-send-email-kewei.xu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1626517079-9057-1-git-send-email-kewei.xu@mediatek.com> References: <1626517079-9057-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 5ddfa4e56ee2..222ff765e55d 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.18.0