From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5882308F11; Thu, 21 Aug 2025 10:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755773492; cv=none; b=pxlEQSvnScYX4PmS1DsUPCO37FLGOVFY8We6dwGjL0TtScPBc/890+RtrPmh0wSaJ/mCMBZN1iDZFbvOXhscs60oisNcIMJ2LOVimJfVQ1o7MHe/hPvAOWOqRIifI+CwmCrWw/s94gR30Y36nhg5loivS4M9IJ/nKP3i0vjC89E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755773492; c=relaxed/simple; bh=cMytUFE1fmlfUaGX9cWvvFMAHcz0yzHNBDICGtrf7sk=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=PpA5ZONW2jL18+xXW7JPqhxSz4WFXcmxmbx37zBD/xcBu+gWhHpk0hHaZBL8wIaYos/ExlTY0RKo8blnRyG6wuxtCb1geuDbq2AKyyKswOVjVFXmF10rp6qLzm8o2BH+1Ryv0q6T5IbglbDDAk+f2ZtF+5xBp14ODDP0sevTzFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IB04F8o0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IB04F8o0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D22FC4CEEB; Thu, 21 Aug 2025 10:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755773492; bh=cMytUFE1fmlfUaGX9cWvvFMAHcz0yzHNBDICGtrf7sk=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=IB04F8o0JStewSEpV2ymvEO/zxxGwgvH1bK6Jr2UUPMiahi7qVV2NkjTaCjC00iZ8 BBv36c6YLtgB7Dl5ddxh3qtB0JFm6HgEoUG78aRRQBArXGRHlUeFJ7V4dB28g/tNaO 1RkdVuZSm6ueWKFtwQAZ1s4JKLRHKOv+Tz4P6B0FsR0YMycztEt2sDxfITlSvhYjdi 4Q1zdq6f3oz9kqvLBfDD4gEidTRkppcS8ClTsTQX+n80DKy8I/WXLW1UUn3HC+REU8 d5vKL5tMXNFT4vtyCuWzJ+2lyDJDiuGGwYdk+dLjbAwiL98bFT3qfLjmo/rHNFVv/i iS7H8QZ8pfwAA== Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Aug 2025 12:51:26 +0200 Message-Id: Subject: Re: [PATCH v5 1/4] rust: pci: provide access to PCI Class and Class-related items Cc: "Alexandre Courbot" , "Joel Fernandes" , "Timur Tabi" , "Alistair Popple" , "David Airlie" , "Simona Vetter" , "Bjorn Helgaas" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , , , , "LKML" , "Elle Rhumsaa" To: "John Hubbard" From: "Danilo Krummrich" References: <20250821044207.3732-1-jhubbard@nvidia.com> <20250821044207.3732-2-jhubbard@nvidia.com> In-Reply-To: <20250821044207.3732-2-jhubbard@nvidia.com> On Thu Aug 21, 2025 at 6:42 AM CEST, John Hubbard wrote: > Allow callers to write Class::STORAGE_SCSI instead of > bindings::PCI_CLASS_STORAGE_SCSI, for example. > > New APIs: > Class::STORAGE_SCSI, Class::NETWORK_ETHERNET, etc. > Class::as_raw() > Class: From for Class > ClassMask: Full, ClassSubclass > Device::pci_class() > > Cc: Danilo Krummrich > Cc: Alexandre Courbot > Cc: Elle Rhumsaa > Signed-off-by: John Hubbard > --- > rust/kernel/pci.rs | 10 ++ > rust/kernel/pci/id.rs | 239 ++++++++++++++++++++++++++++++++++++++++++ Please add rust/kernel/pci/ to the maintainers entry. (Would have done on apply, but I have another comment on patch 3.) > 2 files changed, 249 insertions(+) > create mode 100644 rust/kernel/pci/id.rs