Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp34797rdb; Mon, 14 Aug 2023 08:46:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNVa5+t4RkXwlKnk2n1Mbd21puuvD2TwkOT6hiS58Puyv1x0H6EngOlBtd2Ny7ijp9g4nl X-Received: by 2002:a05:6a21:4995:b0:13f:52f1:fe66 with SMTP id ax21-20020a056a21499500b0013f52f1fe66mr9115682pzc.19.1692028000528; Mon, 14 Aug 2023 08:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692028000; cv=none; d=google.com; s=arc-20160816; b=djnXlMz54kSErGdB66nsSCPN0JSjshT36gVjJEu6a2vWR541629/oLYq74Q+AiTPsF Me/FvbwoiFVczkSHcW7MmVOOp6XIeCqJUxdSEF6bp+K6TQ2GxhYCmSnvi+42uXOqylqF KsvIepRtEdWFQnKmN28CPPEOTROah/cwWyDACZKXGm25tL6T4MgYXWT4HQXjIs48tH+/ yYSMxu2xDImYE0MGkLFuzRnV+RhQ8bBTAJBHUJvZKNSaPbKzZ+pwV1pXFwcDWl4jKvnq ix2pXXgtWLSRH1NYEAzhU+j0A7UVAYr/XaRhytlrgzirL6rO2Wa9g2dh0LiUkzDJvPO7 PEZw== 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 :dkim-signature; bh=NIpw90Bh2xViXJnbQ5nWex1TBW8RXK/K06cNQuH8aJM=; fh=zUAAL0oq2+kA0nMRT5WSj9jrme2MlEZTDW5RK2mes1s=; b=gT2fw7uj56uTq6OBFHS+HF/h7c6JYTFTAxd3m8+QoK0aiTwor+0qIw/9177tkYd5is KK7a6KwrsvXAvP/+ihQ69MWFdQn1mx2P9wacRRU1qE2sXo7p8HPu8ldovYj8HA0UDPUW sgyLscmoTCUlUhVtHa30l1SSiQzNNg1nmM62tL6YLCHGjIhy9Vz+lCM7EBqvB7SGXZ7t s783KBabz0CIuIALoi0QyL8dKBqlkF1venE+KpcmJvFSgVtcuc6TJqL4Wccsy1pB8fAA /OjpI8TKxq6/0mkP46Q1k/KOlGTbzlPcostfRJ+Z84I74UxAGZez1lVX09teCBlAsr9N 4OZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YV9zqATV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a634507000000b0056546b5fef6si8139212pga.231.2023.08.14.08.46.03; Mon, 14 Aug 2023 08:46:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b=YV9zqATV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233057AbjHNPNj (ORCPT + 99 others); Mon, 14 Aug 2023 11:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbjHNPNC (ORCPT ); Mon, 14 Aug 2023 11:13:02 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D0F18F for ; Mon, 14 Aug 2023 08:13:01 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe8a1591c7so29650825e9.3 for ; Mon, 14 Aug 2023 08:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692025980; x=1692630780; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NIpw90Bh2xViXJnbQ5nWex1TBW8RXK/K06cNQuH8aJM=; b=YV9zqATVNyHz5P3/exF7Cn0JX28gAlvMM72CuTfV8BHK0Ibtxw1jwknqUwc0iI/uCq 3kq3JOSPO8+2vcN1xFrh36knksXI41b6IrPDtgtBa1mEO1EyQI2TKYcKx4zZaZbT2RYB zyudFat6tIz8AW0vfr2ezfY3iMyyNI4L12OYbpSt/KZ9tPb57cKzIldv/pDNp1QAY8Xi hcTOI7lRodeHG4p6YzHmjMIVpGVSJcbuKrcuVy5kDL1A8kuIo6IdRJJpKqq4eoDm3qIX lJ4fv7NmXrpGANBHNCO0RqwIPZUMMF4Rn822BeLCdcw2FrdzzhFz56CbaJimuSWYe+iS cRkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692025980; x=1692630780; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NIpw90Bh2xViXJnbQ5nWex1TBW8RXK/K06cNQuH8aJM=; b=W7AIpqSKluIGIlVenu2XOQLOu2krZ63/yhxlfo2LQtuzcgbEnIpQdzMPo2mQltkcjP 2LHJ958pyMOC4Km8HKAfoU7SvpMVDWe+nqGAW0XwJ2oxKkT3xC1PI1vFbE5W4u4+Rja5 8X+Qc92Qds+O8f22xL145Y4HPdwU4mxi7zX6tua10taSpTOC8u+9qi1pheXWcivfESOD FXhfkTz967jOf2ZVzmWQz2MMzx35wQbJ+kGe74xn2xKl5p8TfsvvbXi2sF+TsO4caudf UWEohsaCIf1x6/cqFJVkSeFElmmahS+fQf6xPgKXC62ZcUgkDvCWkKclnrgwKgNLAJof bqAQ== X-Gm-Message-State: AOJu0Yzdt6CJSxmqK8uqh9ICBeEkpR+UA+s9unfK6w8zNt/yKNtbOQS5 PL4OCYv8SJIUB4CpdTDPVwCJZQ== X-Received: by 2002:a7b:cd99:0:b0:3fe:63ca:ccf6 with SMTP id y25-20020a7bcd99000000b003fe63caccf6mr7885819wmj.16.1692025979724; Mon, 14 Aug 2023 08:12:59 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 17-20020a05600c021100b003fe1c332810sm17644572wmi.33.2023.08.14.08.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 08:12:59 -0700 (PDT) From: Bryan O'Donoghue To: rfoss@kernel.org, todor.too@gmail.com, bryan.odonoghue@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, andrey.konovalov@linaro.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v0 10/13] media: qcom: camss: Improve error printout on icc_get fail Date: Mon, 14 Aug 2023 16:12:40 +0100 Message-ID: <20230814151243.3801456-11-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230814151243.3801456-1-bryan.odonoghue@linaro.org> References: <20230814151243.3801456-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 If icc_get() fails print the name of the failing path. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c index 6114ea15fd4a0..d0f149db908c1 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -1503,8 +1503,11 @@ static int camss_icc_get(struct camss *camss) for (i = 0; i < camss->res->icc_path_num; i++) { camss->icc_path[i] = devm_of_icc_get(camss->dev, icc_res[i].name); - if (IS_ERR(camss->icc_path[i])) + if (IS_ERR(camss->icc_path[i])) { + dev_err(camss->dev, "Unable to icc_get %s\n", + icc_res[i].name); return PTR_ERR(camss->icc_path[i]); + } } return 0; -- 2.41.0