Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5BCBC4338F for ; Mon, 16 Aug 2021 07:57:50 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 239D161AE2 for ; Mon, 16 Aug 2021 07:57:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 239D161AE2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE46C82C6B; Mon, 16 Aug 2021 09:57:47 +0200 (CEST) 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=1629100668; bh=JDkawP+m1/Jnr5X/NuKqHPkcJsTpAb9SfzE9GGEODFk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Guhu6hRRwHdunq+WEBPhFRyc3nPbyLUguDk1Cvl26baEhDxAtVmzYcWEOPZRYuqbW a9hRK1yif+DYP9ByhASR1yELrBFqFDzqlMDXpiVdPAoY0EIBkvlBjRKM2Bf+47MAqG Joqt6a0M5mK3UjL7WpDojAQAvLAeI19DWuKlR0d5ly+E/0f8d2q9jWNbegrRS0510g deAkPvMtjNskgLwaXmfVS7uWuMPaDuDnsJrxj/mCOR7DgkYJQ9yL3PxRRDvOnPj34D acQ4O25Uwt3SY3mwcG2GTKNBqd48AuP0xsIpdErmh8TcSa7Ln+vI81MpPHncYi6Xp8 BvOA4wc+2cjWQ== Received: by phobos.denx.de (Postfix, from userid 109) id 8AFBF82BEF; Mon, 16 Aug 2021 09:57:46 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:1::465:107]) (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 4961182BEF for ; Mon, 16 Aug 2021 09:57:42 +0200 (CEST) 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 smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (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-107.mailbox.org (Postfix) with ESMTPS id 4Gp62t0dc9zQkJK; Mon, 16 Aug 2021 09:57:42 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id uVLc62ZVdtBw; Mon, 16 Aug 2021 09:57:38 +0200 (CEST) Subject: Re: [PATCH 2/2] ata: ahci-pci: Add new option CONFIG_SPL_AHCI_PCI To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Tom Rini , Frank Wunderlich Cc: Masami Hiramatsu , Simon Glass , =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de References: <20210815142737.16992-1-pali@kernel.org> <20210815142737.16992-2-pali@kernel.org> From: Stefan Roese Message-ID: Date: Mon, 16 Aug 2021 09:57:38 +0200 MIME-Version: 1.0 In-Reply-To: <20210815142737.16992-2-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2A2B91869 X-Rspamd-UID: b5a116 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 15.08.21 16:27, Pali Rohár wrote: > This new option allows to disable ahci-pci driver in SPL. Disabling it is > needed when SPL_PCI is not enabled as ahci-pci depends on PCI. > > This change fixes following compile error when CONFIG_SPL_SATA_SUPPORT is > enabled and SPL_PCI is disabled. > > LD spl/u-boot-spl > arm-linux-gnueabihf-ld.bfd: drivers/ata/ahci.o: in function `ahci_probe_scsi_pci': > drivers/ata/ahci.c:1205: undefined reference to `dm_pci_map_bar' > arm-linux-gnueabihf-ld.bfd: drivers/ata/ahci.c:1215: undefined reference to `dm_pci_read_config16' > arm-linux-gnueabihf-ld.bfd: drivers/ata/ahci.c:1216: undefined reference to `dm_pci_read_config16' > arm-linux-gnueabihf-ld.bfd: drivers/ata/ahci.c:1220: undefined reference to `dm_pci_map_bar' > make[1]: *** [scripts/Makefile.spl:512: spl/u-boot-spl] Error 1 > make: *** [Makefile:1977: spl/u-boot-spl] Error 2 > > LD spl/u-boot-spl > arm-linux-gnueabihf-ld.bfd: drivers/ata/ahci-pci.o: in function `ahci_pci_probe': > drivers/ata/ahci-pci.c:21: undefined reference to `ahci_probe_scsi_pci' > make[1]: *** [scripts/Makefile.spl:512: spl/u-boot-spl] Error 1 > make: *** [Makefile:1977: spl/u-boot-spl] Error 2 > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/ata/Kconfig | 6 ++++++ > drivers/ata/Makefile | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 0c1490a9f900..96c7c30375bd 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -41,6 +41,12 @@ config AHCI_PCI > help > Enables support for the PCI-based AHCI controller. > > +config SPL_AHCI_PCI > + bool "Support for PCI-based AHCI controller for SPL" > + depends on SPL > + depends on SPL_PCI > + depends on SPL_SATA_SUPPORT && DM_SCSI > + > config SATA_CEVA > bool "Ceva Sata controller" > depends on AHCI > diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile > index 4811b2f82c4e..cd88131dcd13 100644 > --- a/drivers/ata/Makefile > +++ b/drivers/ata/Makefile > @@ -5,7 +5,7 @@ > > obj-$(CONFIG_DWC_AHCI) += dwc_ahci.o > obj-$(CONFIG_AHCI) += ahci-uclass.o > -obj-$(CONFIG_AHCI_PCI) += ahci-pci.o > +obj-$(CONFIG_$(SPL_)AHCI_PCI) += ahci-pci.o > obj-$(CONFIG_SCSI_AHCI) += ahci.o > obj-$(CONFIG_DWC_AHSATA) += dwc_ahsata.o > obj-$(CONFIG_FSL_SATA) += fsl_sata.o > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de