Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3299636rwb; Mon, 19 Sep 2022 19:12:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Rd0vOHN2QF/Db/M0s+/+sSspd52b1OChphcJVWKTHyz4nNnzCLxareWpq2pavxtaxxZGp X-Received: by 2002:a63:8a42:0:b0:43b:6ca:4136 with SMTP id y63-20020a638a42000000b0043b06ca4136mr2124709pgd.477.1663639940560; Mon, 19 Sep 2022 19:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663639940; cv=none; d=google.com; s=arc-20160816; b=Hnywh5CEtVuLLhYUrxv6tYOzu8ATP97M7tyUKT7YXSGPnhSO8ee1WYbAxVZuYCbyYH QZonTWCaDaOb6eM5wHXu9RtsF52+77+OLjkDM5H6CAwgoPA36ObhJEHvQYst01fcNGjr GJmPG+Fm/dPNnBGVq9NXeJ4XZSgNeUQoBQK3Jk1jZYSrVy2HiRFrXoRUF6Vnv4+LvbeK IyKKlXsMQ0VjyJ/WxzofLKzffKIbta/O1GGtPO1T13J4WzjL1MKyKD0sLvQK9Cy6GiIc 7IQQeRViUZzA+CPxngh7tgVNuqD8VKC75znjX6XkFgPxv9ul8UzvLKDI+4m5IvM14rlQ n/pw== 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 :message-id:date:subject:to:from; bh=D7ycuOQVW8Q9yTDRfZo8iWPpsNNaYFC/+pHr+qHftSY=; b=YmX9oNEcPVK398ASlkYesVHH2TORRDGwzNqHGZC5si5mjMKtPRDn8Sp3qx8S7TkvXy ahEzUOMvFYHFy0Ea+5xyIo62N6e+IxJ7DR9bntttzk84RTtAlV2DO1dYH56KIIjXxfcX 6T2roDGjBSob89oHV04ELbxzk1X06dqyxvWlzr25jeb1bjuHURW3OMStlsIRFTLG7S5X FMJ2ksQEVPwPy8kk7MqMN4Fuc1RGsyWMlb5/BcuN3hfZcjubLBFX91/EYKix8sUABiDy Kw8ZVlyNkYC48l5iPpw4CfAuGvoMoRgnTP7FLC52zZmaw9H+YcvujCUhImAll2Sh3KNh qxLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q200-20020a632ad1000000b0042aa381f44fsi204983pgq.516.2022.09.19.19.12.09; Mon, 19 Sep 2022 19:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbiITCDr (ORCPT + 99 others); Mon, 19 Sep 2022 22:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbiITCDn (ORCPT ); Mon, 19 Sep 2022 22:03:43 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A60005724C for ; Mon, 19 Sep 2022 19:03:39 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 28K1gpFj087853; Tue, 20 Sep 2022 09:42:51 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from Chiawei-PC03.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Sep 2022 10:03:36 +0800 From: Chia-Wei Wang To: , , , , , , , Subject: [PATCH] ipmi: kcs: aspeed: Update port address comments Date: Tue, 20 Sep 2022 10:03:33 +0800 Message-ID: <20220920020333.601-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 28K1gpFj087853 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove AST_usrGuide_KCS.pdf as it is no longer maintained. Add more descriptions as the driver now supports the I/O address configurations for both the KCS Data and Cmd/Status interface registers. Signed-off-by: Chia-Wei Wang --- drivers/char/ipmi/kcs_bmc_aspeed.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/drivers/char/ipmi/kcs_bmc_aspeed.c b/drivers/char/ipmi/kcs_bmc_aspeed.c index cdc88cde1e9a..19c32bf50e0e 100644 --- a/drivers/char/ipmi/kcs_bmc_aspeed.c +++ b/drivers/char/ipmi/kcs_bmc_aspeed.c @@ -207,17 +207,24 @@ static void aspeed_kcs_updateb(struct kcs_bmc_device *kcs_bmc, u32 reg, u8 mask, } /* - * AST_usrGuide_KCS.pdf - * 2. Background: - * we note D for Data, and C for Cmd/Status, default rules are - * A. KCS1 / KCS2 ( D / C:X / X+4 ) - * D / C : CA0h / CA4h - * D / C : CA8h / CACh - * B. KCS3 ( D / C:XX2h / XX3h ) - * D / C : CA2h / CA3h - * D / C : CB2h / CB3h - * C. KCS4 - * D / C : CA4h / CA5h + * We note D for Data, and C for Cmd/Status, default rules are + * + * 1. Only the D address is given: + * A. KCS1/KCS2 (D/C: X/X+4) + * D/C: CA0h/CA4h + * D/C: CA8h/CACh + * B. KCS3 (D/C: XX2/XX3h) + * D/C: CA2h/CA3h + * C. KCS4 (D/C: X/X+1) + * D/C: CA4h/CA5h + * + * 2. Both the D/C addresses are given: + * A. KCS1/KCS2/KCS4 (D/C: X/Y) + * D/C: CA0h/CA1h + * D/C: CA8h/CA9h + * D/C: CA4h/CA5h + * B. KCS3 (D/C: XX2/XX3h) + * D/C: CA2h/CA3h */ static int aspeed_kcs_set_address(struct kcs_bmc_device *kcs_bmc, u32 addrs[2], int nr_addrs) { -- 2.25.1