Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp41977iof; Wed, 8 Jun 2022 14:46:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypOggDlPL2s74ogd5GmnVRpxHqhVXBAbet/yGMxcgbkOTvduhzKVUfHHXnirXlZtXssmdR X-Received: by 2002:a17:906:fb07:b0:706:ad5a:db9f with SMTP id lz7-20020a170906fb0700b00706ad5adb9fmr34068543ejb.91.1654724765426; Wed, 08 Jun 2022 14:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654724765; cv=none; d=google.com; s=arc-20160816; b=tQKZFDFjXufYVTaFvw9pgktOwBsMuWILWkScdQG4YR8IOFaBnOIpVnh2bMRTmanjw0 dQ6nWbUJwj8XCkplmv9iWb/9JGRc+HIZ59S3RxwBtsISmfbMm2dIMPkhRlaHgW+ATS+S cE9A9IM04XMOmFCulAy1ZLFEa4dv1WYCmjEK6uUCiAUDXzMPYrDQ/3tQS2gmkiYHd3vM QYP6R1ia9IGqeeC74f4kkrxXHdWxPFIJzy+60/FiYHwghELAafDCWuV5k1IAoxGYVJRy IQv7WWk1KQH36/pSxuJ06/5L0w7nHa6T7muIDhpeOZy8e7CrN75xkEZKOlIJICHIx7I6 5jvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=jB3EjqeyKxk83E1PYy8MLDU8RWhIJMRpK7PcLomWSgY=; b=mknE0l9J2MPtS6BW/TF1RY2ljFz7d5BlpgAKltbsf14ry7VG1Baiyqnu8E9UwkdUqt McQ/UCQV84IvIgg6xnFYU/J2ph4Ppc7pyLG0K25Yw0bL1lDaz4TJ3ccpM/H3Wnbxmd3o /vR7ozy7uYeAnlfiJdSgEWwHejUUeMhPoazROnJKL1aYO8S6njNbuCJBoL1b4s5RAXC6 NbkijX4XDiKp+oFOfkgKMAEXOEH4ikQQXfIVDIXxeK5TZsPGX6Phj9UMvMVoGFhhX8YB RtDOPevohWN37s6zEtkNaSUFaFssT56TgxCU4TR12S170hFmdMziTzEDRmFdQlKkoVR3 yk6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oQowC7y0; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa8-20020a170907868800b006ff335da106si17889816ejc.579.2022.06.08.14.45.38; Wed, 08 Jun 2022 14:46:05 -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=@kernel.org header.s=k20201202 header.b=oQowC7y0; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236012AbiFHUz1 (ORCPT + 99 others); Wed, 8 Jun 2022 16:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234471AbiFHUyv (ORCPT ); Wed, 8 Jun 2022 16:54:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583D51E560D; Wed, 8 Jun 2022 13:54:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CCD4E61D03; Wed, 8 Jun 2022 20:54:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B0B0C34116; Wed, 8 Jun 2022 20:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654721651; bh=RUk+itwOwVF8l2xCM423N6uM+sqHzQaM+YenpOunTws=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oQowC7y06ysBJNPF2/ETt/N534MFoEExLmnlCm5u4LG/XtICZ2jWGgV25WFPu9MCq gvDB1lFP3g6Io3iKbL2nZwTwYTuk8fgJJEAymG6s4OSbz0I4zy4uk1C7n4lz3vX3uo DfU0ItZuil3Bwr+i8boIPgTPufnZtGnXmaYY7AnkP5CiXYC7VicIP85oozRC8vUdp8 ZAFX6BYxbLrVHUC9L9tNnCwGSV4zz6Ms2ISPfhSvQHTKm067UnznvlCKcf3nfCgcl8 aRjzw1tZNHZYuSNpoitWHU7SztQHk+5ojh1W/ivrOAxJUWyZ5liSgaTL/ar9E7asF4 iU+CQ05n3OQVw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220606212112.3617731-1-bjorn.andersson@linaro.org> References: <20220606212112.3617731-1-bjorn.andersson@linaro.org> Subject: Re: [PATCH] clk: qcom: gdsc: Bump parent usage count when GDSC is found enabled From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Bjorn Andersson , Dmitry Baryshkov , Michael Turquette Date: Wed, 08 Jun 2022 13:54:09 -0700 User-Agent: alot/0.10 Message-Id: <20220608205411.2B0B0C34116@smtp.kernel.org> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Quoting Bjorn Andersson (2022-06-06 14:21:12) > When a GDSC is found to be enabled at boot the pm_runtime state will > be unbalanced as the GDSC is later turned off. Fix this by increasing > the usage counter on the power-domain, in line with how we handled the > regulator state. >=20 > Fixes: 1b771839de05 ("clk: qcom: gdsc: enable optional power domain suppo= rt") Is it fixing a regression to the point that I need to merge this on -fixes? The commit text talks about fixing it but I don't understand the urgency, i.e. was it discovered recently and this fixes display on some board or something like that? > Signed-off-by: Bjorn Andersson > --- > drivers/clk/qcom/gdsc.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c > index 44520efc6c72..a1fa7c4cff60 100644 > --- a/drivers/clk/qcom/gdsc.c > +++ b/drivers/clk/qcom/gdsc.c > @@ -420,6 +420,9 @@ static int gdsc_init(struct gdsc *sc) > return ret; > } > =20 > + /* ...and the power-domain */ > + gdsc_pm_runtime_get(sc); Shouldn't we check for error and bail out if it fails?