Skip to contentSkip to conversation

sata_sil: make it buildable with DM_PCI

PATCH New Marcin Juszkiewicz 2 participants 2 messages Jun 4, 2020 – Jul 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sata_sil: make it buildable with DM_PCI

Linker complained about lack of pci_virt_to_mem function. Looks like driver was not ready for device model - I took solution from e1000.c driver.

---
 drivers/ata/sata_sil.c | 4 ++++
 1 file changed, 4 insertions(+)
ata/sata_sil.c +4 -0
index 6896fa8771..5f9d4378e2 100644
@@ -27,7 +27,11 @@
 
 #include "sata_sil.h"
 
+#ifdef CONFIG_DM_PCI
+#define virt_to_bus(devno, v)	dm_pci_virt_to_mem(devno, (void *) (v))
+#else
 #define virt_to_bus(devno, v)	pci_virt_to_mem(devno, (void *) (v))
+#endif
 
 /* just compatible ahci_ops */
 struct sil_ops {
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 sata_sil: make it buildable with DM_PCI

Quoted 5 lines · Marcin Juszkiewicz

Linker complained about lack of pci_virt_to_mem function. Looks like driver was not ready for device model - I took solution from e1000.c driver.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200708/e20bfa6f/attachment.sig>