diff mbox

[v2,01/10] pci: move REDHAT_SDHCI device ID to make room for Rocker

Message ID 1420511101-8352-3-git-send-email-sfeldma@gmail.com
State New
Headers show

Commit Message

Scott Feldman Jan. 6, 2015, 2:24 a.m. UTC
From: Scott Feldman <sfeldma@gmail.com>

The rocker device uses same PCI device ID as sdhci.  Since rocker device driver
has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't
used by any drivers, it's safe to move REDHAT_SDHCI device ID, avoiding
conflict with rocker.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 docs/specs/pci-ids.txt |    2 +-
 include/hw/pci/pci.h   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Peter Maydell Jan. 6, 2015, 9:52 a.m. UTC | #1
On 6 January 2015 at 02:24,  <sfeldma@gmail.com> wrote:
> From: Scott Feldman <sfeldma@gmail.com>
>
> The rocker device uses same PCI device ID as sdhci.  Since rocker device driver
> has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't
> used by any drivers, it's safe to move REDHAT_SDHCI device ID, avoiding
> conflict with rocker.

Same remarks apply as I made on v1 of this patch -- I don't want
to take this series until we have an answer for who's the
authoritative source for handing out IDs in this space and
why we ended up with this conflict.

thanks
-- PMM
Paolo Bonzini Jan. 7, 2015, 7:47 a.m. UTC | #2
On 06/01/2015 10:52, Peter Maydell wrote:
> On 6 January 2015 at 02:24,  <sfeldma@gmail.com> wrote:
>> From: Scott Feldman <sfeldma@gmail.com>
>>
>> The rocker device uses same PCI device ID as sdhci.  Since rocker device driver
>> has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't
>> used by any drivers, it's safe to move REDHAT_SDHCI device ID, avoiding
>> conflict with rocker.
> 
> Same remarks apply as I made on v1 of this patch -- I don't want
> to take this series until we have an answer for who's the
> authoritative source for handing out IDs in this space and
> why we ended up with this conflict.

Within the virt team, we have always considered the authoritative source
to be qemu.git and Gerd to be the maintainer.  Jiri is a Red Hatter but
not in the virt team, hence the confusion.

Paolo
Peter Maydell Jan. 7, 2015, 10:39 a.m. UTC | #3
On 7 January 2015 at 07:47, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 06/01/2015 10:52, Peter Maydell wrote:
>> On 6 January 2015 at 02:24,  <sfeldma@gmail.com> wrote:
>>> From: Scott Feldman <sfeldma@gmail.com>
>>>
>>> The rocker device uses same PCI device ID as sdhci.  Since rocker device driver
>>> has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't
>>> used by any drivers, it's safe to move REDHAT_SDHCI device ID, avoiding
>>> conflict with rocker.
>>
>> Same remarks apply as I made on v1 of this patch -- I don't want
>> to take this series until we have an answer for who's the
>> authoritative source for handing out IDs in this space and
>> why we ended up with this conflict.
>
> Within the virt team, we have always considered the authoritative source
> to be qemu.git and Gerd to be the maintainer.  Jiri is a Red Hatter but
> not in the virt team, hence the confusion.

OK, so do we:
 (1) say that the authoritative list says this ID is SDHCI,
 so rocker needs to renumber
 (2) as this patch suggests, renumber SDHCI as a one-off fixing
 of an error?

-- PMM
Paolo Bonzini Jan. 7, 2015, 10:55 a.m. UTC | #4
On 07/01/2015 11:39, Peter Maydell wrote:
>> > Within the virt team, we have always considered the authoritative source
>> > to be qemu.git and Gerd to be the maintainer.  Jiri is a Red Hatter but
>> > not in the virt team, hence the confusion.
> OK, so do we:
>  (1) say that the authoritative list says this ID is SDHCI,
>  so rocker needs to renumber
>  (2) as this patch suggests, renumber SDHCI as a one-off fixing
>  of an error?

I already sent a patch for (2) in a pull request.  SDHCI was never in a
released version, unlike rocker which was in Linux 3.18, so I don't
think there's even a choice. :)

I'll send a patch to Linux saying that the authoritative list of device
IDs for 0x1b36 resides in qemu.git.

Paolo
Scott Feldman Jan. 7, 2015, 8:28 p.m. UTC | #5
On Wed, Jan 7, 2015 at 2:55 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 07/01/2015 11:39, Peter Maydell wrote:
>>> > Within the virt team, we have always considered the authoritative source
>>> > to be qemu.git and Gerd to be the maintainer.  Jiri is a Red Hatter but
>>> > not in the virt team, hence the confusion.
>> OK, so do we:
>>  (1) say that the authoritative list says this ID is SDHCI,
>>  so rocker needs to renumber
>>  (2) as this patch suggests, renumber SDHCI as a one-off fixing
>>  of an error?
>
> I already sent a patch for (2) in a pull request.  SDHCI was never in a
> released version, unlike rocker which was in Linux 3.18, so I don't
> think there's even a choice. :)
>
> I'll send a patch to Linux saying that the authoritative list of device
> IDs for 0x1b36 resides in qemu.git.

Thanks Paolo.  I'll resume the qemu rocker submission process assuming
rocker ID stays where it's at and SDHCI is moving.

-scott
diff mbox

Patch

diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt
index 9b57d5e..c6732fe 100644
--- a/docs/specs/pci-ids.txt
+++ b/docs/specs/pci-ids.txt
@@ -45,7 +45,7 @@  PCI devices (other than virtio):
 1b36:0003  PCI Dual-port 16550A adapter (docs/specs/pci-serial.txt)
 1b36:0004  PCI Quad-port 16550A adapter (docs/specs/pci-serial.txt)
 1b36:0005  PCI test device (docs/specs/pci-testdev.txt)
-1b36:0006  PCI SD Card Host Controller Interface (SDHCI)
+1b36:0007  PCI SD Card Host Controller Interface (SDHCI)
 
 All these devices are documented in docs/specs.
 
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 97e4257..97a83d3 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -88,7 +88,7 @@ 
 #define PCI_DEVICE_ID_REDHAT_SERIAL2     0x0003
 #define PCI_DEVICE_ID_REDHAT_SERIAL4     0x0004
 #define PCI_DEVICE_ID_REDHAT_TEST        0x0005
-#define PCI_DEVICE_ID_REDHAT_SDHCI       0x0006
+#define PCI_DEVICE_ID_REDHAT_SDHCI       0x0007
 #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
 
 #define FMT_PCIBUS                      PRIx64