Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81F46C4167B for ; Mon, 2 Jan 2023 08:08:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC0628457E; Mon, 2 Jan 2023 09:08:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672646911; bh=emtv2NCf2NyJ+e21AuUFspHwIGEFWN03ndasWv+mRlA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=UjEapAqNuZTyl6P2GGEtlICVKv6cpDYaIVQV7wdaCIf4A7U3FyfqNg0++FAylckbp iaajxP3wX6SB80xNDicLaw8t6Qer5SbCdidLOSOgOqN+TP6wJgMwZLsRFAGL0JZ/M3 lS8u7oVxaBSMsgr31dxEy9tnvDRQsuSiYDVxFTi0MXDwPRsWOx/OgT9GHuKf7fWVaY 1WTe7CeXP3/lpDNzT+izq3vYrwScSwHU2MMvyjSxVT3vlgiIv6EP1DhsegGFQbFlRV 9D2LcmqJ9UxWL1A5vTWKOkCpBqGog4ZvF9BKurb+VOWtidqVijI7C2F82m/Bl0gw4J IMZf214XwfwDg== Received: by phobos.denx.de (Postfix, from userid 109) id E88E784EAE; Mon, 2 Jan 2023 09:08:28 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8CB1D833E8 for ; Mon, 2 Jan 2023 09:08:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4NlpQc17c4z9sRZ; Mon, 2 Jan 2023 09:08:24 +0100 (CET) Message-ID: Date: Mon, 2 Jan 2023 09:08:23 +0100 MIME-Version: 1.0 Subject: Re: [PATCH u-boot] ata: Fix dependency for CONFIG_SATA_SIL To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Simon Glass , Tom Rini Cc: u-boot@lists.denx.de References: <20221229171535.29846-1-pali@kernel.org> Content-Language: en-US From: Stefan Roese In-Reply-To: <20221229171535.29846-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 12/29/22 18:15, 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 Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/ata/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index a063b221cd1f..3fe53d6d4f3a 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -135,6 +135,7 @@ config SATA_MV > > config SATA_SIL > bool "Enable Silicon Image SIL3131 / SIL3132 / SIL3124 SATA driver support" > + depends on PCI > select AHCI > select LIBATA > help Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de