From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 101CBC04A94 for ; Sat, 12 Aug 2023 08:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236244AbjHLIbW (ORCPT ); Sat, 12 Aug 2023 04:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbjHLIbU (ORCPT ); Sat, 12 Aug 2023 04:31:20 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5881F271E; Sat, 12 Aug 2023 01:31:24 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id DD35330000CC5; Sat, 12 Aug 2023 10:31:22 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id CFB5410177; Sat, 12 Aug 2023 10:31:22 +0200 (CEST) Date: Sat, 12 Aug 2023 10:31:22 +0200 From: Lukas Wunner To: Alistair Francis Cc: Damien Le Moal , bhelgaas@google.com, linux-pci@vger.kernel.org, Jonathan.Cameron@huawei.com, alex.williamson@redhat.com, christian.koenig@amd.com, kch@nvidia.com, gregkh@linuxfoundation.org, logang@deltatee.com, linux-kernel@vger.kernel.org, chaitanyak@nvidia.com, rdunlap@infradead.org, Alistair Francis Subject: Re: [PATCH v4] PCI/DOE: Expose the DOE protocols via sysfs Message-ID: <20230812083122.GA26735@wunner.de> References: <20230810163342.1059509-1-alistair.francis@wdc.com> <20230812080509.GA9469@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812080509.GA9469@wunner.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 12, 2023 at 10:05:09AM +0200, Lukas Wunner wrote: > If there are DOE mailboxes, let ->is_visible of the DOE group > return true and use "doe" as its ->name to make attributes appear Sorry I meant to say let it return a valid umask (instead of true). > in a "doe" subdirectory. Finally allocate and fill a struct > struct attribute[] array with all the protocols found in all the > mailboxes.