[PATCH u-boot] ata: Fix dependency for CONFIG_SATA_SIL

Tom Rini trini at konsulko.com
Thu Jan 12 16:19:16 CET 2023


On Thu, Dec 29, 2022 at 06:15:35PM +0100, Pali Rohár wrote:

> sata_sil.c is PCI driver and without CONFIG_PCI is building of U-Boot failing:
> 
>       LD      u-boot
>     ld.bfd: drivers/ata/sata_sil.o: in function `sil_exec_cmd':
>     drivers/ata/sata_sil.c:148: undefined reference to `dm_pci_phys_to_bus'
>     ld.bfd: drivers/ata/sata_sil.o: in function `sil_pci_probe':
>     drivers/ata/sata_sil.c:687: undefined reference to `dm_pci_get_bdf'
>     ld.bfd: drivers/ata/sata_sil.c:691: undefined reference to `dm_pci_read_config16'
>     ld.bfd: drivers/ata/sata_sil.c:701: undefined reference to `dm_pci_map_bar'
>     ld.bfd: drivers/ata/sata_sil.c:704: undefined reference to `dm_pci_map_bar'
>     ld.bfd: drivers/ata/sata_sil.c:713: undefined reference to `dm_pci_write_config16'
>     ld.bfd: drivers/ata/sata_sil.c:717: undefined reference to `dm_pci_read_config16'
>     ld.bfd: drivers/ata/sata_sil.o: in function `sil_cmd_identify_device':
>     drivers/ata/sata_sil.c:256: undefined reference to `dm_pci_phys_to_bus'
>     ld.bfd: drivers/ata/sata_sil.o: in function `sil_sata_rw_cmd':
>     drivers/ata/sata_sil.c:330: undefined reference to `dm_pci_phys_to_bus'
>     ld.bfd: drivers/ata/sata_sil.o: in function `sil_sata_rw_cmd_ext':
>     drivers/ata/sata_sil.c:377: undefined reference to `dm_pci_phys_to_bus'
>     make: *** [Makefile:1778: u-boot] Error 1
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Stefan Roese <sr at denx.de>

Applied to u-boot/master, thanks!

-- 
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/20230112/15ea8f9b/attachment.sig>


More information about the U-Boot mailing list