Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3112111rdb; Wed, 13 Sep 2023 02:18:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHI4+oNlo10dGMhRCbik6mnoIJ5htd4XtM41mW06Aok1H/61Ub+wIHh0aPiSbF7qpFd6WJ6 X-Received: by 2002:a05:6a00:1d8f:b0:68f:c9f6:f366 with SMTP id z15-20020a056a001d8f00b0068fc9f6f366mr2274664pfw.0.1694596720033; Wed, 13 Sep 2023 02:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694596720; cv=none; d=google.com; s=arc-20160816; b=lyt+QUSmPc1+aVDNxD5X2gikvbMlkwrKFtxmToLiopKjG+FMxnVWon4RFev1vid7V0 eMiHjR296DiIORQte4zzlUGZsZlkQqmbjtWFliLd8FLAiKzn3rE5qBdSfVZYeDUDqM4v 9UATZB37ujPITbgNV0JP4ytX9O+uzQ/8RmpnProgescNmWZRF4BR/OeS87dxD1p2mQz8 xsn4fikAP6nTFVBOwtpEWIHPBPapMwXt3ptXMDZO78XRl2gnqSk/fKaNffHKfCwfoW0F 7kL5FanC7bfGj9wsf68M0BfKT6kBFaGbx1EAeAGivFJ8i3QP07vx7lsxAAPMX8CXPJZf 9ovA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=n1O93Em0dGb2w1gcbLaR3b+qaKxj8ErGxsZztgFUmxE=; fh=W2muWIMXqfZHYc73S6AZ/Q8c3wiA69vkcYDVdliAoEY=; b=lY4d+/4tiaCSRaFR1P8IytY4xYhbuStPR4DF161CBhBTyEkhiQyuZppnn/uQFVqL+V L3k4BYvnd683MnkroZKRBr1/z+HYcjsz1/eDogIRwV+e1I0E0VgZWR3ixODqnyiAIull bYsoL1bHxipYfUeb/voe02kMsrDtp9bskXqF65zZjXrIK6SjCLjDS4Hm0mZ62KuhHpLD PznSXEZrx8RQm/x61rvrdty0TycVkiF69P7f72xavelVepqMLlria0UQgJzfhbAaGXei USpT738H9TlPvoqAnw2JcP1Viu+dtMGwNN+pzE02b/HyXp1djWXVPSQcYfw1SQjdGdu6 FQxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=eBvbVQw9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b00573f9a427d6si4609285pgw.450.2023.09.13.02.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 02:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=eBvbVQw9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3BE2B807D9A3; Tue, 12 Sep 2023 15:40:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237790AbjILWkk (ORCPT + 99 others); Tue, 12 Sep 2023 18:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237811AbjILWkh (ORCPT ); Tue, 12 Sep 2023 18:40:37 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69B610E9 for ; Tue, 12 Sep 2023 15:40:33 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1bf5c314a57so44634675ad.1 for ; Tue, 12 Sep 2023 15:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1694558433; x=1695163233; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=n1O93Em0dGb2w1gcbLaR3b+qaKxj8ErGxsZztgFUmxE=; b=eBvbVQw9ClHZaEZA8mJtng0OkccL5LKYyjZ/4zLu3ZhgedPk50rXGQL83nEndraIoe ZzaBZrfLuaK8b0WfwFksHntz0lIUQ5x8XXIZG1fkNXgZSXw4qYmie2NPGQMtS9Zw79b3 Oc/4dX2oVhgTj4kUPCXVSZgjAgx2ofX+vFTZsLLbgskHq41zMq0RVA0lpq9Dyepob2BS lHKjXR9hMaIqLvhztskGrf0TFMe2ZPoLGcMrwLQRHLO8ZQqRtVuqw+UHXivNy/JD3anj z4U94DEULyCsIHHunJkJqPc90R/pCP1SK4kES4VgZJrvkaw6o5zmvFRPaZu8ZoYKK0Wg tYBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694558433; x=1695163233; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n1O93Em0dGb2w1gcbLaR3b+qaKxj8ErGxsZztgFUmxE=; b=ioemlH3/xRA89Ulh9lvXVofA9YSuCZ396/jCo95WcbyxWL2tw1Un9bidDsLtr0HIAO Yj6BOYxK7dFvYx/auA0ymdiBykOCRLZ6SlLpzYb/t7OPnduT7Bg+dU2EM01bOVD3CE8D zbLgRbVxkvdQdbRZVwbTMsbAL+soQ1LhzFdFw8BGB5h/nvHb8tJXooiDhepxI3XEDlSy Qb7FMRppC/uWyFfFGzB42HQo58xxK10T2jM0kvLk8ZW/idBET0+bD/yZvd6ysLioNwit xeD1b/xUbc8DsDtPWhx/HdrFyWyScgW7ZkpNyB4X2TjBC88hYr2io7WADyfjwGAkwqt6 wynQ== X-Gm-Message-State: AOJu0YwitH1FGMA108MdTeFxUh4e2+BYvMo/Eo4jbVpHp7DmC5laqV6S 5wUA1o1mDvJMrtGNMuMtW1z9Mw== X-Received: by 2002:a17:903:22c3:b0:1bb:59a0:3d34 with SMTP id y3-20020a17090322c300b001bb59a03d34mr1264418plg.30.1694558433268; Tue, 12 Sep 2023 15:40:33 -0700 (PDT) Received: from localhost (71-212-56-62.tukw.qwest.net. [71.212.56.62]) by smtp.gmail.com with ESMTPSA id l12-20020a170902eb0c00b001bf574dd1fesm8943675plb.141.2023.09.12.15.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 15:40:32 -0700 (PDT) From: Kevin Hilman To: Dhruva Gole , Tony Lindgren Cc: linux-omap@vger.kernel.org, Greg Kroah-Hartman , Keerthy , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vibhore@ti.com Subject: Re: [PATCH] bus: ti-sysc: Fix SYSC_QUIRK_SWSUP_SIDLE_ACT handling for uart wake-up In-Reply-To: <20230907062231.muwzvje726wlqnqw@dhruva.dhcp.ti.com> References: <20230907055441.19476-1-tony@atomide.com> <20230907062231.muwzvje726wlqnqw@dhruva.dhcp.ti.com> Date: Tue, 12 Sep 2023 15:40:31 -0700 Message-ID: <7hsf7j582o.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 15:40:39 -0700 (PDT) Dhruva Gole writes: > On Sep 07, 2023 at 08:54:41 +0300, Tony Lindgren wrote: >> The uarts should be tagged with SYSC_QUIRK_SWSUP_SIDLE instead of >> SYSC_QUIRK_SWSUP_SIDLE_ACT. The difference is that SYSC_QUIRK_SWSUP_SIDLE >> is used to force idle target modules rather than block idle during usage. >> >> The SYSC_QUIRK_SWSUP_SIDLE_ACT should disable autoidle and wake-up when >> a target module is active, and configure autoidle and wake-up when a >> target module is inactive. We are missing configuring the target module >> on sysc_disable_module(), and missing toggling of the wake-up bit. >> >> Let's fix the issue to allow uart wake-up to work. >> >> Fixes: fb685f1c190e ("bus: ti-sysc: Handle swsup idle mode quirks") >> Signed-off-by: Tony Lindgren >> --- >> drivers/bus/ti-sysc.c | 22 +++++++++++++++++----- >> 1 file changed, 17 insertions(+), 5 deletions(-) >> >> diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c >> --- a/drivers/bus/ti-sysc.c >> +++ b/drivers/bus/ti-sysc.c > > Thanks for the fix Tony, > I have tested this on a TI SK-AM62x with deepsleep and am able to wakeup > with keypress on the wake_uart. > > For anyone else who wants to give this a shot, the required patches for > deepsleep and DT related changes have been pushed to my branch on github > [0]. > > Hence, > Tested-by: Dhruva Gole > > [0] https://github.com/DhruvaG2000/v-linux/commits/v6.5-rc7_wkuart Also tested on k3-am625-sk using Dhruval's branch. Tested-by: Kevin Hilman Kevin