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=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 0FEB5C432BE for ; Fri, 27 Aug 2021 15:22:43 +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 71D2E60EE5 for ; Fri, 27 Aug 2021 15:22:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 71D2E60EE5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 CE5BA83271; Fri, 27 Aug 2021 17:22:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="ndoabXGb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6FE1F832AC; Fri, 27 Aug 2021 17:22:37 +0200 (CEST) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8A36B80796 for ; Fri, 27 Aug 2021 17:22:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72f.google.com with SMTP id f22so7543427qkm.5 for ; Fri, 27 Aug 2021 08:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ErzNtC8W0xgpBPvd+3dOoZ8replUtyV2BP52hGgkVns=; b=ndoabXGbB8tHa2TEherybxkrjurk60102RlaFWaD8ncHxXGRIwUI8TraicMyxehg1+ pQdcj5sxAhZNM/VzyZkytcB7cD5r/w3wV28tsBd+TQtPOU5uj32ucFPHlkdMccfl3pNI WhLh0oe3E1EDgn6BUvgOypJWg8eWQswH0sESc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ErzNtC8W0xgpBPvd+3dOoZ8replUtyV2BP52hGgkVns=; b=XW9uruCN5U3oUmzqEVoVuL0KqKZzmUg+wWZu1yaNaDY/jUlMFggSe3GMx6CAFea44b ML3ZORM6NEjHolE3pBQGMEHZ0QTtr5FDAY+iBXvgnPhVZVJbz9Efxh3UeahH9lr4nxoB oKydwGw3+4lq9slMsNNcV+Fo2qFGvYvUeessDeegzRlKEj22+7fkvtte0pQz1o8EmG3T rZvcjKQGkbf4spGPOqmpnfF3VAgAFHY99TTx2RIersw5XSI43yhGdk4LINyR2FZtEAnc fDeLUGSPnVyYkDO6IMueWx4dflCumABJhAzx9m0xwhnn+0rc+Tgyhs0aD5q/CWOgdNFs Mf4g== X-Gm-Message-State: AOAM5309lX+3Y5VGMTsaM3RX552BlxHPi2Xm5eTDsPBpxicDlNxtQsEF f35gjVUo+YsW0/kvr7+QRZ9/pQ== X-Google-Smtp-Source: ABdhPJzdApr9xVCALs+djKtDHYiXAur92RMfDzblG3sYxIB+GLE9Z3BXQ04s4dL/FWuY48Skb6yQZw== X-Received: by 2002:a37:96c2:: with SMTP id y185mr9725268qkd.6.1630077751170; Fri, 27 Aug 2021 08:22:31 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-c87e-b056-79e2-1678.res6.spectrum.com. [2603:6081:7b01:cbda:c87e:b056:79e2:1678]) by smtp.gmail.com with ESMTPSA id 187sm4849547qke.32.2021.08.27.08.22.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Aug 2021 08:22:30 -0700 (PDT) Date: Fri, 27 Aug 2021 11:22:28 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Stefan Roese , Masami Hiramatsu , Frank Wunderlich , Marek =?iso-8859-1?Q?Beh=FAn?= , U-Boot Mailing List Subject: Re: Broken CONFIG_SPL_SATA_SUPPORT=y Message-ID: <20210827152228.GX858@bill-the-cat> References: <20210802214322.GJ9379@bill-the-cat> <20210802215658.vcdxtx6u7tfsi3od@pali> <20210802221120.GM9379@bill-the-cat> <20210802223819.2xh6i6n5d7sxispl@pali> <20210802224648.GO9379@bill-the-cat> <20210802233353.xsqwyrfdkkdju2h2@pali> <20210803014007.GP9379@bill-the-cat> <20210815114826.ccai4fddhxuqjar2@pali> <20210815142303.GJ858@bill-the-cat> <20210827151725.cjq32eh5m4snth2r@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LcFggmP1QcmSK62A" Content-Disposition: inline In-Reply-To: <20210827151725.cjq32eh5m4snth2r@pali> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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 --LcFggmP1QcmSK62A Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 27, 2021 at 05:17:25PM +0200, Pali Roh=E1r wrote: > On Sunday 15 August 2021 10:23:03 Tom Rini wrote: > > On Sun, Aug 15, 2021 at 01:48:26PM +0200, Pali Roh=E1r wrote: > > > On Monday 02 August 2021 21:40:07 Tom Rini wrote: > > > > OK, thanks. Then the right fix is to introduce whatever SPL_xxx sy= mbols > > > > you need so that you can turn off what you don't want in SPL but le= ave > > > > it enabled in full U-Boot, and update the code to use > > > > CONFIG_IS_ENABLED(xxx). If you can do that part, I can iterate over > > > > converting everyone else that assumes what we have today is what it > > > > wants in SPL and non-SPL. > > >=20 > > > Hello Tom! Below is patch which adds SPL_AHCI_PCI symbol. I'm not sure > > > if this is correct approach but it looks like that it fixed that issu= e. > > > With this patch I can compile U-Boot with and also without enabling of > > > CONFIG_SPL_SATA_SUPPORT option. > > >=20 > > >=20 > > > 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. > > > =20 > > > +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 @@ > > > =20 > > > obj-$(CONFIG_DWC_AHCI) +=3D dwc_ahci.o > > > obj-$(CONFIG_AHCI) +=3D ahci-uclass.o > > > -obj-$(CONFIG_AHCI_PCI) +=3D ahci-pci.o > > > +obj-$(CONFIG_$(SPL_)AHCI_PCI) +=3D ahci-pci.o > > > obj-$(CONFIG_SCSI_AHCI) +=3D ahci.o > > > obj-$(CONFIG_DWC_AHSATA) +=3D dwc_ahsata.o > > > obj-$(CONFIG_FSL_SATA) +=3D fsl_sata.o > >=20 > > Looks right to me, please submit it as a proper patch, thanks! >=20 > Patches are already waiting here: > https://patchwork.ozlabs.org/project/uboot/list/?series=3D258094 Yes, thanks, I'll pick them up for the merge window. --=20 Tom --LcFggmP1QcmSK62A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEpAy0ACgkQFHw5/5Y0 tyxV0wwAmobnrlQCKwIy+4Fb/gCJ9PQReW9mKg5g+444kj8i0/+l5100beIBG4ca MhanCpHCnOWN1uplgFavonkFT9TsflAGZJ57lStaBEgGduOSjEnylxd1IhJRydvw 0N8wGUvoYVQfuTXEwP0+PRTrXev7AfmhyiGxJ0Igx7F4Aek3Bj590vU7918wBgH0 z2CmRgJRTPLKXGdvdhiweEoEkmY3quBH6iytswq3sWxQKCYs3mE5Ko1SejP9vycz a3+oez3sfYgl6WbAJNiN0N66Ctl6h4mOLl140vI55RSVg+KxUTkikg9wwsYpKyEF Zehx3D1HfWRW4uTT+XwlGxovPc32KDAO0X5dx/rZKjVl35bFgDZooDxzvA6RtKk6 mhgTF+jXqluyhjzBsRk6Vxbi4j/uo9ZhEeD+OcHxfZpPe/gYU9vbqz4xGXlGdrYq dSkqLcn3q5e/e+pTITITXOfVnli98oZVEQleOmE7K30D600E6kkvOEsF4ufLFick bh+SQfoA =GL8C -----END PGP SIGNATURE----- --LcFggmP1QcmSK62A--