Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1230411pxf; Fri, 2 Apr 2021 05:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHAnvCIZ8pUlzI39t4S4+cjmY9bshwWgM4YDAuU2t6f489lhnc1dW24Cp6uR/iKAl3XdBe X-Received: by 2002:a05:6e02:1d01:: with SMTP id i1mr10531299ila.171.1617365056114; Fri, 02 Apr 2021 05:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617365056; cv=none; d=google.com; s=arc-20160816; b=NTJ9M8AzqL6VnYmmCwoiv91WI6MSYWRZuRW3VNIXwxAN99ec7UyNU1KZq2Wf6GllC5 doU7ngbfH4Wo0inGIxwfwrBGfGp4D5hdntjcLjHGCBWAYZKZzT2J8PXz7G/NWKAgrFsX 8etHbgRqVXfU9pDlzyyorRBIr0GzLPYNELa9LdWBzXuIArk3vCl7D4svvgSO5jXthtQv jsUj1Kol7RZAQhjDKDl5oQn596NOS2/3mv2LlhycIJtmqSHCOAlwRMB4pja0jH8hA/kv hutRgvJ/gy9m6oAe0M5DnPUWnkVVioLgORhaCPDf3zwZdjk19d4prVGea8KFUeHEXqku ZWiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=U4gxWfN7RjMVM5AzR3HWa8R+7ItDHftZDRl6noH+hL0=; b=N58+A0G5grd0PBx8NzQw7TSCH+7XiT5K5SHZ250kZgYVG3cU1CS7RQtYk12+33QWJZ 93AlD+aNkLZJHRl2DOBUVwUqvfMlYy8r1szkW0SsjqyewPsVbrfhNPVMPqktJBCWW9zB oul213dNxSejQSZ+pox02gDXynSB10SRvZIVP/Wp7Nr19ms+yE8AcO38LaPpHG0aJu4N PjtXu1M4z9tontn94IbxJ9cFZ3htLGv7HEFBLNNlLGzttaRkwLqG3qcXAMJzJaD5/o+Q ghzFLjq3eABUkKyKSEoMzcZbXdHCYEf7CMxpN9mx8iVOLeh6wdNVIB+sd63+F7OvyerY LeAQ== 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 l14si7142180jam.70.2021.04.02.05.04.01; Fri, 02 Apr 2021 05:04:16 -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 S234628AbhDBMCH (ORCPT + 99 others); Fri, 2 Apr 2021 08:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbhDBMCG (ORCPT ); Fri, 2 Apr 2021 08:02:06 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B50BC0613E6 for ; Fri, 2 Apr 2021 05:02:05 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSIUg-0007y7-6w; Fri, 02 Apr 2021 14:01:42 +0200 Received: from pza by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lSIUb-0007gY-Hi; Fri, 02 Apr 2021 14:01:37 +0200 Date: Fri, 2 Apr 2021 14:01:37 +0200 From: Philipp Zabel To: Quan Nguyen Cc: Corey Minyard , Rob Herring , Joel Stanley , Andrew Jeffery , Wolfram Sang , 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, openbmc@lists.ozlabs.org, Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: Re: [PATCH v2 2/3] drivers: char: ipmi: Add Aspeed SSIF BMC driver Message-ID: <20210402120137.GA26002@pengutronix.de> References: <20210330141029.20412-1-quan@os.amperecomputing.com> <20210330141029.20412-3-quan@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330141029.20412-3-quan@os.amperecomputing.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 13:57:27 up 43 days, 15:21, 66 users, load average: 0.04, 0.10, 0.09 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: pza@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Quan, On Tue, Mar 30, 2021 at 09:10:28PM +0700, Quan Nguyen wrote: > The SMBus system interface (SSIF) IPMI BMC driver can be used to perform > in-band IPMI communication with their host in management (BMC) side. > > This commits adds support specifically for Aspeed AST2500 which commonly > used as Board Management Controllers. > > Signed-off-by: Quan Nguyen > --- [...] > diff --git a/drivers/char/ipmi/ssif_bmc_aspeed.c b/drivers/char/ipmi/ssif_bmc_aspeed.c > new file mode 100644 > index 000000000000..a563fcff5acc > --- /dev/null > +++ b/drivers/char/ipmi/ssif_bmc_aspeed.c > @@ -0,0 +1,132 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * The driver for BMC side of Aspeed SSIF interface > + * > + * Copyright (c) 2021, Ampere Computing LLC > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of > + * the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. If not, see . > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include "ssif_bmc.h" > + > +struct aspeed_i2c_bus { > + struct i2c_adapter adap; > + struct device *dev; This device handle is apparently unused. > + void __iomem *base; > + struct reset_control *rst; This reset control handle is unused as well. > + /* Synchronizes I/O mem access to base. */ > + spinlock_t lock; > +}; regards Philipp