Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6082493rdb; Thu, 14 Dec 2023 07:56:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVEisHqF6GTYB83+0Iq/qYlWEKj+fLiGmaxPez9i9O24E7KjY48kUNpfgJAVa7NaUiWftG X-Received: by 2002:a05:6358:d047:b0:170:578e:b033 with SMTP id jb7-20020a056358d04700b00170578eb033mr3325928rwb.52.1702569367897; Thu, 14 Dec 2023 07:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702569367; cv=none; d=google.com; s=arc-20160816; b=rdozKpyrlwuJAD0zH7FYt6dMtSCDhpEVC+ChxHe3/E4xH/u+iVbt0T28o0DH9oN4mI +w/sO5mbN/I/NGoMDJPnXi5/XVBKemwZSyUyY0oJHPC3THBp18aFqNPUSNriXyLrTmD2 ynIeM03o35qJ/ANlIGTwxnFvfowsxvknIsNFbstKAEd/ebFW+m0v9EsGE0g8u58rJJDW rI2mUbCb8jxSjAE72iUXTOF+R8Dud3sCvPSwKsQbaj8MQI7rLaWljw9EqJXlHGivy2Jh I/OXaAMb0hifnk/+armmxKTB+13LVIUIc+q8OUfZClwXgW6SZk9JqHaZVQ5SIbCNa6rD BrFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=rsrWTQjBQT0relicSVB/5hAbF9a2jab8bg2oUsSBSH0=; fh=SgdSiu+ns7TazOnkPRpmnX97+dw08L7wVhx7Fky4oQw=; b=VwW7zyXpBc9nqc9dZEwx6DjuHyXE801+iG5hlcTHs3heCm8ZGlZCrY0b7ykVu6r1pX 0cFlT7Zn8K1FJXhHj2fFFYlZt43JP1PGRZT3U+B9L+QJwNhz/FDBaeGki+X1vNP5BHts EUX0VG/N3q4R2iXbRhqftXDF0V6GZLr8fqtlf6rRvtSDxX8eH7gpb/3YxE7Xu2QQXEWv Xret5Oq/g+ngkthRSuWk0P99g3l+CkU0IvkCwsguvlh94SbtFcpnlf5C0YJgMDmbqOnG 2WwuNB8vThpAgDH6VxGzvaoS63wCoRsDXyMGmrdm9l+93HpWeb2pLVGj7eb25g+y7Bqr Oa3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=pPhCwWxj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=c4yS8tbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id r14-20020a6560ce000000b005b95ff8544asi11096185pgv.792.2023.12.14.07.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:56:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=pPhCwWxj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=c4yS8tbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7CE5A825F16A; Thu, 14 Dec 2023 07:49:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573892AbjLNPtN (ORCPT + 99 others); Thu, 14 Dec 2023 10:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573858AbjLNPtM (ORCPT ); Thu, 14 Dec 2023 10:49:12 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 558CD9A; Thu, 14 Dec 2023 07:49:18 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id ECBA65C01EA; Thu, 14 Dec 2023 10:49:15 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 14 Dec 2023 10:49:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1702568955; x=1702655355; bh=rsrWTQjBQT 0relicSVB/5hAbF9a2jab8bg2oUsSBSH0=; b=pPhCwWxjGRTA+Ledc/1HB99oEb 8m6nFpU2rW2Noyj3dojFZQxVbpA0DrdpUEPTOEN8DgIrK77y2pQd82YC7pS75xeI BX33FP7DLfdxJFGdi5aaD++Ftl1olEcQhZAGMuu7egNySEysrblxu23QpVh47xAn xZqh5KMEW6x8kyc4Hf04dSjyaoG8kXzD/fEosNq75ptGk4q01XptqM2eB3eGKoJ0 jdfee8R4NA/q8h4u9QDnN31s1OW3adPEuUqbThF6CruJ5gGIwfIlei/XPrMs+Zq3 smRwEyUp+s6lF4mK2jVN/QxzzHYGuLVFwk/onuoPFg5ORxs4EDhP+CvleFOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702568955; x=1702655355; bh=rsrWTQjBQT0relicSVB/5hAbF9a2 jab8bg2oUsSBSH0=; b=c4yS8tbEPEwCWwCRUDPNftjnOF78gNL7VN7cHmHXmukZ dAcl18nRyV0cJ/yBC8C4x0rD0X0d5iAhmCpKGdTQ4aLeONb9kRnMyndnJ4NG/kTP +oP6HoV24kH6wrMPxW2dRi3WMha525Wh2qbbvEYTBYn4r7FjhazNPA7T1TBs2lM9 Wq4uumy9RAaXqRuFX7hBqslN+eEADuRms/AexDhIxZRUjbdBBh7wqRKRsAgLGRqH h28Fh2ZQtVtJ1vj0ZPtItgmnAE5ekXQGiaJ+sww5BaxXopDDN1GD4NqVAk0lYlh9 KplQnGkgCmU64EXomkFjvE5RPKy68daJEOUlPAYK5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelledgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepjedvvddvudeludehjeeitdehheeivdejgfelleffiefgvefhhfeuudfhgeef feehnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 15800B6008D; Thu, 14 Dec 2023 10:49:15 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1283-g327e3ec917-fm-20231207.002-g327e3ec9 MIME-Version: 1.0 Message-Id: <88040035-d971-4012-bb9f-9f2ae91fdc6e@app.fastmail.com> In-Reply-To: References: <20231213190528.3751583-1-tmaimon77@gmail.com> <20231213190528.3751583-4-tmaimon77@gmail.com> Date: Thu, 14 Dec 2023 15:48:55 +0000 From: "Arnd Bergmann" To: "Tomer Maimon" Cc: pmenzel@molgen.mpg.de, "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Conor Dooley" , avifishman70@gmail.com, tali.perry1@gmail.com, "Joel Stanley" , venture@google.com, yuenn@google.com, benjaminfair@google.com, =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , openbmc@lists.ozlabs.org, "open list:GPIO SUBSYSTEM" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] soc: nuvoton: add NPCM BPC driver Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:49:29 -0800 (PST) On Thu, Dec 14, 2023, at 14:09, Tomer Maimon wrote: > On Thu, 14 Dec 2023 at 14:44, Arnd Bergmann wrote: >> > >> > +config NPCM_BPC >> > + tristate "NPCM BIOS Post Code support" >> > + depends on (ARCH_NPCM || COMPILE_TEST) >> > + help >> > + Provides NPCM driver to control the BIOS Post Code >> > + interface which allows the BMC to monitor and save >> > + the data written by the host to an arbitrary I/O port, >> > + the BPC is connected to the host thourgh LPC or eSPI bus. >> > + >> >> This one in particular looks like this might be implemented >> by more than one BMC type, it's a fairly generic functionality. >> >> Have you talked to the other maintainers of SoCs used in >> OpenBMC about coming up with a common interface? > Yes, Both Nuvoton and Aspeed use the same user-facing code to manage > the host snooping. > https://github.com/openbmc/phosphor-host-postd Ok, that's good. I found the driver in drivers/soc/aspeed/aspeed-lpc-snoop.c now and see that the implementation looks very similar. I think we should do two things here: - split out the common code into a shared module that exports the symbols to be used by either one - find a better place for both drivers outside of drivers/soc. I would suggest drivers/misc/bmc/ but am open to other suggestions. Arnd