From patchwork Mon Mar 29 12:09:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quan Nguyen X-Patchwork-Id: 12170887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3468C433DB for ; Mon, 29 Mar 2021 19:33:13 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4888A6196E for ; Mon, 29 Mar 2021 19:33:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4888A6196E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=meEmZnum7jqVapymxE9sPdhh0bKMOdm/Qz9TEXtS9wM=; b=EQyc2gizRnCz8Rz7LKyaM6iyCZ nlB/Dvh7TG2KnFz52U74FV2pig1anyrEBPY5JnLsfc//OTQpPWMvuzdahT1Hv2w/TEY2djBnMyTB/ EjXy4LsAjmr825YyEkT1n/hhIcnIg/jLZNy1JYLbr/aPZixW406jkFp8mtdBopn/hJFrpKv/zoXLd Prx0GdR5yXFrJ6B/GIXrFSHJTbryQQQ0IyXJSRPXoyEgYELE/wd9gOzmBlZYvdDEJnwWY8UdLuqYA xWsdziJJ4L/i7I4lQq19FebdAOaNSCehUbxXToaJR0MlfUPM8KvqeVlPrKkS3WlyssbPr/xzy/1hx OW6B6bow==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lQxZQ-001Fbp-FY; Mon, 29 Mar 2021 19:29:04 +0000 Received: from mail-dm6nam11on2100.outbound.protection.outlook.com ([40.107.223.100] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lQqiG-000dOA-Cp for linux-arm-kernel@lists.infradead.org; Mon, 29 Mar 2021 12:09:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BEwMST9Gsdjyp+CuxcPrAtK+2c5tOU38gplNyrmtQrVrqNCnCZkqTNIBlSTtVAc6jVs1yks0Tdu+AkIaw9YJ2+sfnW7V+Yi2I8FzjppWeSp80DM/apfgGWO/XtJZCq/f1DHVLij9tnGbxSMisvVHJubc4T2Lt8q3u9HzmTVVvOXDuEWHfb0ezUdbYqrAukLrqrMvzyEjofJ4SKlXYZZ2HZgHcH5J2eSNUkdNzX8rVtVXRmOqrUuRS3sBlKr1q7VU2jpwfPYx+EY4t2ZZKWyOpxEk8Jt0enlKTr+raa3qJImKiDO7USBbAm2pj2r7BLxqvU0naebXHfw4Ho3LBfF0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HtlvKtuM6MihIyIrL118Lis3UII/LxYHW7mF9vKD0s4=; b=Io3Bfx0ZSIXA5QqWDq9k+LyK62cN/MpE6v4HJbPp9azVqKEyM4KisTYVJoIpYdkm57B0RGCU5ftUF7sXVcKqY9ybPz0kpndD+KDTudritu5LozPj9HCadTQVK9p548BFVrsI56wMxe3y971AFjXL0mbzXl4rrqjKl4Gubp14lmoUj07I05LJ3x17nJK1HYTUuYVvBTlp7CqCrVSeTnC5t3ez+9oNAyMPu3Pa1eLEaY0YVc6I2OAsG8MlsUdxKZVkGHFJpcRA79Fsmi4jQXpNSA5b5wJaIRJdjz762XcIPl1rvjdyi9gbqkTctHAbLiuTLDq+DwSiQLAIIfjRB4Lj2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HtlvKtuM6MihIyIrL118Lis3UII/LxYHW7mF9vKD0s4=; b=HJvUyOCVYASfrgtHOKh5fw7+w1DrzjcatQFYVETT8SUwPUqoTtA40M04hmbG1nI9h9S+gKs1Do8enti3z7fXt5ah0NcfFdPWr4LE8CN/IthvnpQO6CobijXfgz2jbyAfJaD0jFLIcY0ygQK98iqPGA6YIf6R3RnI1YQ/KywsQdM= Authentication-Results: acm.org; dkim=none (message not signed) header.d=none;acm.org; dmarc=none action=none header.from=os.amperecomputing.com; Received: from MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) by MWHPR01MB2320.prod.exchangelabs.com (2603:10b6:300:26::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Mon, 29 Mar 2021 12:09:35 +0000 Received: from MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503]) by MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503%5]) with mapi id 15.20.3977.033; Mon, 29 Mar 2021 12:09:34 +0000 From: Quan Nguyen To: Corey Minyard , Rob Herring , Joel Stanley , Andrew Jeffery , Wolfram Sang , Philipp Zabel , openipmi-developer@lists.sourceforge.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: [PATCH v1 0/3] Add Aspeed SSIF BMC driver Date: Mon, 29 Mar 2021 19:09:11 +0700 Message-Id: <20210329120914.4527-1-quan@os.amperecomputing.com> X-Mailer: git-send-email 2.28.0 X-Originating-IP: [118.69.219.201] X-ClientProxiedBy: HKAPR04CA0010.apcprd04.prod.outlook.com (2603:1096:203:d0::20) To MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from hcm-sw-17.amperecomputing.com (118.69.219.201) by HKAPR04CA0010.apcprd04.prod.outlook.com (2603:1096:203:d0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.26 via Frontend Transport; Mon, 29 Mar 2021 12:09:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6503f41a-172e-4cfd-1244-08d8f2ab8407 X-MS-TrafficTypeDiagnostic: MWHPR01MB2320: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nWQbmN1IeQ/9NDDefGJpwQGP3nfpsZ7ro1kpgB0vXMCcaU3x9Rur8Ucf9xb9AgauQvCDMiKiAvxpePNfzEqkwr8eHfNEKlE2UKNt9lGBjgmiDlHaZYOY/EeREPn6+kQ7DGR73J2RX8O3AokbZ5ESOKKCcNTiVjdm4n2s0bHY1+8ME1HD0yjGJDSPsuewJv5B22B06WsMcfVquY1ToYys8O7Gx31VJugdMJcTEvxElTkTO52lZ2vszbAzjjWgOa/yFFmDNSv5OpRCvEIO0P/eKH98vvLqBGx9NYHe4sOJfFfCLv/f5KmMlE68arFv08ElGxmn1RJZjIn5FUGley/O4pGYsagpusFoNK7Ql2sTl8IVv+CsBikJyvFaja1wZkG1+EXOM6WSbOZmRchop/bdIQlPUuuuLN3pZFw2AHRnImqXbChu7ForjjnGnNaIRRqshzMJF3Qd2mef/Ieu30xTru6N9w15wzGSfxRpIPLw3F3RobJCGT8mXDOX/EKB1TfffP1OxWaQcWlGV3C+ZkzwX+AGXk85P7gu4n3x/nLHEpOwoSrdiRBrzca19Du7LGY9+n9dJtj4UtKUp7E6Hcuq7KyLbn4Jp1dq1KOvlVGNM3NfnuVRm2Cvtr7b22Cxn5/xLJDXSgpmEie+i/6ip9Y56WZZZp2Y3DCSCeAzxm/jhUE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR0102MB3482.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(346002)(376002)(39840400004)(7416002)(107886003)(921005)(86362001)(110136005)(6486002)(8676002)(52116002)(4326008)(8936002)(6512007)(66946007)(2906002)(956004)(5660300002)(2616005)(478600001)(26005)(6506007)(4744005)(1076003)(83380400001)(54906003)(186003)(16526019)(6666004)(316002)(66476007)(66556008)(38100700001); DIR:OUT; SFP:1102; X-MS-Exch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CMT4eu8okcIXrY/gGxIV8utjVPt+k25I8wk+8ytv/CFmJjTmuL2VRDqZibXFqz5A/DA/absaNEkuQxUjTkcwsFS7Vt9WPCeJNfu+cwBjBab021v+IO8IIvbOQQIILKe99nBG7/b52wYhOgu/H31ZC0tzG2aztMwW+EsscHDhPUyJijyvvB0d/NyhAKnBFWfZTZbkCcwLTHgTKlos/U4r5wgmx35B8mfIE95NDI+BGfIx1ULOk0vZJOJiWaOW7jC+n1R2oTVOojn73fuG6Epg X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6503f41a-172e-4cfd-1244-08d8f2ab8407 X-MS-Exchange-CrossTenant-AuthSource: MW2PR0102MB3482.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2021 12:09:34.7157 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +HqrnXmjVFWdgzC6L1yzgNNCgdnbt0N/vPxt92jvWbdzkjv+dtXrmOOXlwCCKYw01jhAGnBukpwEXPRkO/qoPuKrG5oi0/dDkUrLS5WOVFQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR01MB2320 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210329_130944_560289_B72F2615 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series add support for the Aspeed specific SSIF BMC driver which is to perform in-band IPMI communication with the host in management (BMC) side. Quan Nguyen (3): i2c: i2c-core-smbus: Expose PEC calculate function for generic use drivers: char: ipmi: Add Aspeed SSIF BMC driver bindings: ipmi: Add binding for Aspeed SSIF BMC driver .../bindings/ipmi/aspeed-ssif-bmc.txt | 18 + drivers/char/ipmi/Kconfig | 22 + drivers/char/ipmi/Makefile | 2 + drivers/char/ipmi/ssif_bmc.c | 645 ++++++++++++++++++ drivers/char/ipmi/ssif_bmc.h | 92 +++ drivers/char/ipmi/ssif_bmc_aspeed.c | 132 ++++ drivers/i2c/i2c-core-smbus.c | 12 +- include/linux/i2c.h | 1 + 8 files changed, 922 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/ipmi/aspeed-ssif-bmc.txt create mode 100644 drivers/char/ipmi/ssif_bmc.c create mode 100644 drivers/char/ipmi/ssif_bmc.h create mode 100644 drivers/char/ipmi/ssif_bmc_aspeed.c