summaryrefslogtreecommitdiff
path: root/cmd/spi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-01-12 17:05:41 -0500
committerTom Rini <trini@konsulko.com>2023-01-12 17:05:41 -0500
commit87c9e117bf57d6bb42c5521a3f6ec9ca7d97e5fa (patch)
tree9a2a90d475abd35c8945bb3af7aa0c14bfc149f7 /cmd/spi.c
parentf58885d002302b8047446a6a15f7376bb7b1ea32 (diff)
parent48b3ecbedf8208845ac5956a3fb8817269fafedd (diff)
Merge branch '2023-01-12-further-assorted-general-updates'
- Bring in a number of assorted updates, some of which have been waiting around for a bit. Make silent console really be silent, get rid of gpio_hog_probe_all, add RNG for imx6, make net/fm use fs_loader, get rid of a bad __weak usage and set distro_bootpart_uuid in another case.
Diffstat (limited to 'cmd/spi.c')
-rw-r--r--cmd/spi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/spi.c b/cmd/spi.c
index 454ebe37d75..f30018f33be 100644
--- a/cmd/spi.c
+++ b/cmd/spi.c
@@ -112,6 +112,9 @@ int do_spi(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
if ((flag & CMD_FLAG_REPEAT) == 0)
{
+ if (argc < 2)
+ return CMD_RET_USAGE;
+
if (argc >= 2) {
mode = CONFIG_DEFAULT_SPI_MODE;
bus = dectoul(argv[1], &cp);