From: Faiz Abbas Date: Mon, 11 Nov 2019 15:48:21 +0530 Subject: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL In-Reply-To: References: <20190729065810.19452-1-brgl@bgdev.pl> <20190729065810.19452-13-brgl@bgdev.pl> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Bartosz, On 08/11/19 9:20 PM, Bartosz Golaszewski wrote: > pt., 25 paź 2019 o 18:10 Bartosz Golaszewski napisał(a): >> >> czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): >>> >>> Hi, >>> >>> On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: >>>> From: Bartosz Golaszewski >>>> >>>> Enable CONFIG_SPL_DM and enable the driver model for serial by defining >>>> an appropriate device in the board file for da850-lcdk. >>>> >>> >>> This breaks booting from MMC on omapl138_lcdk. You didn't add a >>> U_BOOT_DEVICE for the mmc node. >>> >>> Thanks, >>> Faiz >> >> Just letting you know I haven't forgotten about this. I finally got >> some time to work on it this week, but it turned out to be >> non-trivial, as for some reason the set_cmd mmc callback is not being >> properly assigned in SPL with driver-model and I couldn't find out why >> so far. Next week I'm at ELCE, but I'll be back at it on Thursday. I'm >> not sure if you want to revert the offending patch for now or this can >> wait for another week? >> >> Best regards, >> Bartosz Golaszewski > > I've been working on this some more this week and noticed that in SPL > for some reason the bind function of the mmc driver is not called > (despite the driver being probed fine), but so far I've been unable to > figure out why exactly. I suspect you need to set DM_FLAG_PRE_RELOC for the bind to be called. Can you try setting this flag? Thanks, Faiz