From: Bjorn Helgaas <helgaas@kernel.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Patrick McLean <chutzpah@gentoo.org>,
Dave Airlie <airlied@redhat.com>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Bjorn Helgaas <bhelgaas@google.com>,
"open list:DRM DRIVER FOR AST SERVER GRAPHICS CHIPS"
<dri-devel@lists.freedesktop.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:PCI SUBSYSTEM" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] PCI: Add ASPEED vendor ID
Date: Wed, 19 Apr 2023 13:37:04 -0500 [thread overview]
Message-ID: <20230419183704.GA216848@bhelgaas> (raw)
In-Reply-To: <d1f776e1-8489-010f-a500-ba68b45ad3a3@suse.de>
On Wed, Apr 19, 2023 at 09:00:15AM +0200, Thomas Zimmermann wrote:
> Am 19.04.23 um 00:57 schrieb Patrick McLean:
> > Currently the ASPEED PCI vendor ID is defined in
> > drivers/gpu/drm/ast/ast_drv.c, move that to include/linux/pci_ids.h
> > with all the rest of the PCI vendor ID definitions. Rename the definition
> > to follow the format that the other definitions follow.
>
> Thanks a lot. Can you please also move and rename the PCI device ids? [1]
Generally we move things to pci_ids.h only when they are shared
between multiple drivers. This is mostly to make backports easier.
PCI_VENDOR_ID_ASPEED is (or will be) used in both ast_drv.c and
libata-core.c, so it qualifies.
It doesn't look like PCI_CHIP_AST2000 and PCI_CHIP_AST2100 would
qualify since they're only used in ast_drv.c and ast_main.c, which are
part of the same driver.
> [1] https://elixir.bootlin.com/linux/v6.2/source/drivers/gpu/drm/ast/ast_drv.h#L52
>
> >
> > Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
> > ---
> > drivers/gpu/drm/ast/ast_drv.c | 4 +---
> > include/linux/pci_ids.h | 2 ++
> > 2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c
> > index d78852c7cf5b..232e797793b6 100644
> > --- a/drivers/gpu/drm/ast/ast_drv.c
> > +++ b/drivers/gpu/drm/ast/ast_drv.c
> > @@ -70,12 +70,10 @@ static const struct drm_driver ast_driver = {
> > * PCI driver
> > */
> > -#define PCI_VENDOR_ASPEED 0x1a03
> > -
> > #define AST_VGA_DEVICE(id, info) { \
> > .class = PCI_BASE_CLASS_DISPLAY << 16, \
> > .class_mask = 0xff0000, \
> > - .vendor = PCI_VENDOR_ASPEED, \
> > + .vendor = PCI_VENDOR_ID_ASPEED, \
> > .device = id, \
> > .subvendor = PCI_ANY_ID, \
> > .subdevice = PCI_ANY_ID, \
> > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> > index 45c3d62e616d..40e04e88ca5a 100644
> > --- a/include/linux/pci_ids.h
> > +++ b/include/linux/pci_ids.h
> > @@ -2553,6 +2553,8 @@
> > #define PCI_DEVICE_ID_NETRONOME_NFP3800_VF 0x3803
> > #define PCI_DEVICE_ID_NETRONOME_NFP6000_VF 0x6003
> > +#define PCI_VENDOR_ID_ASPEED 0x1a03
> > +
> > #define PCI_VENDOR_ID_QMI 0x1a32
> > #define PCI_VENDOR_ID_AZWAVE 0x1a3b
>
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Ivo Totev
WARNING: multiple messages have this Message-ID (diff)
From: Bjorn Helgaas <helgaas@kernel.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "open list:PCI SUBSYSTEM" <linux-pci@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:DRM DRIVER FOR AST SERVER GRAPHICS CHIPS"
<dri-devel@lists.freedesktop.org>,
Bjorn Helgaas <bhelgaas@google.com>,
Dave Airlie <airlied@redhat.com>,
Patrick McLean <chutzpah@gentoo.org>
Subject: Re: [PATCH] PCI: Add ASPEED vendor ID
Date: Wed, 19 Apr 2023 13:37:04 -0500 [thread overview]
Message-ID: <20230419183704.GA216848@bhelgaas> (raw)
In-Reply-To: <d1f776e1-8489-010f-a500-ba68b45ad3a3@suse.de>
On Wed, Apr 19, 2023 at 09:00:15AM +0200, Thomas Zimmermann wrote:
> Am 19.04.23 um 00:57 schrieb Patrick McLean:
> > Currently the ASPEED PCI vendor ID is defined in
> > drivers/gpu/drm/ast/ast_drv.c, move that to include/linux/pci_ids.h
> > with all the rest of the PCI vendor ID definitions. Rename the definition
> > to follow the format that the other definitions follow.
>
> Thanks a lot. Can you please also move and rename the PCI device ids? [1]
Generally we move things to pci_ids.h only when they are shared
between multiple drivers. This is mostly to make backports easier.
PCI_VENDOR_ID_ASPEED is (or will be) used in both ast_drv.c and
libata-core.c, so it qualifies.
It doesn't look like PCI_CHIP_AST2000 and PCI_CHIP_AST2100 would
qualify since they're only used in ast_drv.c and ast_main.c, which are
part of the same driver.
> [1] https://elixir.bootlin.com/linux/v6.2/source/drivers/gpu/drm/ast/ast_drv.h#L52
>
> >
> > Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
> > ---
> > drivers/gpu/drm/ast/ast_drv.c | 4 +---
> > include/linux/pci_ids.h | 2 ++
> > 2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c
> > index d78852c7cf5b..232e797793b6 100644
> > --- a/drivers/gpu/drm/ast/ast_drv.c
> > +++ b/drivers/gpu/drm/ast/ast_drv.c
> > @@ -70,12 +70,10 @@ static const struct drm_driver ast_driver = {
> > * PCI driver
> > */
> > -#define PCI_VENDOR_ASPEED 0x1a03
> > -
> > #define AST_VGA_DEVICE(id, info) { \
> > .class = PCI_BASE_CLASS_DISPLAY << 16, \
> > .class_mask = 0xff0000, \
> > - .vendor = PCI_VENDOR_ASPEED, \
> > + .vendor = PCI_VENDOR_ID_ASPEED, \
> > .device = id, \
> > .subvendor = PCI_ANY_ID, \
> > .subdevice = PCI_ANY_ID, \
> > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> > index 45c3d62e616d..40e04e88ca5a 100644
> > --- a/include/linux/pci_ids.h
> > +++ b/include/linux/pci_ids.h
> > @@ -2553,6 +2553,8 @@
> > #define PCI_DEVICE_ID_NETRONOME_NFP3800_VF 0x3803
> > #define PCI_DEVICE_ID_NETRONOME_NFP6000_VF 0x6003
> > +#define PCI_VENDOR_ID_ASPEED 0x1a03
> > +
> > #define PCI_VENDOR_ID_QMI 0x1a32
> > #define PCI_VENDOR_ID_AZWAVE 0x1a3b
>
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Ivo Totev
next prev parent reply other threads:[~2023-04-19 18:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 22:57 [PATCH] PCI: Add ASPEED vendor ID Patrick McLean
2023-04-19 7:00 ` Thomas Zimmermann
2023-04-19 18:37 ` Bjorn Helgaas [this message]
2023-04-19 18:37 ` Bjorn Helgaas
2023-04-20 7:08 ` Thomas Zimmermann
2023-04-20 19:10 ` Bjorn Helgaas
2023-04-20 19:10 ` Bjorn Helgaas
2023-04-20 22:04 ` Damien Le Moal
2023-04-20 22:04 ` Damien Le Moal
2023-04-21 6:49 ` Thomas Zimmermann
2023-04-19 18:39 ` Bjorn Helgaas
2023-04-19 18:39 ` Bjorn Helgaas
2023-04-20 7:09 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230419183704.GA216848@bhelgaas \
--to=helgaas@kernel.org \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=bhelgaas@google.com \
--cc=chutzpah@gentoo.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.