Re: [virtio-dev] Re: [RFC PATCH v3 3/3] SPI: Add virtio SPI driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Haixu,

no, I've not touched spidev.c. Nowhere. I took Vanilla next/stable and applied the patches I sent.

Run the driver as a (somewhat different but comparable) module on 6.5 on hardware over virtio-MMIO. Probes and goes live.

Tested on next/stable using a specially adapted QEMU version which allows the usage of our proprietary virtio SPI device over PCI in qemu. Probes and goes live.

There may be other patches in the setup we're using I'm not aware of but not this one.

Only in case you're using some locally developed virtio SPI device on qemu which uses PCI transport:

SPI has ID 45. Means 0x2d.

https://www.qemu.org/docs/master/specs/pci-ids.html

1af4:1040 to 1af4:10ef

   ID range for modern virtio devices. The PCI device ID is calculated
   from the virtio device ID by adding the 0x1040 offset. ...

lspci on qemu:

/ # lspci
...
00:03.0 Class 00ff: 1af4:106d
...

/ #

You see something like this?

Regards
Harald

On 04.03.24 08:11, Haixu Cui wrote:


On 2/13/2024 9:53 PM, Harald Mommer wrote:
+static struct spi_board_info board_info = {
+    .modalias = "spi-virtio",
+};

Hi Harald,
    Do you add "spi-virtio" in spidev_spi_ids in spidev.c when you doing the tests, to probe spidev driver?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@xxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: virtio-dev-help@xxxxxxxxxxxxxxxxxxxx





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux