Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5571660ybl; Sun, 22 Dec 2019 09:03:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwB0atoBhZNkvA8V3i65tILohRUbYEIclWLMy5DrnS3PyT6V7b1aMWlhtvm50xQObNV2k5P X-Received: by 2002:aca:1b19:: with SMTP id b25mr156002oib.24.1577034191756; Sun, 22 Dec 2019 09:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577034191; cv=none; d=google.com; s=arc-20160816; b=TmY6Gn+jrpnhoPgp9AeSV1W2rCE1Dav2BV+ojAYSMNOnmBuIqgc6DLs+gcIl7X02Ex 0mLfYIsuWfzym3nNct9dpHUI4MlExtPS+wPGhm9K/YUyA8zu3QRuFxUbO0Hg2qoCsFdQ 9perrk48R8onSKVQELfL3ggXCtKi76cm3zqSzLvlYUMpno1x82QgGxXwmhCd9sJS3fOt RHWzzTpi+2VrrqDX3R6q7aqDCzwx6Dc6H6JvBYo6Xdsjor987ghel+HrZdkD+jkf7pF9 jr9QFrCo/QJyxjJhbvLSVJRKkczwYsI/rJzjE6eblNEK1uWpHh1MeN5vTU7sD6MnEurG GIFg== 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=BfEkdLltlKtP3wCpWTyMHN6avc4JKIqgU6iCqpvTNi0=; b=iJsdRv1vQ5Bk1iLkulkwobrogGh+BeX5zCi+ek4KDSSKLvWW0MV6iiroqoffoG1Dam M295Gia0Fc3UwQff2CPkuSVdtLua++3jQLSG0Ll2JOObAyEHUmMAYmEl5f/JG9SZQtE1 FFnDhhVZVfpIPo5fUxh9byMMrJwk78yWx6yJLHwRg/Ro/NwSS6ceGWJxbXIJnKG7LmtH v3D2iDZo+api7BvzC3KwQ2SQn/SZK/R1UqfkQs+2qDU8DlH1aKrh8FCcajSEmRszelBq Deo0N/0d5sWmEyae1GPF+r2Q08LcgkWXriSW+b03CwEn4x5sg1NH2eAdGS4jh+zLmBad uMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="rDi0QTD/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si5829638oih.4.2019.12.22.09.02.57; Sun, 22 Dec 2019 09:03:11 -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=@kernel.org header.s=default header.b="rDi0QTD/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726114AbfLVRCI (ORCPT + 99 others); Sun, 22 Dec 2019 12:02:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:43196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfLVRCI (ORCPT ); Sun, 22 Dec 2019 12:02:08 -0500 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B23A206CB; Sun, 22 Dec 2019 17:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577034126; bh=7ONFh0kZJmzuqCNXxjuaoUtDhcEsJZHLiZEAM52lyQg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rDi0QTD/hppNg0CPLYMm4egb4jl/fgzlgDqDn9HxBp3ha4GjiIyuJfpKGWwFwuxX8 9+/AxFvGgoxDbOGspH3Y/cZg9EEpSeu3hhYLwITnN/CcPJxqayRQnNcsrsVIfULbA9 ObV1KYoIK+g0C6VQYW8wBTcMVfyxRPcAXRPkH3v4= Received: by mail-lj1-f178.google.com with SMTP id l2so15525026lja.6; Sun, 22 Dec 2019 09:02:06 -0800 (PST) X-Gm-Message-State: APjAAAVgxwu3PdrgVDcmN2cyQwmqfukbFy0W0GQyxqOj2MCYGC/19VUo 8SF5HGTxDMYsJuumPU/17lWesJj4uIE1HlPNVrU= X-Received: by 2002:a2e:2d01:: with SMTP id t1mr10672001ljt.36.1577034124863; Sun, 22 Dec 2019 09:02:04 -0800 (PST) MIME-Version: 1.0 References: <20191221181855.31380-1-tiny.windzz@gmail.com> <20191221181855.31380-2-tiny.windzz@gmail.com> In-Reply-To: <20191221181855.31380-2-tiny.windzz@gmail.com> From: Chanwoo Choi Date: Mon, 23 Dec 2019 02:01:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] PM / devfreq: exynos-bus: add missing exynos_bus_disable_edev in exynos_bus_profile_init To: Yangtao Li 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 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 devic= e > remains enabled. Call devfreq_event_disable_edev on the error return path= . > > 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_bu= s *bus, > ret =3D exynos_bus_set_event(bus); > if (ret < 0) { > dev_err(dev, "failed to set event to devfreq-event device= s\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"); > + return ret; > } > > static int exynos_bus_profile_init_passive(struct exynos_bus *bus, > -- > 2.17.1 > -- Best Regards, Chanwoo Choi