Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3136241pxk; Mon, 5 Oct 2020 01:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymbOogLO2tamBvG7euRh+duvA2VE8tI3bs/+WygGduZ5D9K5/U6y8lEL6oyyTtvMN+eXSB X-Received: by 2002:a17:906:3a0e:: with SMTP id z14mr14204975eje.192.1601887933637; Mon, 05 Oct 2020 01:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601887933; cv=none; d=google.com; s=arc-20160816; b=oHdxICn3BjPGz6ayl01/LaE8/72jQCu2Vu1ziwx1XBv6rRZ0Ml6OxoPHTfomv67Y/j patoR025gVH4bKuOZyLiYgLvxXogivEPtn9TAuC30NrP3v5KeEdpCxxj2G/ucWlFKzig xUiRgSYr+P2BHNqn5nQQrGNwMfJu6t4UuRwb1ECwyANIMkYaERhGatFrRzT5uJNU84KU kdbawSilobyzocUVwqGtyWXT8RhSgmwnAzpBG7Mc27m++eoywkMYnR2HNmO4IcsV36IB InXKTpNXT+YfAcZFsETw/ixd+hkbLpoQmzUz2t4U5PcdG5recVJu+2Y+1hHmFHdnBqFC 2WDg== 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=odpJOBHWQJJshHWTVLHwkSDH6lh3iQA5CpwPi4XDfPs=; b=l58xpMNqvzV/hBu2HJYr+DHG9l3V1DEIZWac+gkSsuviYo4+21B8rO0lIqmWHYnd9z 6y9K/dTdtCxTCFf+jI8Gn/HJ/Zc6TUQcr4BXfa08J6OBtyzf8mgGxaec/KH5mH2G4u2S pyIb/e8v26ckdJCFV/phRQlnNVVQN6y9YKgoF2Q9xUUcWUp0qRPxrdtF4AorsmvRs/Ji oOFaH5vmu2ofpKgQnsXPtry9wNJhfx2wPBHqLXxJVbzqC6wLwp6PqBRwmyCLtdF2LV6s IHqFpKLz77g1zR6mkr0FoqpGQ5WLRH5tX67AGKksi1bupHmKgUtAMch6rpF6rNQ241C7 51SA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si7212687edr.356.2020.10.05.01.51.51; Mon, 05 Oct 2020 01:52:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726099AbgJEIuP (ORCPT + 99 others); Mon, 5 Oct 2020 04:50:15 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:46839 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgJEIuN (ORCPT ); Mon, 5 Oct 2020 04:50:13 -0400 Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 09589RaQ047789 for ; Mon, 5 Oct 2020 16:09:27 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09588T6J047498; Mon, 5 Oct 2020 16:08:30 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 5 Oct 2020 16:28:10 +0800 From: "Chia-Wei, Wang" To: , , , , , , , , , , , , , , , CC: Subject: [PATCH v2 3/5] ipmi: kcs: aspeed: Fix LPC register offsets Date: Mon, 5 Oct 2020 16:28:04 +0800 Message-ID: <20201005082806.28899-4-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201005082806.28899-1-chiawei_wang@aspeedtech.com> References: <20201005082806.28899-1-chiawei_wang@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 09588T6J047498 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LPC register offsets are fixed to adapt to the LPC DTS change, where the LPC partitioning is removed. Signed-off-by: Chia-Wei, Wang --- drivers/char/ipmi/kcs_bmc_aspeed.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c b/drivers/char/ipmi/kcs_bmc_aspeed.c index a140203c079b..8843cf867a5d 100644 --- a/drivers/char/ipmi/kcs_bmc_aspeed.c +++ b/drivers/char/ipmi/kcs_bmc_aspeed.c @@ -27,7 +27,6 @@ #define KCS_CHANNEL_MAX 4 -/* mapped to lpc-bmc@0 IO space */ #define LPC_HICR0 0x000 #define LPC_HICR0_LPC3E BIT(7) #define LPC_HICR0_LPC2E BIT(6) @@ -52,15 +51,13 @@ #define LPC_STR1 0x03C #define LPC_STR2 0x040 #define LPC_STR3 0x044 - -/* mapped to lpc-host@80 IO space */ -#define LPC_HICRB 0x080 +#define LPC_HICRB 0x100 #define LPC_HICRB_IBFIF4 BIT(1) #define LPC_HICRB_LPC4E BIT(0) -#define LPC_LADR4 0x090 -#define LPC_IDR4 0x094 -#define LPC_ODR4 0x098 -#define LPC_STR4 0x09C +#define LPC_LADR4 0x110 +#define LPC_IDR4 0x114 +#define LPC_ODR4 0x118 +#define LPC_STR4 0x11C struct aspeed_kcs_bmc { struct regmap *map; -- 2.17.1