Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4498483rwl; Mon, 3 Apr 2023 06:01:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aOGA6Q6Ny0SFeCz3PGv+XglwNc3ENRQzzqcJxXKTOgkL/OpUQCLh4TrYPK7E3vodAcrNKh X-Received: by 2002:a17:90a:4fe5:b0:23d:48a9:3408 with SMTP id q92-20020a17090a4fe500b0023d48a93408mr39810004pjh.41.1680526916367; Mon, 03 Apr 2023 06:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680526916; cv=none; d=google.com; s=arc-20160816; b=fFGYo5nlGRYIZL59GSHspplokNpGh/ncjhmkjChfBlTi6CeqZAiSl9auXXLKv1GzJs 1gC6uynZRgEgLtjYZNcAM4uiCyI/tJdBL7QG5/3RLp9I6nf6fCW00hUpx2VbHDvgGmvt 7H9K2VIEEhtm1rBZKx7VaF8QvJlt5ePpDCwUeHF/JW3Sah82HnfDsCQFMsFqYizKR/37 ww88UVrNvlrXpPS/byDs2sdMYksrZzu/sX4/xBBit9A6y0af/wc2tR+ePTNxfiCHiN/G d1bUNGWCRtFxnHcEj/kGrbLfR9B2n9I87/hBvuiASH8XCit7CfHn+g4GWpQOInYBn4mK nZmw== 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=V9m/sUPReBRVUTZn9B6dP2tPNUqQXZVWHqpNk1XjAmM=; b=qitxRDDUgHzMEAJmsoR3Q/LASkcfHAyKVd6cE9kvtftMtH1Sm8tpMqSgGYR9APdXTk qqjaH3CZbrmslirqXFusGhYXao0Ac0anFsBBmdubjdWSh8+LADr+86O+Yyz9idXc+bma Fs0dpjRp7t5ZcOX66otXhlIzap75d/gVPyT+odxPD0dUNOmUwyiOIwKxy3ydSzQ1HRsV nr+9onSHJ4V+8A8dN9lUCcpFWiQIwOOrnQaq+A7vluo5lO4UEEtUxx+vvV8y10gOeEJA dGo2KqVbijqR06j5rjpiOfBPHw3Y1WudfQPueWd4nk/bVJwlFwCWPvMcrzHHKP1pPPPj CKQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DCTWXstA; 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 d13-20020a170902b70d00b001a203ea2b08si7785947pls.48.2023.04.03.06.01.14; Mon, 03 Apr 2023 06:01:56 -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=DCTWXstA; 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 S232433AbjDCMzA (ORCPT + 99 others); Mon, 3 Apr 2023 08:55:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjDCMy7 (ORCPT ); Mon, 3 Apr 2023 08:54:59 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6517035AF for ; Mon, 3 Apr 2023 05:54:58 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id e65so34550234ybh.10 for ; Mon, 03 Apr 2023 05:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680526497; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V9m/sUPReBRVUTZn9B6dP2tPNUqQXZVWHqpNk1XjAmM=; b=DCTWXstAsJF9drUfucdicjCtceJE12ZpiVkcQoOxbhPun5kiW4Mw25qh0KoPCnzwnf 3g2+3/FNxsHjRfZYycfdJ8Nzl0erlbxVw7jtOYCmTNY3/+FtapC5R4cVnmTzwMOysyTa 7ApcT1Bc7fpQfFKzMwLNeiwmE7OPRHfvCOvE4L+QA/eBdnVPz/1nRS6ZUvze2xANNUKf y/yxnxy51eN8FvvWeiPudkN5qY03ZTBQNDeWWhpX7ZUmXc3sJ65SOT6HTfkMAvFG24/a R4D9PmE96ItEHLDwbhKbTkdlUnKPWeQDEjhAzJm7hJ4LZ7LwhL0rye2Lru6jlN/hMYS4 /t4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680526497; 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=V9m/sUPReBRVUTZn9B6dP2tPNUqQXZVWHqpNk1XjAmM=; b=zNDKaktU+3qwx76LUe+sZAtuobdI9BpvZKlu4QAPJ92qmWnfDv6LWGF8nseezb8nt1 zen07Q5QXlz+Vs9AyK0j5kUY9r9COCQYaseAHmq3vRTzFmTyis2VQBMy6HeQrlq+WkF6 xzbJ/1IK443YJQLpX0k+DLfCKAqag9n3OiKtWzipw9M5ydWlWoxE23hjn2nrqGsv5/Se LzCoOBLAUWZ5SL/R6h6+05IGKPwE/rb1Rap4jv9UT5teDczEpMqjFH9xFRrajmxLz01d RnOAqzXAGi3npjTtRgN5j6AJzzZPJREjyFAFlToPbhGBt5/r+9R2S7A7IRb8GGzSWVzW JBkQ== X-Gm-Message-State: AAQBX9dKFOeI/6CGqqHvvW9EPRRg0XiH5L8Zm+ZTPn4l4XJo2LGAtSlm xIHYFjQs/HZ3UBAZNQkXGcqSqvvKZvgRkwRPLQOSTg== X-Received: by 2002:a05:6902:102b:b0:b46:4a5e:3651 with SMTP id x11-20020a056902102b00b00b464a5e3651mr23230818ybt.9.1680526497588; Mon, 03 Apr 2023 05:54:57 -0700 (PDT) MIME-Version: 1.0 References: <20230327122948.4323-1-johan+linaro@kernel.org> <48f71f9a-0d00-16df-fff8-5aa455918378@linaro.org> <5dfb81df-8ae2-eb62-01a2-b26c6b8d2597@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 3 Apr 2023 15:54:46 +0300 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp-pmics: fix pon compatible and registers To: Krzysztof Kozlowski Cc: Johan Hovold , Johan Hovold , Bjorn Andersson , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, 3 Apr 2023 at 15:46, Krzysztof Kozlowski wrote: > > On 03/04/2023 14:33, Krzysztof Kozlowski wrote: > > On 03/04/2023 12:54, Johan Hovold wrote: > >> On Mon, Apr 03, 2023 at 11:18:07AM +0200, Krzysztof Kozlowski wrote: > >>> On 27/03/2023 14:29, Johan Hovold wrote: > >>>> The pmk8280 PMIC PON peripheral is gen3 and uses two sets of registers; > >>>> hlos and pbs. > >>>> > >>>> This specifically fixes the following error message during boot when the > >>>> pbs registers are not defined: > >>>> > >>>> PON_PBS address missing, can't read HW debounce time > >>>> > >>>> Note that this also enables the spurious interrupt workaround introduced > >>>> by commit 0b65118e6ba3 ("Input: pm8941-pwrkey - add software key press > >>>> debouncing support") (which may or may not be needed). > >>>> > >>>> Fixes: ccd3517faf18 ("arm64: dts: qcom: sc8280xp: Add reference device") > >>>> Signed-off-by: Johan Hovold > >>>> --- > >>>> arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 5 +++-- > >>>> 1 file changed, 3 insertions(+), 2 deletions(-) > >>>> > >>>> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi > >>>> index c35e7f6bd657..a0ba535bb6c9 100644 > >>>> --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi > >>>> +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi > >>>> @@ -59,8 +59,9 @@ pmk8280: pmic@0 { > >>>> #size-cells = <0>; > >>>> > >>>> pmk8280_pon: pon@1300 { > >>>> - compatible = "qcom,pm8998-pon"; > >>>> - reg = <0x1300>; > >>>> + compatible = "qcom,pmk8350-pon"; > >>> > >>> Same comment as Dmitry's. There is no compatible "qcom,pmk8350-pon" > >>> ccd3517faf18, therefore indicated backport (through AUTOSEL) will lead > >>> to invalid stable kernel. > >>> > >>> You must drop the Fixes tag, because this cannot be backported. > >> > >> That's bullshit. Do you see a stable tag? Is 5.19-stable still active? > > > > Why do you refer to activeness of v5.19? This will go also to v6.0 and v6.1. > > > >> > >> The problem is that the driver was updated before the binding was so the > >> above mentioned probe error has been there since this file was merged. > > > > I grepped and that commit did not have such compatible. Are you saying > > that the kernel which was released with this commit already had that > > compatible in driver (through different merge/tree)? > > So I double checked, the commit ccd3517faf18 (which is being "fixed") > was introduced in v6.0-rc1. v6.0-rc1 did not have "qcom,pmk8350-pon" > compatible, thus it could not be fixed that way. Therefore this cannot > be logically fix for that commit from that release. > > "Fixes" means that commit has a bug and this is how it should be fixed. > So v6.0 kernel should be fixed to use "qcom,pmk8350-pon" compatible, > which is obviously wrong. v6.0 does not support it and the "fix" would > actually break it (which might be worse or better than original problem, > but that's independent thing). This patch fixes the issue in the commit ccd3517faf18. In the end, the schema is describing the hardware, not just what the driver needs. However, backporting this fix would also require one to cherry-pick two other patches (one for the schema, one or two for the driver). I think we should mention 0b65118e6ba3 ("Input: pm8941-pwrkey - add software key press debouncing support") in the commit message (and optionally 03fccdc76dce ("dt-bindings: power: reset: qcom-pon: Add new compatible "qcom,pmk8350-pon"")). Using Cc:stable should probably be left to patch authors (and I myself would not use them here). -- With best wishes Dmitry