From: Marek Vasut Date: Tue, 20 Nov 2018 13:49:56 +0100 Subject: [U-Boot] [PATCH v3 1/5] usb: Introduce CONFIG_SPL_DM_USB In-Reply-To: <87C0C9D2-62CC-4043-96FC-577E1611A9A9@svenschwermer.de> References: <87C0C9D2-62CC-4043-96FC-577E1611A9A9@svenschwermer.de> Message-ID: <26770a8b-c040-ef2e-b1d5-41700c1f7905@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 11/20/2018 08:25 AM, Sven Schwermer wrote: > Hi Marek, > >>> This allows building the SPL without driver model for USB. Since >>> CONFIG_SPL_DM_USB is enabled if and only if CONFIG_DM_USB was enabled >>> before, this patch does not change the build behaviour. >>> >>> Signed-off-by: Sven Schwermer >> >> I asked before, but shouldn't this be 5/5 ? > > Here are the reasons why I don’t think so: > 1) This particular order doesn’t break any builds. I triggered Travis CI runs for every patch in order and they have all succeeded. > 2) Before this patch series, DM was enabled for both SPL and proper when setting CONFIG_DM_USB=y. Are you sure about this ? I recall boards which built SPL without DM and U-Boot with DM USB. > If I had done the s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ step before this patch, the DM would have suddenly been disabled for _all_ boards in their SPL builds. That would have definitively changed the existing behaviour. By doing it this way (CONFIG_SPL_DM_USB depends on CONFIG_DM_USB and the default for the former is “y”), IMHO nothing changes. > > I have difficulties seeing any advantages doing this patch last. If you're sure this doesn't enable SPL_DM_USB on boards where it was previously disabled, fine by me. -- Best regards, Marek Vasut