From patchwork Wed Jun 30 22:59:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 468742 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp786458jao; Wed, 30 Jun 2021 16:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyznYz7pmC98zM/c+r6AY84WrjTSnPYI0enopbZmw+Oj/UoFoy/ccKnEThIF3naVnaGoves X-Received: by 2002:a17:907:3ea5:: with SMTP id hs37mr37386722ejc.473.1625094004247; Wed, 30 Jun 2021 16:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625094004; cv=none; d=google.com; s=arc-20160816; b=rheMrWu75yXm/a78xbbzjOLbxUi4syqpDFxsu1Zf0ZvY9lSKsKTn4Nv4C5Ye/R8q4N tpiQK0PNz2wBaq1lFKcxGkbkzlFI2av0fe12ltLIzcKVAljzfvmP/wmsH8ox8p9epxph M1JlATJncxpLbpeKafUGqJfZ4STIv6jaxbb7Sr0e5T1OtupxM3DmLenhWtk/V+QJhjdU 4ogAaQK2lwbArXdSzz9VWzpfL/TPHs2ZFLJXnFUxcZWGQqny9gPBBdEmNxZtb2DCn4cP QLxy83EFwBF0Yb85HdzHSGhXjrK3ZiJxYGLjcTqJe2KA1g5Zi4OhKFosjZrYGhKt147d BoZg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mA0O2RS+C77CPjstuqYyfYTBCR08cJ7jlzsIYzrS2WA=; b=hukuLHcdgnfjx7VjZ0EX8pQfJKKqjOqyiW0Hib2DZg0mgqa/QcgrxU6r9Fif9oh2Dd 3V8aP4KSe2Tsk3ab6Ge/nyF9h4aYRytImHKfokyKvQOBXoYE6sg8++y84SIIs1T/O54l zI7VG0lfybnzQz9PHP2j6b87K6ghDJGmOpam6zA10j4pHddiLS7mIn+7J72utyQmIA7l 58sy6RX5ZbJkkg0r+0oM4ai9aZOoWeVnF4omQIriYJqqD8e8zZ5lbdeKWwImMh8LMcYJ 7K+E4X/NZXqSbUvR09qzyTChZwLcNhlhNHBwkV2jhWomNpVo49PRl5Yq2kY1CVZivPbX qcNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k+3F3dLS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si291785edp.69.2021.06.30.16.00.04; Wed, 30 Jun 2021 16:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k+3F3dLS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233878AbhF3XCb (ORCPT + 17 others); Wed, 30 Jun 2021 19:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232604AbhF3XCa (ORCPT ); Wed, 30 Jun 2021 19:02:30 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058E3C0617A8 for ; Wed, 30 Jun 2021 16:00:00 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id q18so8118556lfc.7 for ; Wed, 30 Jun 2021 15:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mA0O2RS+C77CPjstuqYyfYTBCR08cJ7jlzsIYzrS2WA=; b=k+3F3dLS6LM+zaDXVKGyCqiLEPtbj8hiwqQR3AcS0AHnjW4JzhtD8xW4GIxKdCuYfQ MSShft0IgI841LbfkoWdbEnCtgmwqFp8I0+ldbCdKo0RfjHhsLhxfCe/NgVz4sWhBV4h y4Hgogb5XmNEm238XZg4eqno3f7TD3iRalcgnERCPE4hV3lCuoihSB9Kjxhd+lbS9ft/ rZRCq2mJeuCO7UHTfcETaCOXc7rUQfoxPL4B+Cykbc1lmId/eGYNhecbNmwYfif/tA1f YuL+IlV+6ZGeXmIa9goOGOqedoSCOlIrf964ytJlTZ3B83RX/jhGn4wY6FVjBHJsFmFa /isg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mA0O2RS+C77CPjstuqYyfYTBCR08cJ7jlzsIYzrS2WA=; b=X4JCIB5vo4AHZ1UsDcOJImtL/+0g6OMTB7tpzes8TYMw+t4yU4yBgBI7t8803ffaaS kofC3Y9Q15STFXc1A96EZlDsBU0c6yr9QzrVX0uEPXXcl5YSRRgjOfxRtUIwHlhCtxFV e7AtEQciovN2qPi6H6fSQxoXNNnVU0OBCY5PkRr2jZj2jMFL2NFg2oPqKraX5dhteBMN 2y3hxhimeyS+Cc8UPZp4QbT5gqosv9dOFxZ1GAHHmUUn8lQi6SYyDvy/N6LdU+hja7Gx uW2YSHz8p7zq1RuLeUn25Q9uZ68nFKUml7myLyGPBIelTmsnPW3vzGGOUETMADka5tVs UC4A== X-Gm-Message-State: AOAM530XxL3AJzzPgITvzzfZWgrDT7u6kQkv31J+iWr6jFFpmYLZPKRn U02F5yo/YSlfP1xRiz3WzpTbK66JXLsqJw== X-Received: by 2002:a19:8c02:: with SMTP id o2mr6192594lfd.326.1625093998148; Wed, 30 Jun 2021 15:59:58 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id e17sm2324444ljn.125.2021.06.30.15.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 15:59:57 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 0/2] clk: qcom: fix error path and cleanup in gdsc support Date: Thu, 1 Jul 2021 01:59:50 +0300 Message-Id: <20210630225952.3337630-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix error path in gdsc_register() and cleanup code in gdsc_unregister() to properly unwind all genpd registration calls. Both patches bear two fixes tags, since part of the issue was present in the very first commit adding support for GDSCs, part of the issue was added when adding hiearchical power domains support to GDSC code. ---------------------------------------------------------------- Dmitry Baryshkov (2): clk: qcom: fix error_path in gdsc_register clk: qcom: fix domains cleanup in gdsc_unregister drivers/clk/qcom/gdsc.c | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-)