diff options
author | Tom Rini <trini@konsulko.com> | 2022-05-05 19:37:22 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-05 19:37:22 -0400 |
commit | 03b873b4f41010e4f85a72dd59016bb0b123dde1 (patch) | |
tree | 3ea6ba397b9ce3db7286537be078944c6daa23b8 /cmd/mmc.c | |
parent | 5d834bfa5fa61dc9dff94a92672c0a1185cb3a83 (diff) | |
parent | aa5ea20c71921e062aa91d5c7f924cef5d742ec2 (diff) |
Merge branch '2022-05-05-assorted-cleanups-and-fixes'
- Assorted minor code cleanups.
- Clean-up the reset uclass code slightly and fix some issues with a
lack of handlers for a case in the driver.
- Y2038 RTC fix
Diffstat (limited to 'cmd/mmc.c')
-rw-r--r-- | cmd/mmc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -501,11 +501,12 @@ static int do_mmc_rescan(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct mmc *mmc; - enum bus_mode speed_mode = MMC_MODES_END; if (argc == 1) { mmc = init_mmc_device(curr_device, true); } else if (argc == 2) { + enum bus_mode speed_mode; + speed_mode = (int)dectoul(argv[1], NULL); mmc = __init_mmc_device(curr_device, true, speed_mode); } else { @@ -543,7 +544,6 @@ static int do_mmc_dev(struct cmd_tbl *cmdtp, int flag, { int dev, part = 0, ret; struct mmc *mmc; - enum bus_mode speed_mode = MMC_MODES_END; if (argc == 1) { dev = curr_device; @@ -561,6 +561,8 @@ static int do_mmc_dev(struct cmd_tbl *cmdtp, int flag, } mmc = init_mmc_device(dev, true); } else if (argc == 4) { + enum bus_mode speed_mode; + dev = (int)dectoul(argv[1], NULL); part = (int)dectoul(argv[2], NULL); if (part > PART_ACCESS_MASK) { |