Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp866103imw; Wed, 13 Jul 2022 09:20:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spWnbBAyOxSnjmJH9vKjuqW2ASTa4jSHM+mf53aHFIPxjFUl97lX6BgdYNXS8MF2JDk6x6 X-Received: by 2002:a17:906:9b15:b0:72b:e09:ea8c with SMTP id eo21-20020a1709069b1500b0072b0e09ea8cmr4309951ejc.478.1657729220362; Wed, 13 Jul 2022 09:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657729220; cv=none; d=google.com; s=arc-20160816; b=MZ33zIWejzXzPNgdDiq9MKlrxNGxMvLqSXyTGwXR/FrwYPbpQ3WfMPIyG73ehEEOW9 xeDPJ7xapuqAqHvnWCrMBGtBJ4PTyyLokxJ1lll65/aRIv0/XavvEYpZiXCXVtbsA97Q kHfVpXOeKtri9r1DdMnkGqdvAYnD/jX9ip8zSapBN9s2Jf8JgtRIg83YAaMUH0ASvgcA vWdrH9lk4WcLtE7C0zLOSys8zMH3gdC9+wz08Jnj/NyDBNzpQkwb1J3jplt2DXCWtT9J rDIb3uqW/0rGoZgVRmarwOjz8Aky4Md+GjOVCxChI309AEjXBiYJcxdlXbkHP7HAv90d gxeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NifIPbXrpYfCkfw9zJN+A08vu2/Fnv++Xi39CA3cIzQ=; b=cbJxyKVqJwphR9OhuBzNQan7YXylyDZNhejGqKq0O+jRNE46CpXCTIyD/VZlRuay0K qNVeb2CaSxnUmmKiNaKPPNVLJRXWFGQf7GJOKJrdybVTvxnnf+xteqY/0DJXFv8hFyUy Gh2kRV+XO9WaKrmCUhjz+c6xo1auBfbTEykPFlCcwPap+AAJofT+J7NdWI4FczwA14AV 1wmOMh2umYrr8S6kQ6GYhqjtrH1nFYQ3LWFQCsX3Kmre/To5Q+RGhA0ODhf1f4DcRjGQ W5+9C7UYdkEKZQQocH4sHI9sbbm1djGatY3A4DhNgy/ATgJvF2emVhtVlTvcHgi5m2aj ufcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a170906475a00b0072b13fa7314si16853913ejs.439.2022.07.13.09.19.55; Wed, 13 Jul 2022 09:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237063AbiGMPun (ORCPT + 99 others); Wed, 13 Jul 2022 11:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237032AbiGMPuf (ORCPT ); Wed, 13 Jul 2022 11:50:35 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A126924BFB; Wed, 13 Jul 2022 08:50:34 -0700 (PDT) Received: from localhost.localdomain ([37.4.249.155]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mw99Y-1nJYVH2GyC-00s74U; Wed, 13 Jul 2022 17:50:15 +0200 From: Stefan Wahren To: Florian Fainelli , Michael Turquette , Stephen Boyd Cc: bcm-kernel-feedback-list@broadcom.com, Maxime Ripard , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH 3/3] clk: bcm: rpi: Show clock id limit in error case Date: Wed, 13 Jul 2022 17:49:53 +0200 Message-Id: <20220713154953.3336-4-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220713154953.3336-1-stefan.wahren@i2se.com> References: <20220713154953.3336-1-stefan.wahren@i2se.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:8mnJLUyPm2j8Dg6SBPoCNRDkohg99QfXZh8VkkEFevhN5A6P6sP nBIu5b5oVOrVqz3RSRFIq/uvpy8hRPJ76z3/Gq8xekVgq9nMbwd+DKEpOsafopJTe3ZoNbG rg5Nf2ARTxJpVuqZ/sVPOG3PCFWDRbwpP96G9qAh7D6ZqiRcSYeg7WVA+H1/fmHiZucdO4v EoZpfSGSrYOSQd0Rzhbow== X-UI-Out-Filterresults: notjunk:1;V03:K0:Xh7qk7C8uOs=:qEDdAYmcQ/dTXZQ1jLyBfq zkdBlORYvpKG8v663Z5MWcbMXp/+tH3PPt/IuLuSRAo/l2mhH/pkwu5bkqXPxDB7X14qPGJxG GW8/PIKtVkXTnCH/uyTEGbptdwjzV6s8FIV3Y7oj8WUFX1ukITic9N0+BgjzpRnn+pK7MoI7T PqmR3ow9dHX6X/9nrjaCEmsEGpI+R2eMCW6tOv8kCoQXxM+Q5FgYM58wW72vbD/S9Xxv+NIsT 0pMEYL3EkHbfIqs9Dor2KA7NmJIzzDBvGoyUBRon1Bu00cAkcWZZ8rLkcz/W0aRTRgBpkWKVn HE9A9Zxri71tFjALCWelIGJJX9Pcm//cjuspEclemlYfLbIUacpEIRpigPnI4qR+KAFL83tCV XjcPrOzPXzY0pce1xjTcywqqU1quRtF/j+3SG87gsrQjOhlwBl5CfPXNIzAtF9pJ7SKQBZT6t borKQtg4eBXem6TBwqadm91XxwzY/bEfwKB6BYbzLLh7nUtd5KpQGzFLCLOxmPXN/ozrFBPzu cw4KZZZ1Bvtq8qFiNopEwXO0zg1FL1WPO8sNBHw0zcdr7xODpEGs3E1YdMsS8ZPk0QEHQQgXN Yf9/zYSZqItmIfGVIhqp+LPue1j+z1rK4CHzqgU4tXmFK4noCFz6BNT8zbHemLbk3BRpN5Kh8 P+xzDl9qszO4rH00teRQ76adlSrzG4zdCWypPaOIzCAWJwtz6DvHeGLd0LHCb8eUMUHRUIyXg K74mW/gBeft29x6gkJzdlykFaDmH0mwYaWczEcxVGvfUnw6eLsXhfySBfbU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/clk/bcm/clk-raspberrypi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index b3b629516182..676e5379ebce 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -365,7 +365,8 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi, struct raspberrypi_clk_variant *variant; if (clks->id > RPI_FIRMWARE_NUM_CLK_ID) { - dev_err(rpi->dev, "Unknown clock id: %u\n", clks->id); + dev_err(rpi->dev, "Unknown clock id: %u (max: %u)\n", + clks->id, RPI_FIRMWARE_NUM_CLK_ID); return -EINVAL; } -- 2.25.1