Skip to content

Commit 1a6052e

Browse files
lategoodbyebebarino
authored andcommitted
clk: bcm: rpi: Show clock id limit in error case
The clock id limit will be extended in the future, so it would be helpful to see the actual clock id limit in case the firmware response has been rejected. Signed-off-by: Stefan Wahren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Ivan T. Ivanov <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 13b5cf8 commit 1a6052e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/bcm/clk-raspberrypi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi,
365365
struct raspberrypi_clk_variant *variant;
366366

367367
if (clks->id > RPI_FIRMWARE_NUM_CLK_ID) {
368-
dev_err(rpi->dev, "Unknown clock id: %u\n", clks->id);
368+
dev_err(rpi->dev, "Unknown clock id: %u (max: %u)\n",
369+
clks->id, RPI_FIRMWARE_NUM_CLK_ID);
369370
return -EINVAL;
370371
}
371372

0 commit comments

Comments
 (0)