Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6769853rwr; Tue, 2 May 2023 05:28:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58G/c59F6n+w0Hp1XwaqZ8eoNev4iYdy8ok+KGxe6o8kr7H2h7MGOpCIrZchFaEJj8pnkC X-Received: by 2002:a17:903:2308:b0:19e:ab29:1ec2 with SMTP id d8-20020a170903230800b0019eab291ec2mr20290009plh.65.1683030532271; Tue, 02 May 2023 05:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683030532; cv=none; d=google.com; s=arc-20160816; b=bElvsf5NrtqkExNYZcq3MUmCJOBvW6jR89Sl8ztvr3IdtSmrKWUTDNRUC0PRIEfOmg AgfpmLFHRQBuzN5tQm4+EO2Ue4Oc8yvrSeo1HWtZfFQ/oNsxsg2bpARqDORyFFqAYHeE RbgZ3kBlxF/njbiUV8vGRi8jKer598m9yiTVixx/iJ3Wd4l0J9enfnnm9E4CEh2oT3GO auSyqWl/sFPP6xjC5TA+4Nbu2LNTWlyY9fd1tC1n4L/Ed1EdQV9SmflRHwjqiC4owbk9 c4YnS5TXrWAxn4EGta3iPNWZWTN18VfzZ88v5RWvQCR0QVPJM2sDxAmSAI1/koss6dH5 60xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=q4Hw5C2nBtTZEgNPrdfSn+t6iOR/tfBPufkhXcH+Kxg=; b=yPliIwORvVB1sJ3w1Y3WAr6++uytiYDZhFyixhiu2SUu3lz/EzLvB5nSCrnEqKxAli XR+eP4gw664ThEIA6YS6261IbvwjzPfWIS4h1yw4QHs2mAhA6R9ZXO0OkjU97IEsHBQY 4h9yCotRoSaCsf8hGq0+NzQJU+t92iCkxcpthvkESeXWsWMW4NkQy6BGcQ6PCWr3RVac KDRH3IH6DzVdQvAB3VUuzqLQTabdB1TU+q1015m8eF5DbsC/e1U5pD28bdfmOMSTjPMe l6NArcZ06NJE8aFkGTDFDng0Idn6YyV6n69onyboEJQfsrc6Z4ixqYKvTGEbBIp5Lwz1 DU7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QQ4wxKtC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a170902b71300b001a67b6db120si21499204pls.409.2023.05.02.05.28.36; Tue, 02 May 2023 05:28:52 -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=@linaro.org header.s=google header.b=QQ4wxKtC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234038AbjEBMZS (ORCPT + 99 others); Tue, 2 May 2023 08:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234245AbjEBMZO (ORCPT ); Tue, 2 May 2023 08:25:14 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28D285BBF for ; Tue, 2 May 2023 05:25:11 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-55a829411b5so13218187b3.1 for ; Tue, 02 May 2023 05:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683030310; x=1685622310; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=q4Hw5C2nBtTZEgNPrdfSn+t6iOR/tfBPufkhXcH+Kxg=; b=QQ4wxKtCss6/4ZKcVhJ58uIueD7f6I9RxpE+EjGkvaKQ7NCSo9GJkNcFeAMq17BqKX 5XGp45Pg8BCDAPEAOZ0QokGy8QiQtRaMel18hgI8JcnSWOiMVRA4Z887w4td9DKo7rOE kWSjSfmlFWMCFK5/WWkwEvj0emiW0F1efObLgJ0w/pBQDXtTt8Uh4yxDP5kqgc+HeJhH ayr4pephHfHFTTiFzSe+89TldMyyXoqGmdvNEIiXVXIKldgNqLmJEkBc0ld0CTHSrQNP MrfoHNWJcyPmoeSeRT2Pxuit5hsfH2qtekwZ8psK8rRqveQrlFYPUDEbt16OZyeilFER vcQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683030310; x=1685622310; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q4Hw5C2nBtTZEgNPrdfSn+t6iOR/tfBPufkhXcH+Kxg=; b=VdwWGx4OHqg0okIh7mGauAx0hM9yjHe5rQWrai2s8C2EPcgheFOwcOooFYoXp3CazC FMw78FVReljO23YyuAEkNUtWD0mJEJLJjLBrQvS9dC4QHtfYxxc/VB1DTbwkWAiHbG6j fySk8a899CybiG/yZexT2rLbpETAughnzdne+nyvraGSXuG5LDeUuQ7VCdC72Dq8OODh DXXqSIYbKlQ4V064p+6ILmfTyygH8JVk+sQcNMSD63AFXpICUqFjm+ptp1QcJtEiYtaB kEdc4BU+GQdg5dEjFU57f3xr4hTdW8V7uPksYTx0Ap+kb0TpHCC58zZT+BBYtCQCg0hX Ceaw== X-Gm-Message-State: AC+VfDykfSo/YH9ETF2aunTJ/pzrzouKULHvCD3DBiBXjtYyDTV/muZ4 qGj5/q8k2XT3kNurAJKq8B0+eQkiRqp2ag03gsJSfA== X-Received: by 2002:a0d:c683:0:b0:556:ce0a:5a16 with SMTP id i125-20020a0dc683000000b00556ce0a5a16mr15407859ywd.44.1683030310357; Tue, 02 May 2023 05:25:10 -0700 (PDT) MIME-Version: 1.0 References: <20230502103810.12061-1-johan+linaro@kernel.org> <20230502103810.12061-2-johan+linaro@kernel.org> In-Reply-To: <20230502103810.12061-2-johan+linaro@kernel.org> From: Dmitry Baryshkov Date: Tue, 2 May 2023 15:24:59 +0300 Message-ID: Subject: Re: [PATCH 1/2] phy: qcom-qmp-combo: fix init-count imbalance To: Johan Hovold Cc: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Andy Gross , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Tue, 2 May 2023 at 13:39, Johan Hovold wrote: > > The init counter is not decremented on initialisation errors, which > prevents retrying initialisation and can lead to the runtime suspend > callback attempting to disable resources that have never been enabled. > > Add the missing decrement on initialisation errors so that the counter > reflects the state of the device. > > Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets") > Cc: stable@vger.kernel.org # 4.12 > Signed-off-by: Johan Hovold > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry