Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6895322rwd; Mon, 19 Jun 2023 14:26:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7b+6HKaKJjDnBarpFteCJG2G7ZNw96xVKdvonA3mU8/9smA5Jd4r1nL1ezLwF1Qk0nC2Pn X-Received: by 2002:aca:654c:0:b0:39e:d344:b4ac with SMTP id j12-20020aca654c000000b0039ed344b4acmr3670554oiw.37.1687209986078; Mon, 19 Jun 2023 14:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687209986; cv=none; d=google.com; s=arc-20160816; b=Diu82UvpLPJ9//fGcDcSBKgxB0FKgqamQh1FbornXqdBQNnM7paI8eG6433F+zJ1hb ISKe8hplLKskha+UV0kQmGnqhWDxD+dlz/tiBqfHoVhuV3Q4oOYVWjsvBnDbaLxaLajx mpkHUQqXZ5Xwn0W9yrRQDctR9UXaEihO5ATUwfNQITTII+XOiedBEpciwSM9KMFWi/Mp UD9ShFpPsPJ6oWPW7yb5KH01yih5qEzbaZrCGbgC0mtC3YxQTYJnb955pSraBPQ8b83/ IH9uDqCWektZ1B/YQcpxb/DuaY39hvRCUXOsbP96lONRlmuBxOO7mLOSy99AAfF+6dGI bAjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9wIBxt7MoJnxVC3eFXQJ8qjf7yH8uXetliFoK35etI8=; b=oH7GhkDFAbj0M3xY0zsD+/jMDaM6dWcnYF2iSsbujEMBOjUxZGKdstnroHeRH9Qw2w 8UzA0UAlJyJMSEc79QAV+ODMrYuF1yjT9+6oTt1KO/fEvcfNWtAXb8P/T+2CZvFduP4B VMKLMoHuhrKy6TjPRbgJ5Kqs2fWvC097jlp7YDTZ1W4vyIvfzt19j1tJC35KW0c3SsEC nZ+kTQWuBxieaq4Fxm+Chwdak9ZzeOIk4+C/QjwaA6sW02LRX0P9x1Av0c+nDkBj9Y+B 09EnII83Y5ntmoSAh9fhWjKtrUK122JsEP4+18Wvhyz0XxEW1ZqO/9LLz9InfZIw0oSl AEMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25-20020a637119000000b0054fd53f37dcsi311081pgc.380.2023.06.19.14.26.11; Mon, 19 Jun 2023 14:26:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbjFSVVA (ORCPT + 99 others); Mon, 19 Jun 2023 17:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjFSVUi (ORCPT ); Mon, 19 Jun 2023 17:20:38 -0400 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 594AD10E for ; Mon, 19 Jun 2023 14:20:36 -0700 (PDT) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 3AEBE201E6; Mon, 19 Jun 2023 23:20:33 +0200 (CEST) Date: Mon, 19 Jun 2023 23:20:28 +0200 From: Francesco Dolcini To: Nishanth Menon Cc: Santosh Shilimkar , Tero Kristo , Francesco Dolcini , Wadim Egorov , vigneshr@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, d-gole@ti.com Subject: Re: [PATCH] firmware: ti_sci: Use system_state to determine polling Message-ID: References: <20230619131236.3285069-1-nm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619131236.3285069-1-nm@ti.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Mon, Jun 19, 2023 at 08:12:36AM -0500, Nishanth Menon wrote: > Commit b9e8a7d950ff ("firmware: ti_sci: Switch transport to polled > mode during system suspend") aims to resolve issues with tisci > operations during system suspend operation. However, the system may > enter a no_irq stage in various other usage modes, including power-off > and restart. To determine if polling mode is appropriate, use the > system_state instead. > > While at this, drop the unused is_suspending state variable and > related helpers. > > Reported-by: Francesco Dolcini > Reported-by: Wadim Egorov > Link: https://lore.kernel.org/all/ZGeHMjlnob2GFyHF@francesco-nb.int.toradex.com/ > Signed-off-by: Nishanth Menon s/Link/Closes/ Fixes: b9e8a7d950ff ("firmware: ti_sci: Switch transport to polled mode during system suspend") > drivers/firmware/ti_sci.c | 35 ++--------------------------------- > 1 file changed, 2 insertions(+), 33 deletions(-) > > diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c > index 039d92a595ec..dc7906e38f09 100644 > --- a/drivers/firmware/ti_sci.c > +++ b/drivers/firmware/ti_sci.c ... > -static DEFINE_SIMPLE_DEV_PM_OPS(ti_sci_pm_ops, ti_sci_suspend, ti_sci_resume); You need to stop using ti_sci_pm_ops in ti_sci_driver, without this change it does not build. diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index dc7906e38f09..91aaa0ca9bde 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -3485,7 +3485,6 @@ static struct platform_driver ti_sci_driver = { .driver = { .name = "ti-sci", .of_match_table = of_match_ptr(ti_sci_of_match), - .pm = &ti_sci_pm_ops, }, }; With that change I was able to do a quick test on a patched v6.4-rc7 and it seems to solve the issue. Tested-by: Francesco Dolcini # Toradex Verdin AM62 Francesco