Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11789045rwl; Tue, 3 Jan 2023 04:55:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0ntuiE/GJw1aeI5LGyEBB+DJbISeeVjJmba1y6hXG8mtCTkbYBTCjrp88QoN6+OabpDjg X-Received: by 2002:a05:6a00:7ca:b0:582:fba:319f with SMTP id n10-20020a056a0007ca00b005820fba319fmr12985401pfu.27.1672750512969; Tue, 03 Jan 2023 04:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672750512; cv=none; d=google.com; s=arc-20160816; b=H/mBwanygsQKuw3hiFI/mXlT9YR61oJOLeLeBMIqT4i3i8LrLqvfeQnolETUi4X4J6 9WSACfxBHgYYc8saccWPii/RwXHVzt3ET247jH+XBIh4QdIOzNi6zZOTywPgv9wOJDfi FqvW2+ymXHGxQDdMXwqHZsmf5vDtYqC+JKCk7oqXZInzgMyP3Bb1vqUFih6z/eWpFOPU x2QIxgVHPX+xdLF2LzPeW5gE6VXR98rA5RGxTxyoWVDLUT8Hrdmk1+21wOWLWgKgP2gL 3d7qVSdwU4REGxY+fj8ZkkDJ6HfmMAe6MRhevCc67FUpgnymTLxba7VR4PWMmAECU+Cx ZJtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oUz+cSg9qmQjsB/pkUHHWeMCJFOPfkWaa0plxQ2oILA=; b=oy0hzpEWCnAnqOuoRpNoKt5GTUmYxq/nI7SJ87Yob2YY2vlan0GVNE7hW42D3Mpzd+ 8w6F2qpEECeIjD3iq3fbI1q5iVOrLRJCayy9G8WKpSEQQOHFKDHQJeWnwQgEmUWFcJKp 6P6wC7FxvpSAqHwCECsoYUm8WMmOOu//DRwcv1MGo873FLWazqY28EdOynx62dTchcI5 0enxpL+fQ1vn6etpXkTvsGATM4i20qSw8bvMVEZjqYgnbBBfi1/0d5przb6+0ATU+OEs 1+d7JGSF+N5FlYRMLw7Fq/7WlBZFr4C44kgqAoKtrI/rqu2L+utav/7fBlbdTnenLqSx TD/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dqiCSMgQ; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k69-20020a638448000000b0043c3f90f7c8si33725792pgd.655.2023.01.03.04.55.05; Tue, 03 Jan 2023 04:55:12 -0800 (PST) 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=@collabora.com header.s=mail header.b=dqiCSMgQ; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237695AbjACMuB (ORCPT + 61 others); Tue, 3 Jan 2023 07:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237679AbjACMtw (ORCPT ); Tue, 3 Jan 2023 07:49:52 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2206106; Tue, 3 Jan 2023 04:49:51 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 305F76602CFA; Tue, 3 Jan 2023 12:49:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1672750190; bh=kLb7ZxO/t10qRzNfWMcuhgJ9EXOlFXY8vbB18QInejQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dqiCSMgQvi/04qrMXM6nENACo5DfvsyNuLBxHdjm3iaDh+jiqP2f+pEGbpB5tKNMm CeNrXN8Miys+y2TnDxifNRqNSS5y91iRZxqE/syBbreZbXoH+PNCJ8rMkgUmIEF57y L2g5z5fVE3XQl6xV0WABHmbUM7H5HbXwnGQcRSe6y7klzW0CUmQxXbxC08ZJUR+Ozy hC8xuurNE4CWoffNSwqdp7SjhyDWmH4F4sgvrDdYbeWTvZ93GXvbuU5n9nFWnz4ice BbfrWupgmsJBDWGmNYV5bNxTXJ3pSbHGi/Y5/tXeW+CjoTCS5qbS7rrVLQUtT1WZlX G97ur71uMRGmg== Message-ID: Date: Tue, 3 Jan 2023 13:49:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v1 10/13] soc: mediatek: mtk-svs: restore default voltages when svs init02 fail Content-Language: en-US To: Roger Lu , Matthias Brugger , Enric Balletbo Serra , Kevin Hilman , Nicolas Boichat Cc: Fan Chen , Jia-wei Chang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20221226094248.4506-1-roger.lu@mediatek.com> <20221226094248.4506-11-roger.lu@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221226094248.4506-11-roger.lu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 26/12/22 10:42, Roger Lu ha scritto: > If svs init02 fail, it means we cannot rely on svs bank voltages anymore. > We need to disable svs function and restore DVFS opp voltages back to the > default voltages for making sure we have enough DVFS voltages. > > Signed-off-by: Roger Lu This needs a Fixes tag... and it also needs to apply to older kernels, as MT8183 does use SVS in previous versions. Perhaps you can send a different patch, without the cleanups, only for the backport? Otherwise you'll have to duplicate svs_bank_disable_and_restore_default_volts() again before cleaning up... I'll leave the choice to you. Regards, Angelo