mbox series

[v2,0/3] mmc: sunxi: index hack removal

Message ID cover.83f2411bc34652192975a859f986aa4fbe559a49.1505246502.git-series.maxime.ripard@free-electrons.com
Headers show
Series mmc: sunxi: index hack removal | expand

Message

Maxime Ripard Sept. 12, 2017, 8:02 p.m. UTC
Hi,

Here is an attempt at removing the hack in the sunxi code to switch
the MMC indices depending on the boot device.

It's based on Siarhei's suggestion to go through an environment
variable set by the code, and then having a script in our default
bootcmd to change the boot order in order to always favour the boot
device, instead of always picking the external MMC first.

Let me know what you think,
Maxime

Changes from v1:
  - Added the various tags
  - Rebased on top of v2017.09
  - Split the spl_boot_device into a separate function instead of making
    it available in the !spl case

Maxime Ripard (3):
  arm: sunxi: Move spl_boot_device in a separate function
  sunxi: Use sunxi_get_boot_device
  sunxi: Remove the MMC index hack

 arch/arm/include/asm/arch-sunxi/spl.h      |  2 ++-
 arch/arm/mach-sunxi/board.c                | 11 +++++---
 board/sunxi/board.c                        | 26 ++++++++------------
 cmd/fastboot/Kconfig                       |  2 ++-
 configs/A20-OLinuXino-Lime2-eMMC_defconfig |  1 +-
 configs/Sinlinx_SinA33_defconfig           |  1 +-
 configs/parrot_r16_defconfig               |  1 +-
 include/configs/sunxi-common.h             | 30 ++++++++++++++++++-----
 8 files changed, 47 insertions(+), 27 deletions(-)

base-commit: c98ac3487e413c71e5d36322ef3324b21c6f60f9

Comments

Maxime Ripard Sept. 21, 2017, 7:21 p.m. UTC | #1
On Tue, Sep 12, 2017 at 08:02:21PM +0000, Maxime Ripard wrote:
> Hi,

> 

> Here is an attempt at removing the hack in the sunxi code to switch

> the MMC indices depending on the boot device.

> 

> It's based on Siarhei's suggestion to go through an environment

> variable set by the code, and then having a script in our default

> bootcmd to change the boot order in order to always favour the boot

> device, instead of always picking the external MMC first.


Applied all three.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com