Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3399311rwb; Mon, 16 Jan 2023 07:32:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtCi88t9wjg+PH8iLNNjLlQ9ZWqtH0lOeoU1x5HDqgkS9eIa5a9jzUMe6SPzjcDybZm/aRg X-Received: by 2002:a17:903:2448:b0:192:7258:dfb1 with SMTP id l8-20020a170903244800b001927258dfb1mr28248724pls.59.1673883132823; Mon, 16 Jan 2023 07:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673883132; cv=none; d=google.com; s=arc-20160816; b=atNCM6j04850wPlpO9r/TpgcJfKsCV2qiTOL22GO+dQakaR0CSYaHihxbDFz2HMJ09 GcC6y0ENKExtFup/LzJkTNpXStYYiG2x/cV6E4NPDWtJPLUKKGltHvV9OBmBe+StmPMm 0cBNe4DSZQ70hv8mldm8AFqcYcrfr3hnA8ADcGDS+Nm7ySg/2DuynmKkLtXZ9CP8FBYX NrPbmoJAtErNX5jcqlnQJcVmi/a9WinD0+5LF6vCvAvafWflLWjbqNi6jC6l8oOyFJyk QmbLmdWHg36ZexMwufq8pGcdQxbWJb5dAg7TFSmr7dfKq8fXuYsA+hf2uCgDKsTQ2qGg sE2g== 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=N2AaqpF3HWMCVXZ2qUPffZma9rjZbSafx8M41yLmuoE=; b=HlGj17tKbBrd7zTDraYUtn0i4Ww5LK3NYnxggQWApIPwdVBxu6oZiqMUz/kP65UbQq ODaLJo6D9KrsJiyznP6InzZJfVPZ44fQsWIP/WUc3qA2L/QVCmDdHTo65pE/BBwYcPtX fTOYgCIdKMZ3rq8hf8Cync+kdNL2kCWUYxt4hjC4ajysrnpWFuEkGST06RWxG0G34fdp W8rNi1dyHS8HfoYWl7UNwIvlyz829nU2jBN9PqUb34PjxfdJEB9oKcNYlrX3iBSQgKDH ZhgyNClJysbcL81qK6As88y/FYWL5l0BarLWZCNCzVavFiRUk22V/zzPcknWvJXu17Qa HOGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b="jHj/gDQG"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=I33uRZ+2; 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 w185-20020a6382c2000000b0046eed3142cesi7228688pgd.350.2023.01.16.07.32.06; Mon, 16 Jan 2023 07:32:12 -0800 (PST) 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; dkim=pass header.i=@arndb.de header.s=fm2 header.b="jHj/gDQG"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=I33uRZ+2; 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 S232029AbjAPPWm (ORCPT + 52 others); Mon, 16 Jan 2023 10:22:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbjAPPVt (ORCPT ); Mon, 16 Jan 2023 10:21:49 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C943F1EFE3; Mon, 16 Jan 2023 07:19:21 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B82B35C01D1; Mon, 16 Jan 2023 10:19:19 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 16 Jan 2023 10:19:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1673882359; x=1673968759; bh=N2AaqpF3HW MCVXZ2qUPffZma9rjZbSafx8M41yLmuoE=; b=jHj/gDQGNBpfYh0yCyZRtlXclm ueThgrKdnuCdyJROmmqJVs6lW2kLgffXl6PYuqJfF1RBj70yqhA3tx4Ref9hc1PT DNVjtiQNkycJDb3OF4zN7AFfYtsOOAPI9lma+4vvaRzK7WegrNxshPqRgA8/Ulo5 iOohCEiDC36NdhQk2xF+hrZjr0pTWvz8RJeQpaEWoYdr5gQiThcsfA6JYNBNQhMy SBt/gEIncnUX66ysNEYo4gQufb4lfXw+b0lkT2qk3/h2FtakuDtmVmn8ZDk79djx CRC8t+5Bk0DkjYs7swPM1kzJ8i4U9us/VwnmPpI9kUAdqI1Yu8Bzj4ELT/WQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1673882359; x=1673968759; bh=N2AaqpF3HWMCVXZ2qUPffZma9rjZ bSafx8M41yLmuoE=; b=I33uRZ+2TxBvz+HDJrERzoGN8v/hpeQGeyNS1upZxtwv 70WFNq/uW4axz/MT2Ju0pIbR5XlYi9pC6JTVfNvfCFErCPiRRHGz2fuMa6tO9t69 XAI6zTJd3FZLzRqSQgb3tAI/PLB7z8jDg2iZdTgdKQzrB89UK0JYOiFA9cpDtPgy ojbOthdU36Kgq5pYirKmzAWRjFQ6WnWPSgq5Hpr1trHyyAHl35L9Q6Gp21fzn9NP FAA7liEhYpBtQLkPft2TnziqOHNTS/pn2NoMEmwZHvJY25E1S5nxyXjxXxMxoypN 71UNW09Svhu0UiZ+RjnbzpQ/unrmo2SHzaYy2G+sNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtgedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3BA93B60086; Mon, 16 Jan 2023 10:19:19 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1187-g678636ba0d-fm-20230113.001-g678636ba Mime-Version: 1.0 Message-Id: <55f09599-b553-4429-aa79-ca99ccf95cda@app.fastmail.com> In-Reply-To: References: <20230110042533.12894-1-clayc@hpe.com> <20230110042533.12894-3-clayc@hpe.com> <110af65f-9c18-524d-a073-ef7be60d1f5a@linaro.org> <48cd3e28-f1db-487d-8971-473dc8c12c09@app.fastmail.com> Date: Mon, 16 Jan 2023 16:18:59 +0100 From: "Arnd Bergmann" To: "Clay Chang" Cc: "Krzysztof Kozlowski" , linux-kernel@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, "Verdun, Jean-Marie" , "Hawkins, Nick" , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Russell King" , "Olof Johansson" Subject: Re: [PATCH 2/5] dt-bindings: soc: hpe: hpe,gxp-srom.yaml Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 On Mon, Jan 16, 2023, at 14:42, Clay Chang wrote: > On Thu, Jan 12, 2023 at 02:37:53PM +0100, Arnd Bergmann wrote: >> On Thu, Jan 12, 2023, at 14:16, Clay Chang wrote: >> For the user interface side, I don't really like the idea of >> having a hardware register directly exposed as driver in >> drivers/soc, this generally makes it impossible to have portable >> userspace that works across implementations of multiple SoC >> vendors, and it makes it too easy to come up with an ad-hoc >> interface to make a chip work for a particular use case when >> a more general solution would be better. >> > > I agree with you. I have one question though: if we create a 'hpe' > directory under drivers/soc, and put all HPE BMC specific drivers there, > do you think this proper? It certainly wouldn't be right to put "all HPE BMC specific drivers" in there. Most drivers will fit into some existing subsystem, and should be moved there instead. drivers/soc is used primarily for drivers using soc_device_register() to provide information about the soc, and we also use it as a place for drivers that just export soc-specific helper functions that can be used by other drivers. >> Again, it's hard for me to tell why this even needs to be runtime >> configurable, please try to describe what type of application >> would access the sysfs interface here, and why this can't just >> be set to a fixed value by bootloader or kernel without user >> interaction. > > The register is used for communication and synchronization between the > BMC and the host. During runtime, user-space daemons configures the > value of the register for interactions. That does not sound very specific. What is the subsystem on the host that this communicates with? Can you put the driver into the same subsystem? Arnd