From: Maxime Ripard Date: Wed, 22 Aug 2018 18:43:04 +0200 Subject: [U-Boot] [PATCH v3 27/58] fastboot: sunxi: Update fastboot mmc default device In-Reply-To: References: <20180819135715.15799-1-jagan@amarulasolutions.com> <20180819135715.15799-28-jagan@amarulasolutions.com> <20180820114438.mjja2qo6nkxazvfa@flea> Message-ID: <20180822164304.fvk72clluyssvlgd@flea> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 21, 2018 at 10:27:38PM +0530, Jagan Teki wrote: > On Mon, Aug 20, 2018 at 5:14 PM, Maxime Ripard > wrote: > > On Sun, Aug 19, 2018 at 07:26:44PM +0530, Jagan Teki wrote: > >> Usually eMMC is default mmc device for fastboot. > >> > >> By enabling DM_MMC, the mmc devices are probed as per > >> DT status not with respect to MMC_SUNXI_SLOT_EXTRA in > >> U-Boot proper. > >> > >> Allwinner SoC has maximum of 4 mmc controllers start from > >> mmc0...mmc3 on which mmc2 can be used an eMMC controller > >> eventhough mmc3 some boards used as eMMC. > >> > >> So, update the default fastboot device as 2 to make the > >> standard usage irrespective of DT node status. > >> > >> Other corner cases like different device usage, or specific > >> mmc node status is not enabled in order in DTS must explicitly > >> add config on the specific defconfig file. > >> > >> Cc: Olliver Schinagl > >> Cc: Chen-Yu Tsai > >> Signed-off-by: Jagan Teki > > > > This breaks all existing users, since if DM_MMC isn't set (and it > > isn't at the moment), the MMC IDs won't change, and you're changing it > > from either 0 or 1 to 2. > > True, bisectable issue. will take care on next version. > > > > > Can't we have a DT property instead? It looks much better than having > > to deal with a non stable ID in Kconfig. > > What do you mean by DT property handle? mmc2 is eMMC in all sunXi > isn't? ie reason I make it default. I meant to select the fastboot and environment devices. That way, each board can select the one it wants in a truly deterministic way. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: