Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2640498rwb; Mon, 7 Aug 2023 00:27:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGo1lIHCyaeKgeE5XYNdnLZiAltIiUe50pKTTrNVXRDE4J3lEHfwds3Fg70JQ3WSzEM+VIw X-Received: by 2002:a17:90b:23d0:b0:268:f8c8:bd5c with SMTP id md16-20020a17090b23d000b00268f8c8bd5cmr7560854pjb.17.1691393276930; Mon, 07 Aug 2023 00:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691393276; cv=none; d=google.com; s=arc-20160816; b=H+zsKe4Cyv9EzypUK9TztbnUSKUAq7ApikXl1a+RRywrEs7dSQnuP2J4lL9WlgUZGf ziol9JdYe1RTRoLW+nF7HoegKbdVlfIYqeCVYnIHMh8NWH9zTFzm8rhwkGVvUa4LGb7x M2++YDaGeqVt76lWdb0Dz0a/oBJ4Uj16goNOAFxKGaYybyOdi2oSl+kxA2kIrLXhc4XO tC2YmBCM4thGu8DYt87YyBFLD4LQRQUNK982JoGYZzoT+1Ph+sFinc+559Wa3aFE0lpG j9djxKxkleOQ9JMKxDdP2cKrCZo73YV32nwxm80H2Q0Gl+Ht4GhsEaE1NvUlI2vTRcfh uGTQ== 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=LA+4qw6PZWXVUWcPXKNiOSMDwvormSSqIkeAZ7PlJGY=; fh=fItUECsMYqNs5fILwrXzdmc/ojZgosoPOJ4ILvFpUyE=; b=PMIK8rtuwcu5Ctjub1ES0Mu2ywCq3a/PpxsVkg/z0JJwKO+5svvpRNAqTbV/GeouMK tu4SDsoJpQnxCVzcxl8C6WTRiDZwFAIDvWrWwtAWRHyga0uuIm03vOZpZV56ZW+ESYYK ZI9B/y0/neUUvI8etK7v5sPcvcB0H4FDtNb73uSdWFUxYkpirG9dR5Rrp52C8GiEY6SW IJlMlfwGrsvrYxvZHoJlJa1WkBf3CbOCsDVjvyX2pH2HxriOsaNciW3ZCJmZfCxsynfb xlsL/X94Gt79Ca4YpXnMV5GZbwjSIAPB+3olIi85E6NZWflHOZw3mvTN4k39kPJFCEjK hWYA== 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 b16-20020a639310000000b0055387ef9633si4986164pge.804.2023.08.07.00.27.44; Mon, 07 Aug 2023 00:27:56 -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 S231331AbjHGHHe (ORCPT + 99 others); Mon, 7 Aug 2023 03:07:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbjHGHHc (ORCPT ); Mon, 7 Aug 2023 03:07:32 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E0C6510F0; Mon, 7 Aug 2023 00:07:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E946A809D; Mon, 7 Aug 2023 07:07:25 +0000 (UTC) Date: Mon, 7 Aug 2023 10:07:24 +0300 From: Tony Lindgren To: Nishanth Menon Cc: Dhruva Gole , Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, Vignesh Raghavendra Subject: Re: [PATCH] pinctrl: single: Add compatible for ti,am625-padconf Message-ID: <20230807070724.GN14799@atomide.com> References: <20230805045554.786092-1-d-gole@ti.com> <20230805171508.schg4xquoa24klk5@october> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230805171508.schg4xquoa24klk5@october> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 * Nishanth Menon [230805 17:15]: > On 10:25-20230805, Dhruva Gole wrote: > > From: Tony Lindgren > > +static const struct pcs_soc_data pinctrl_single_am625 = { > > + .flags = PCS_QUIRK_SHARED_IRQ | PCS_CONTEXT_LOSS_OFF, > > + .irq_enable_mask = (1 << 29), /* WKUP_EN */ > > + .irq_status_mask = (1 << 30), /* WKUP_EVT */ > > +}; > > + > > Why cant we set this in the k3-pinctrl.h and set it once? Good idea to define the bit offsets k3-pinctrl.h instead of magic numbers here :) > The event will not be generated until wakeup daisy chain is triggered > anyways. Yup, and having that happen is enough to show the wake-up reason with grep wakeup /proc/interrupts :) > Have you looked at all the padconf registers across devices to ensure > the WKUP_EN/EVT bits are present? daisy chain feature is used elsewhere > as well. The lack of bits at least earlier just meant that attempting to use a wake-up interrupt would just never trigger. Worth checking though. Dhruva, care to check if some padconf register have reserved bits for 29 and 30 that might be set high by default? Regards, Tony