Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp193749lfo; Tue, 17 May 2022 21:58:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGudcqRttnjfwSbSPkjH6sFJqDcHaDPYAg9DuzENReMydhA2hHScgB8NviRxsMJECMFJZi X-Received: by 2002:a62:b60f:0:b0:508:2a61:2c8b with SMTP id j15-20020a62b60f000000b005082a612c8bmr25815931pff.2.1652849933754; Tue, 17 May 2022 21:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849933; cv=none; d=google.com; s=arc-20160816; b=P+7TcLkjXg+uMXcv2/49TyRgxBkSsUTKe0cw5wWpGzV/jK82BDDOgAhhrYdwxiSEuL BS7NXORwygWSmmRN6xvCMiR0j+UiCuP4vtx5YViIe/sJobooGHDlV1f96b/Pn/mimABk qMssBKgsAGsRqMYLXxtU7S8HDm+FLXlo6X6zOSf+hK6mO9YJNWmGBd4YuVBiWeE5ypZx nbXAT6nEI06yJLpogtgHpwdG+4eryPDmyOLYPkDdEAIz4GrCNv6RdUPTXSGdsvXuHd89 mU0XphUw1aZbAzJ5YWRkoQwr7xYKAEz6bvuLHKz320b17Nr+oW1j5aeT31xfpSnrO6Y7 J6Kg== 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:date:cc:to:from:subject:message-id; bh=SeDo6q6zw0V68uPR7Ego1fiv11CqapkhJUn21M62zP4=; b=QO9h2q1ulEO44ow+SLsdGcXHpGXBdbnqdjZ0Ic+nJ37zYi/ttdKFL83D6+b4aPyfgy CSaTN5TcrRIiHucUOdln0P6Gzct0wIX0KGJCM/9Q/F5xkTt3q5YlA4rN0mN/CPMzrToD IiIif76ssen02ygCxLWDNjwNGbfrkPumqcGQEYLSgVctWtjqQx+/bFyOH8XWphG0RkWG 2OtAidc3ENVc0RhW+jLy7HONaIm5BruZCml/w9x4PmoxwYKz0kdEzu+H1NYoWdbcLO0L BG6eiIKHZ0rWvGtRad5R1z2EVtNRARwNmNkypMqGOOwfuKWpgcLTMUNzPPoz8bacvsUe C+tg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r1-20020a635141000000b0038653b8ab83si1248162pgl.204.2022.05.17.21.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:58:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D08D815A777; Tue, 17 May 2022 21:09:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233680AbiERBgl (ORCPT + 99 others); Tue, 17 May 2022 21:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbiERBgi (ORCPT ); Tue, 17 May 2022 21:36:38 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D8024F1C; Tue, 17 May 2022 18:36:37 -0700 (PDT) X-UUID: 610e22e4ee1c4bcfb8c21545e4798f7a-20220518 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:129e1bdf-bfa9-428a-a0e7-af13740df3d0,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:2a19b09,CLOUDID:dab69d79-5ef6-470b-96c9-bdb8ced32786,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:0,BEC:nil X-UUID: 610e22e4ee1c4bcfb8c21545e4798f7a-20220518 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 227094953; Wed, 18 May 2022 09:36:33 +0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 18 May 2022 09:36:26 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 May 2022 09:36:26 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 18 May 2022 09:36:26 +0800 Message-ID: <2b46032a99e6f8994d402ebbf34d9174135993c4.camel@mediatek.com> Subject: Re: [PATCH -next] cpufreq: mediatek: fix error return code in mtk_cpu_dvfs_info_init() From: Rex-BC Chen To: Yang Yingliang , , , , CC: , , , Date: Wed, 18 May 2022 09:36:26 +0800 In-Reply-To: <20220517133450.2266243-1-yangyingliang@huawei.com> References: <20220517133450.2266243-1-yangyingliang@huawei.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Tue, 2022-05-17 at 21:34 +0800, Yang Yingliang wrote: > If regulator_get_voltage() fails, it should return the error code in > mtk_cpu_dvfs_info_init(). > > Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU") > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/cpufreq/mediatek-cpufreq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/cpufreq/mediatek-cpufreq.c > b/drivers/cpufreq/mediatek-cpufreq.c > index 37a1eb20f5ba..3a2be4552020 100644 > --- a/drivers/cpufreq/mediatek-cpufreq.c > +++ b/drivers/cpufreq/mediatek-cpufreq.c > @@ -474,6 +474,7 @@ static int mtk_cpu_dvfs_info_init(struct > mtk_cpu_dvfs_info *info, int cpu) > if (info->soc_data->ccifreq_supported) { > info->vproc_on_boot = regulator_get_voltage(info- > >proc_reg); > if (info->vproc_on_boot < 0) { > + ret = info->vproc_on_boot; > dev_err(info->cpu_dev, > "invalid Vproc value: %d\n", info- > >vproc_on_boot); > goto out_disable_inter_clock; Thanks for fix this! Reviewed-by: Rex-BC Chen