Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1320628pxf; Fri, 2 Apr 2021 07:22:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywjg/cjqh/E744EBIF8LXPUU5C7QCq31n/i73yACn21V3AnohWIiOYolDA5xjE+mmtqfMg X-Received: by 2002:a6b:fc17:: with SMTP id r23mr11463480ioh.173.1617373361108; Fri, 02 Apr 2021 07:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617373361; cv=none; d=google.com; s=arc-20160816; b=etg84M7UGeQtM8LLFUM7pXuiPW4Lmi/CwI0C8mmy0epvkYptsPwc9I3VIy1M8bfs8i aP0G7M09W9IlGzU7ABuA+zg26MMMKLE6gG+f3rfsC/jJp8oqrCaAJ2zqJ8eGBEGVz0x3 Tj0jE1CVKb1aHd1vX1jwPppBPn83XwIcTgAFP9a18UeZGLY9zIztakUDlN0PQiGBZYUe risjbmLqtbCoqPW/QcerrM9t5JhSBWxYp5ZKHMSjW696MPYNzEyZRlHSaWSgAw5SeMzO Q3wjBYlX0bAkGX78NCJMjhN1ySdqnJzNhw/o/ZFlpe1Iv8tcDZOjALmYhWTuXIvNkH+7 v0tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=wFmEeiu8O3e8Ysh2Egg3y980B0w0wNYvL3AQsHO1K90=; b=R6XlDMhU4lWcdkkH9ELOnyQlFpMfQWOEbqlylc3+VmH6B8YbXP5IMqGBbhM1WsTnpg qArUHErH1ggJ7X2lmHLIIsJ6clKeEdzXtZPJeYOtlchnMiWUacPTipWKH3wufIqa+yfc q8kDdb4MN6H14f2MJKKiLfC7ITOYOHWc1IZSTdjb0rra7snQwabuOgk7aPFNkXYFopdc G1iW0F/aWCIOu1QWMs+5Ej9Fins4DlpJkMW3VPa0220HLPUkvFRLGZZmlZsFYnshvT5M Lht/6bbqA4h7ykiNLgAtA4Oj4LcA3XsJvVJopW5f08kU+KE4zniyBpLZpM70TGlEgdC1 SZBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TEke5Gjg; 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 q8si7304694iog.50.2021.04.02.07.22.26; Fri, 02 Apr 2021 07:22:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TEke5Gjg; 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 S235728AbhDBOVc (ORCPT + 99 others); Fri, 2 Apr 2021 10:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234161AbhDBOV2 (ORCPT ); Fri, 2 Apr 2021 10:21:28 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDC1BC0613E6; Fri, 2 Apr 2021 07:21:27 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id w21-20020a9d63950000b02901ce7b8c45b4so5070376otk.5; Fri, 02 Apr 2021 07:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:reply-to:references :mime-version:content-disposition:in-reply-to; bh=wFmEeiu8O3e8Ysh2Egg3y980B0w0wNYvL3AQsHO1K90=; b=TEke5GjgaqkttHMJd3gpOWOLZlhz+MiKptNdXq8ft1He/cIpADCj3tiZwUM9IYSw4V Gvvu7NIe9GL7P0s/lWgZAEyAviwLVRetY8SiH2c1VbyO1i/Tg8l9AY+WD+1EF/woPpfw rZBUW88EJspY50LRle0kjWmjeV/75EIcGor9r23rtDPE1G/M2kQMM3+y/hl6247D6rrf y7vV3SgypcrgIZcQipJSxG4KqvseVfEv3W9fsNylo2RXNfyFebh5btWeiLqZ4G04uUYr V4Cpss+112fE1xJx7eNhLhi30991uwkZKC31i9X3CgMq/2og6LMqgjONxTaOAPOtmXMz SGkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :reply-to:references:mime-version:content-disposition:in-reply-to; bh=wFmEeiu8O3e8Ysh2Egg3y980B0w0wNYvL3AQsHO1K90=; b=IA5++HDuJo7x1aitCT7JXsGSYbisldjnknUbFICjZkPfWdiJt8mrEziW5LQeh/uNnU p5f1K3MyB2ZEI/IpBco4843ZK2D6MFieUBgLpuEewEgJsRXtzXK5A/FfAGYxjNBbXq63 CwNInn89tAT2A8jBvHLao6XngRLYwo2jtqusXt6P/JVwk9+WPE7qkb1wdPjjtrfNeK6m IN2wZS5DLdBG1ShKP49J84jzfg96TSrnBPbjehsq71kmNTb3SXWsTJBTdVQD+usT52QE 2eiBs0EdRXUl3/nF2rt7mj5PCjRrjXTHIcAtX3Edii4ZO4v8xphpb6JjERoT7w9F4SAQ tdyg== X-Gm-Message-State: AOAM5304tLN1svkjus4XBwzIfq8UShRMRgaRHKHRE8zd9AF+gjy+Vxtn 9wZq+33jJ6W6Vg9nHarC6Q== X-Received: by 2002:a05:6830:15d2:: with SMTP id j18mr11707892otr.75.1617373286969; Fri, 02 Apr 2021 07:21:26 -0700 (PDT) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id b22sm1904897ots.59.2021.04.02.07.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 07:21:26 -0700 (PDT) Sender: Corey Minyard Received: from minyard.net (unknown [IPv6:2001:470:b8f6:1b:f99f:823a:495e:5af]) by serve.minyard.net (Postfix) with ESMTPSA id 371D6180570; Fri, 2 Apr 2021 14:21:25 +0000 (UTC) Date: Fri, 2 Apr 2021 09:21:24 -0500 From: Corey Minyard To: Quan Nguyen Cc: 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, openbmc@lists.ozlabs.org, Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: Re: [PATCH v2 0/3] Add Aspeed SSIF BMC driver Message-ID: <20210402142124.GV507977@minyard.net> Reply-To: minyard@acm.org References: <20210330141029.20412-1-quan@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330141029.20412-1-quan@os.amperecomputing.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 09:10:26PM +0700, Quan Nguyen wrote: > 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. I don't have any specific feedback for this, but I'm wondering if it's really necessary. Why can't the BMC just open the I2C device and use it? Is there any functionality that this provides that cannot be accomplished from userland access to the I2C device? I don't see any. If it tied into some existing framework to give abstract access to a BMC slave side interface, I'd be ok with this. But I don't see that. Unless there is a big need to have this in the kernel, I'm against including this and would suggest you do all this work in userland. Perhaps write a library. Sorry, but I'm trying to do my part to reduce unnecessary things in the kernel. Thanks, -corey > > v2: > + Fixed compiling error with COMPILE_TEST for arc > > 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 > > -- > 2.28.0 >