Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4074348imw; Thu, 7 Jul 2022 12:16:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+4e2RxXtZ/1CcB7k6jvUf1Avyhrl0oDb4cPxVJVUeX8ryoQxGmjyrtgqD5pRGMo66xlB4 X-Received: by 2002:aa7:cd0a:0:b0:43a:8ffd:d8de with SMTP id b10-20020aa7cd0a000000b0043a8ffdd8demr12130892edw.5.1657221380528; Thu, 07 Jul 2022 12:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657221380; cv=none; d=google.com; s=arc-20160816; b=gOH3tOMyAzGGS16ZE33a0b/rFZhD0NAYhQCZl9mtJjhR0WUMISOMf04YIBHFc4aZz7 U3Ta5iMReYIV9+P8p1DxgY98iLmneUx+YQR06R6yyPVYZKnFzcis4fPXUt5+SgAy+5w4 2wiSa9Vio/aO1IQ8pIevEa5ZNve2u9i0rDTLWeYfjtLrg2kdWWYjqNSvo1mOI2m7CuDW mgIboao0sbp2BbZe89OE5YEVkYecLWNfxFiB4+/zmK2ygFHKssIHI7krw0wWmEPhME+A 8yi21D98GG7XuRI/r13KlSPXYJB/2rhHxPKCoeSqx7XyvmNQ5mdZZ7VBzkcY0zuIBpUS Oe7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+a9U/lrXZB0DRTtUvI77chx5EBjon1Z1z5u0IXVmPOI=; b=YsmwXci4bgdLUEVqKyJyrv1FUxSbJEi23qsCLSSWaCcaLKh2o9bSm3kcXhE53F8ldS RXX7khMl+UtlSrZG6rGfrb0DVBcOSHZQwtIDexv5fNdzvJi+scBL4NDy/rhV0/OBzPA2 VnB5AHCeg4Qz/VSHvlv7q3N1k9JEDOQM/FO1tY2Z9GxF0FmpEFWn81Wxdv4J5WtIf2Jx ZpHB2V3EK4IxHPRDh8BYVwyxQXoVhcx+NWRiwL4avuvEpE3pBIfKNXcy8Q1rbvsksWwf KJROfUd0IjkkEIyDJvqdU0QZ5Seo7q+cSDopiaf0VTRfyzzDLWrVnIm07RuXqY23axsd Tv6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="F9euu/HZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn41-20020a1709070d2900b00727c6da65fasi23223766ejc.259.2022.07.07.12.15.53; Thu, 07 Jul 2022 12:16: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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="F9euu/HZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236786AbiGGTNW (ORCPT + 99 others); Thu, 7 Jul 2022 15:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236771AbiGGTNW (ORCPT ); Thu, 7 Jul 2022 15:13:22 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B0845C967; Thu, 7 Jul 2022 12:13:21 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id g126so6875069pfb.3; Thu, 07 Jul 2022 12:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=+a9U/lrXZB0DRTtUvI77chx5EBjon1Z1z5u0IXVmPOI=; b=F9euu/HZZkDKNjM/tZASNqPe47V2r8DieCF2kaekE86LIqKto8U0683wc9BikUsdYa n3wLY/1Tu/SSPMB4SQpSirRbTzl/rfVR5FiK+g452qcm9E/PGgHvoyXNT3RC1wScR8NR 19GcX5RBC1I1l1umdETLz2A2k6DGQxh2zUVIchqI3W+G/kfoRraeZUH4Df6uaxnc5D9a 2vmSBYtJ/s9frF4T8Q8ccmcfqUK+6oP8X9w2OJq6NteIt0QdWbOYvp8sLYBVztEToO2p 0FIhx3JrJAbBWFI4h0zsHsQMvqQHetZe5JBH/oMY6btUZVykR5q6Sv++3JobV7RbGMth PmhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=+a9U/lrXZB0DRTtUvI77chx5EBjon1Z1z5u0IXVmPOI=; b=iYzVonqMNQ+ihhwWUlg46BkDdBGhshdawtM59TG91u7Jfp4OQUa6XUvGUNgc0ZVOeA oTzdRhtJt8kTe6y2QzVBOUmUFLNDJ43d9RQbtQwt1uPh9+shFI5unx2LLs91NMJ+3p3D ImhOn90jIXhVS89/ReQ86xzquUX9uJmd20qVq1vnb59I2E2fFmlZXTggBeqEsmifvLx/ dmRYG2kQ3lybDNK9qDDk9XBB5qf1mvmKJa8vvphnm38Pzl08Y8biDrtQVDDEpR2MupTn t5QvNKcbJOItPtqOEZ/PFNAoHayBK6kXGGtrlfX6nGc2c22MmFuGgbwqB9+N8cAjxagL 1tKg== X-Gm-Message-State: AJIora8zpRbJEmV9f+RtEvxCVD+wDMct6DkEDuPNN5f/y5DW/Io2s3CF 0Ute8cVE3A5e6WACgPHISbxf4z400uU= X-Received: by 2002:a17:902:d50b:b0:16c:474:ce67 with SMTP id b11-20020a170902d50b00b0016c0474ce67mr9653986plg.112.1657221200953; Thu, 07 Jul 2022 12:13:20 -0700 (PDT) Received: from [172.30.1.47] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id s10-20020a170902ea0a00b0016c1efb9195sm309937plg.298.2022.07.07.12.13.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jul 2022 12:13:20 -0700 (PDT) Message-ID: <37298477-b25d-ce84-67eb-091f6e0e5f73@gmail.com> Date: Fri, 8 Jul 2022 04:13:19 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v1] PM / devfreq: tegra30: Add error message for devm_devfreq_add_device() Content-Language: en-US To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , MyungJoo Ham , Kyungmin Park , Chanwoo Choi Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220630075751.1360786-1-dmitry.osipenko@collabora.com> From: Chanwoo Choi In-Reply-To: <20220630075751.1360786-1-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 22. 6. 30. 16:57, Dmitry Osipenko wrote: > It's difficult to notice that driver failed to probe by looking at KMSG > when devm_devfreq_add_device() fails. Add explicit error message for this > case. > > Signed-off-by: Dmitry Osipenko > --- > drivers/devfreq/tegra30-devfreq.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c > index 30382bdfc655..f0d414b881e3 100644 > --- a/drivers/devfreq/tegra30-devfreq.c > +++ b/drivers/devfreq/tegra30-devfreq.c > @@ -926,8 +926,10 @@ static int tegra_devfreq_probe(struct platform_device *pdev) > > devfreq = devm_devfreq_add_device(&pdev->dev, &tegra_devfreq_profile, > "tegra_actmon", NULL); > - if (IS_ERR(devfreq)) > + if (IS_ERR(devfreq)) { > + dev_err(&pdev->dev, "Failed to add device: %pe\n", devfreq); > return PTR_ERR(devfreq); > + } > > return 0; > } Applied it. Thanks. -- Best Regards, Samsung Electronics Chanwoo Choi