Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp81096pxv; Wed, 14 Jul 2021 19:35:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuGQTynrNCbH/r4htaZmcKR4DcFVqYhN/LNU5SDz6dfQ0vYlObNRLvKLI/igxn3ZWK1TZO X-Received: by 2002:a92:c644:: with SMTP id 4mr845388ill.246.1626316535843; Wed, 14 Jul 2021 19:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626316535; cv=none; d=google.com; s=arc-20160816; b=I7v2l/5hnCC+w036t3LLKC9gKESmYARG3xFM+gvkwVSJKrcPwCZtW8lO4pqAsYNQZn dckh5OdWVtS8KJNykU1wYcYfMvL7ALqTCyyFKd+iNJh3koyfQTNhqSi8OaMNspSMMK28 QAiupNww5IpRRtuJ8oXrI3WY0HQ0vm1B8Xzody2+4zW7GbwZtDenBlQTMqNF/5y4C6YE 0oKM/7GZOkjkkb2Qal4Y+ugsFLm38J6AmYsaccfrXI2zymPnNcFoK3xpKjLISCMrgt/v bi7dto0bPHoNoEmVAgi2iCUqr7iZV7cgTZSRTuakTBOkm0oJ7OUpLkgTQBR84nJDUfsD HYkQ== 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=OMVtLEH9wBF+RBjrgN8lUC82WlcZm/WGH0GECOdDFgc=; b=J1oEBh7r9pAkhRSxDhUgyS2y+6WxC1W+HCd3yhE/HjEogd27nX8hlgphzyyxuiWz18 vJBFVEdCqXX3MW06SYKJnjc18CLlOgk2ZsS84Dp1YZQZ54q5/2Ji1aTBB4D03O6d4Aod tYTpJCPACvYzi/Ezm4O7yWu2JxxGycjZjoJVGPvP86awf3R+LLssjCQdEfpxcEIxbVwN 6WcRidApoAwoWH6+ajp4gOE8PvwK0XYdTtuS4VbqZcdgJcI/lspYCdqquMUZ4GRInxf3 ywFZrf8XNZonvesU8acGfbtRoat0rNK05tdO2sfiNrBZW7p2c8uQ+RqbUtDIy2r1rghK mGZg== 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 h22si1046911jal.57.2021.07.14.19.35.24; Wed, 14 Jul 2021 19:35: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 S235139AbhGOCdO (ORCPT + 99 others); Wed, 14 Jul 2021 22:33:14 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54052 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232670AbhGOCdJ (ORCPT ); Wed, 14 Jul 2021 22:33:09 -0400 X-UUID: 6a27cb5ea7ce49e98856c96fbac6da7a-20210715 X-UUID: 6a27cb5ea7ce49e98856c96fbac6da7a-20210715 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1946866214; Thu, 15 Jul 2021 10:30:13 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 10:30:11 +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; Thu, 15 Jul 2021 10:30:10 +0800 From: Kewei Xu To: CC: , , , , , , , , , , , , Subject: [PATCH 3/8] i2c: mediatek: fixing the incorrect register offset Date: Thu, 15 Jul 2021 10:29:12 +0800 Message-ID: <1626316157-24935-4-git-send-email-kewei.xu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1626316157-24935-1-git-send-email-kewei.xu@mediatek.com> References: <1626316157-24935-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. Signed-off-by: Kewei Xu --- 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 64acd96..e65a41e 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -195,7 +195,7 @@ enum I2C_REGS_OFFSET { [OFFSET_SOFTRESET] = 0x50, [OFFSET_MULTI_DMA] = 0x84, [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