Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3080221rwb; Mon, 15 Aug 2022 17:38:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6quGGjsD/3MBkfDcCQImFnTeo3tKQQ/U/vBgBoHDSX6ySA/QJcPQyIMsDjRCkRNXXQ43WX X-Received: by 2002:a17:90b:17c9:b0:1f3:3a7c:a3a7 with SMTP id me9-20020a17090b17c900b001f33a7ca3a7mr31556858pjb.76.1660610288496; Mon, 15 Aug 2022 17:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610288; cv=none; d=google.com; s=arc-20160816; b=k7fm8aXc/0vv6k/QzsfKCdnQkpBLON40ziasT0DQwUbezGw5v+VkjoiL5DQUXQZeE4 f9HIi2Oz+j4Eam9CabzD/ekkxKQZfhqJR+sTlhrGmEVXJ1WRSyAMyj0GOnF/GOK492qy gMpW2FV2roE3Dy41Ay1H6XdEEph5UblvvI9sfe4tNUx/GEfLzfkoIiImPGrzmFDhBABX Cxs+t6s31aGsxIrhC8Bz8Io93WMtsDTZUIZycpdVZaNFjJ6eU6rAw6bdb+E34S2zwtv3 HU3+k15ileM9+aAzmg3U7IBcyYKvBhNB7utm/Vyq5PoM4W2h2lfNzDK9e6GLj0ItbKSK C+Eg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m6WYqcZ+rtxk7xN3lKCXZ6zNAT6ku6ZPYZCRPwx6dbc=; b=iBD9h4WZkmXAf5bTefAWA5NsiQUHcrp+5mBN8vdOreAViA33bF9cwTaRk99Eu/PSdU CNBevdbJkuuByrSfjqbuJ1dofMyQJNmeljpZxyidFRnc6pksnk6KBubblZ2MXrmd8rtW bDj2Gvr1PM1Q0Jribve6N8V61aiOBd1P0hrDPN2S+n7N/XxE0L0rnlUddbM3EDLI1X0T muyx3CcX5Se582WjfNhKJ+D227qsFLq0E1IqGwvmqbybU9qVkcPH91c4n3JuW9u87Cp1 HQUdUzHUntZfmQ8obqDPeroHKB3C3Xv8WbjSoib7ztFbMmIG+aKNoElM+M8Qa1EVpgy6 yqdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ki2dpbVU; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a170902cccb00b0016d2c4d1d1esi11976723ple.218.2022.08.15.17.37.57; Mon, 15 Aug 2022 17:38:08 -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=@linuxfoundation.org header.s=korg header.b=Ki2dpbVU; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345335AbiHOXIS (ORCPT + 99 others); Mon, 15 Aug 2022 19:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352702AbiHOXF5 (ORCPT ); Mon, 15 Aug 2022 19:05:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27ED785B6; Mon, 15 Aug 2022 12:58:48 -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 ams.source.kernel.org (Postfix) with ESMTPS id 018EEB81157; Mon, 15 Aug 2022 19:58:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 632ECC433D7; Mon, 15 Aug 2022 19:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593525; bh=RyfyMD2avYPrcXzgnjWluHibnunGgUa10wADbejMdW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ki2dpbVUUSqsP0NV3zNcY/v+equitFl6Ec/K10WnT+vVuOyzAdzGLN7Ir4v5rLhH7 GIt5dVzsKZ9EKDZ4xp+s2DtmtDy5iU1lIK2XcE7ZArW5+iTjsPbArT7QDLbWz2C+0/ /L7+IMA9BGRXi9gxuDDF1g1Htuh1P6X9hGVd0JPQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Konrad Dybcio , Marijn Suijten , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 0283/1157] arm64: dts: qcom: msm8998: Make regulator voltages multiple of step-size Date: Mon, 15 Aug 2022 19:53:59 +0200 Message-Id: <20220815180450.931748149@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 From: Marijn Suijten [ Upstream commit 2aa54fa87cca1fa43870a9caf4fcce00eb087fa5 ] These voltages are not a multiple of the given step-size 8000 (with base voltage 1664000) in pm8998_pldo, resulting in PLDO regulators l18 and l22 failing to validate and in turn not probing the rpm-pm8998-regulator driver: l18: unsupportable voltage constraints 2856000-2848000uV qcom_rpm_smd_regulator rpm-glink:rpm-requests:pm8998-regulators: l18: devm_regulator_register() failed, ret=-22 Round the voltages down for the sake of erring on the safe side, leaving a comment in place to document this discrepancy wrt downstream sources. Fixes: 390883af89d2 ("arm64: dts: qcom: msm8998: Introduce support for Sony Yoshino platform") Reported-by: Konrad Dybcio Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220507153627.1478268-1-marijn.suijten@somainline.org Signed-off-by: Sasha Levin --- .../dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts index 4a1f98a21031..c21333aa73c2 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-poplar.dts @@ -26,11 +26,13 @@ &lab { }; &vreg_l18a_2p85 { - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; + /* Note: Round-down from 2850000 to be a multiple of PLDO step-size 8000 */ + regulator-min-microvolt = <2848000>; + regulator-max-microvolt = <2848000>; }; &vreg_l22a_2p85 { - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <2700000>; + /* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */ + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <2696000>; }; -- 2.35.1