Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5605973ybl; Sun, 22 Dec 2019 09:48:36 -0800 (PST) X-Google-Smtp-Source: APXvYqy1OUoe6jl4ykosbf1egP+SJcquSS1wofhOYHQWX5d94UbN2psjwcuc2/V+/zyvuOHlRtAu X-Received: by 2002:a9d:10b:: with SMTP id 11mr21016930otu.222.1577036916189; Sun, 22 Dec 2019 09:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577036916; cv=none; d=google.com; s=arc-20160816; b=Uujycq9Cm93aS6lfXqYO0ghJ1sh3bXhqyF6FZdhAvQCCg49hD58Az/Cfno/z/usJu5 SzJC2lSTrg0sfOOjcgUVMvWSFT7hbzzPaEw5Dv1PkYo8KSBhIxYerNHSfyccVVRyBenb cDGJc7+ElSVOMQODa7/JkCVyx0M9YGKq4eEPg2q3SSCEYkOq3pJ13qtiewGlQ5VWHT2b 6vOY7WOV3vxcUuorgDAu/RY1WqxioFrMW3upURh4Z9QNU9XFLBkx0vxGJ+sliFCJCZ+J 1fDW0KTVsrjqHELFxmjB2HJ/KA2So1kcLIHeygV7g7JoyZ4dM6zgHPmDb5fET9U68cHq cMLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cXV560NztAEyf3QDB9vqOOSo8xQQ1EuVI594ay/V1a0=; b=SA7zQnoXZVIsmWY6aKKHOLT/jMW4tmNgWbRVlGnLwB9d8a3HJPNN8Dceqmuapmd4gw 458GDuSRsftDf1a5GsjyLrLO2BCdJMSka1Ihl72muN2mfMEIqMCCt+AAK2UCiV+1MBWb ko3/YPe6Pd13SbuW3WdpfqbvbS8JT79HvUBhbfHwFuWN63SqrZSqS2A5Qrzpgm/0AsZL KoPx1TPfPwGpR1b9SWmoHpPYhRZ5LGZ0ghk8Z7zeTNYC73VBT/Gi/msGeHLXCCs1njqG u0CM1ZYCXFtT/aCrHJagBYKPjIAjV4dozG5Jy0OVIjv61OAfinbu8CVGy6t/09CNPIlp zSlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhl+f14s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si5865438oia.233.2019.12.22.09.48.24; Sun, 22 Dec 2019 09:48:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhl+f14s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726189AbfLVRrq (ORCPT + 99 others); Sun, 22 Dec 2019 12:47:46 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:38323 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfLVRrp (ORCPT ); Sun, 22 Dec 2019 12:47:45 -0500 Received: by mail-io1-f65.google.com with SMTP id v3so14176134ioj.5; Sun, 22 Dec 2019 09:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cXV560NztAEyf3QDB9vqOOSo8xQQ1EuVI594ay/V1a0=; b=mhl+f14sIzO6v8IsTbkTnbhaRdufq3zfWQfi6Df8LI0VJjjz3dRfeoo5uE5XAFwTRa ooZKiYQiTn1JgPl3MJpOSzCZIELxSzUc2H9ugBb3A/+SBhXxvQCs6U60PF1w5hj5j9dy aF2knVluG3eKMrX91w+2SZtEvKtzvZ6PhoVmJb1XV3yZX/sCe29/76D2aOhmrz2Q+9Es bdV55vsGNk2eEfNKbtute1UFurvy4Xd7z9hH5Y1zkOytY8Z7QQLjkltpdRbk24sTW6fe VDdXi9VRoh/q/1XrVaTjIpfdr1OC4YgNGRHVMN2fIcNwqg+t0uOytBm2zUssB1CBe1ck 2zIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cXV560NztAEyf3QDB9vqOOSo8xQQ1EuVI594ay/V1a0=; b=qpOJy/wxeTM2aorQ1XAQaUb0ObCdwk/PGo4kmizkz/qxXU8usXFdsgXbCSnCVsFwym PqamxWBayaywSAL7e2Yc168PKz0hYnfHBos2Gus5RUonRkCcaAmhIDHtSMArJcFfwSQS MUFx54GWXf4iqzyqMY6Y63uMvA2CnVo1viNPNsDSGo6f9bV/n93l6JDyQfm5RddIIsEd zZ2DWXkg+49Q0dxsj7Kh4Wn/J+nb8q4R1lCoG2WHa7lV9cIUK/Mw1JDDYKt22bhTAUNP XPSNvPAy4zlP1Ym4b/1cm7n1JtpJgZfhdcMz7rIWZP65YekY/GAavkeX9v2V8IRw6nR5 XJYw== X-Gm-Message-State: APjAAAXE64QaklSzlF658WWxvS9l9AvJsT9p1nN8oy5hMO1xBq/SYqoT /csx0GMC8ipOAj0jt+c8G3jIzBTJx+TgWUigGVs= X-Received: by 2002:a6b:b941:: with SMTP id j62mr18408028iof.168.1577036864950; Sun, 22 Dec 2019 09:47:44 -0800 (PST) MIME-Version: 1.0 References: <20191221181855.31380-1-tiny.windzz@gmail.com> <20191221181855.31380-2-tiny.windzz@gmail.com> In-Reply-To: From: Frank Lee Date: Mon, 23 Dec 2019 01:47:33 +0800 Message-ID: Subject: Re: [PATCH 2/2] PM / devfreq: exynos-bus: add missing exynos_bus_disable_edev in exynos_bus_profile_init To: Chanwoo Choi Cc: Chanwoo Choi , MyungJoo Ham , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , Linux PM list , linux-samsung-soc , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 23, 2019 at 1:02 AM Chanwoo Choi wrote: > > Hi, > > Please use capital letter for the first char of patch title > and better to edit the patch title as following: > Actually, it is difficult to understand the role by only reading > the function name. It depends on only this driver. > So, better to edit it as following because devfreq-event > is standard name in linux kernel. I think it is easy to understand > what the patch does. > > - PM / devfreq: exynos-bus: Disable the devfreq-event device when failed > > > 2019=EB=85=84 12=EC=9B=94 22=EC=9D=BC (=EC=9D=BC) =EC=98=A4=EC=A0=84 3:21= , Yangtao Li =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > > The exynos_bus_profile_init process may fail, but the devfreq event dev= ice > > remains enabled. Call devfreq_event_disable_edev on the error return pa= th. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/devfreq/exynos-bus.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.= c > > index 7f5917d59072..5e54eaf3cfc6 100644 > > --- a/drivers/devfreq/exynos-bus.c > > +++ b/drivers/devfreq/exynos-bus.c > > @@ -335,10 +335,14 @@ static int exynos_bus_profile_init(struct exynos_= bus *bus, > > ret =3D exynos_bus_set_event(bus); > > if (ret < 0) { > > dev_err(dev, "failed to set event to devfreq-event devi= ces\n"); > > - return ret; > > + goto err_disable_edev; > > } > > > > return 0; > > + > > +err_disable_edev: > > err_edev is enough instead of 'err_disable_edev' > > > + exynos_bus_disable_edev(bus); > > exynos_bus_disable_edev() has return value for detecting the error. > Need to add following warning message. > > if (ret < 0) > dev_warn(dev, "failed to disable the devfreq-event devices\n"); I'm not sure if it should be like this, it may rewrite the above error code. Yangtao > > > > + return ret; > > } > > > > static int exynos_bus_profile_init_passive(struct exynos_bus *bus, > > -- > > 2.17.1 > > > > > -- > Best Regards, > Chanwoo Choi