Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3092028rdb; Wed, 13 Sep 2023 01:28:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxSQiFJsQ1qfmEugj6rPEujGHz3gAGsTp7JbpGhZO1iswhjjRMnPJ+L/gPkw0LZba3TRLH X-Received: by 2002:a17:902:968e:b0:1bb:f82f:fb93 with SMTP id n14-20020a170902968e00b001bbf82ffb93mr2086905plp.2.1694593737772; Wed, 13 Sep 2023 01:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694593737; cv=none; d=google.com; s=arc-20160816; b=Q60I3XZkY1kLZP75TA+hJvtCuYhuhYtZ905b90GhBSbIRzY2iw5Z6sJfqLpfkIDc4G v6ih1muYLcXtWMSqS0X/MIDy07fHnsTG5alkfDOPu68ySpZU9rhFim2Tsr1obSbBUpZL yOWwhvVUxvRH5j6dv4Lo78of8qBwSwm4PfE3SMu82MAhjmXEDJfs/qu5moZmZt2z6kyq j9FPqbjZNQZBIsvM80uKZktFGN/xLfJlM75AR4W5EyC3Vic9KfdokXks67+2gP5TeKpa msFt+lqXDzU1kU38IO4st44qvvK6OUPMhtabcQcDNTFI4Y0vdHJh1SBarTUE9/IwSjMG o/iw== 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=TGJ/a9Pn2KztCEZMrp3WSSFPA6sMCjtnBs7HAgOVi+I=; fh=5nM5zQuRrs63LI3coxH/rjNAUHI/QnK3meuLqvpABb4=; b=0JDpT6BBJdlaZn1B/5xr83uHZgodhlrDPhTCPbFIs+ZIO3mFnKdwQ/Bak4W78i6TrS xQcd8KZQU1h6vrz0I3vfpLiBpd//PV+i/uwsIBuCGD5Ru5+2wd2Rn12KcIwm0AnxvDJd JgIHfkf3TL9ZPsdORlC6hJWjxSKJ3Jgd0VMAe+5tc2NRfBw0cnj8yRRU4JoR8ljqzZyK /vbMmBF8hikhCMV6e18WYmVRI6Lu+I6M/HBtVbff6b+9JNlMYW4DceK8jm1s7vewos7K Btp7Mh1cj7oUeEv8MK3K0qJk1XTrL12YT+fq/6pnxBFcuoZjAGQNnXWhJPgKkrmohQAo 5/dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o17-20020a170902d4d100b001b873b80747si10405821plg.39.2023.09.13.01.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id B5ED981F54DB; Wed, 13 Sep 2023 01:26:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238843AbjIMI0b (ORCPT + 99 others); Wed, 13 Sep 2023 04:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238838AbjIMI02 (ORCPT ); Wed, 13 Sep 2023 04:26:28 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9900C199D; Wed, 13 Sep 2023 01:26:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BDC618088; Wed, 13 Sep 2023 08:26:23 +0000 (UTC) Date: Wed, 13 Sep 2023 11:26:22 +0300 From: Tony Lindgren To: Kevin Hilman Cc: Dhruva Gole , 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 Message-ID: <20230913082622.GG5285@atomide.com> References: <20230907055441.19476-1-tony@atomide.com> <20230907062231.muwzvje726wlqnqw@dhruva.dhcp.ti.com> <7hsf7j582o.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7hsf7j582o.fsf@baylibre.com> 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 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:26:30 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 fry.vger.email * Kevin Hilman [230912 22:40]: > 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 Thanks for testing, applied into fixes. Tony