Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2820661rwb; Mon, 7 Aug 2023 04:13:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHevOoZJHzmGmNt01VoKgb18iOJ7EdhKDal8loIrUmZ3kvg8YVY1Ew379YN1xCKaM7NxQcR X-Received: by 2002:a17:902:cec7:b0:1bb:df69:5e44 with SMTP id d7-20020a170902cec700b001bbdf695e44mr7490081plg.56.1691406809416; Mon, 07 Aug 2023 04:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691406809; cv=none; d=google.com; s=arc-20160816; b=VhHwxcBILPKcBpXMpNCT+FUXw5x4YZyLmugK57ZaScmo96LUsq9oEQyar81EejPHR1 VRFjcsIypG29qy+UxtlR4CaFyvmkIuS3vDy9wFwYrBlZqzqWHQHSIx2Fz4Zj67XvCajQ ftyduBC/QBGG/LWsASSV1+FOLFayY8AhUqSUnsZBJcAtdPhKZ8GeIRVm1KG11KO47fdw eiz/Z1t3qdguvhQF+bzRgvFSB+Or1j7ZBcIVvq0o9uinzryGZPARheSh8eOkbzGXgRk6 d9hytvZRsPfWesUkE4AlxEMr6pmUOTzE5g/ffYIacJ1Yg1oMP1TKX+ylMY0D1mwkFxxD za1Q== 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=QxvTtkhBjCku1dogwPfy6zMErZHyCIY8eC+6OjFPpQ0=; fh=ELyjX4eW6EcF/o14vhbV/aLRizE6XhA5MNgG7ZSxhxg=; b=hry6y8Zk5OJw5U3zvFIj6hJRFkjkoHtt2kQTuWaHUrDM72lUhCUhDq49HICFecN7ea CLFZxZE84JwpjjdBxeQk315L0JWFmzH9C73Sf1Ydf4m8I3gW0dhVyi4k3YTLr06rKYLF DyYUVOBXUiiNtnSWTyopdHiHPrPoaGZOsIfTKg+1QGAgsVzYhLZuJiC9j6wwj5S6cA8i 4/v0Uusq9PUYvdpkOyEueLxQOaHpppHchUZQM2pgvmoMU3LH8c31qnJpV8ODaZyK/qcg ioLIsIKtNkjoCelTE0mqW/evR+Ygn3jmUG71bHGLwk8nulmx2tYkvISp5xWrlq1rXKX8 hZ2Q== 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 u10-20020a170903124a00b001bb3135003fsi5489424plh.161.2023.08.07.04.13.16; Mon, 07 Aug 2023 04:13:29 -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 S231668AbjHGK72 (ORCPT + 99 others); Mon, 7 Aug 2023 06:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjHGK70 (ORCPT ); Mon, 7 Aug 2023 06:59:26 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A5EA10FA; Mon, 7 Aug 2023 03:59:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 8EDEC809D; Mon, 7 Aug 2023 10:59:24 +0000 (UTC) Date: Mon, 7 Aug 2023 13:59:23 +0300 From: Tony Lindgren To: Dhruva Gole Cc: Nishanth Menon , 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: <20230807105923.GO14799@atomide.com> References: <20230805045554.786092-1-d-gole@ti.com> <20230805171508.schg4xquoa24klk5@october> <20230807070724.GN14799@atomide.com> <20230807080922.t35yvyvrknjcriyr@dhruva> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230807080922.t35yvyvrknjcriyr@dhruva> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 * Dhruva Gole [230807 08:09]: > On Aug 07, 2023 at 10:07:24 +0300, Tony Lindgren wrote: > > * 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? > > Do you mean that I set 1 << 29 and 30 as sort of macros in the > k3-pinctrl.h file and then include it in pinctrl-single.c? > > Are we okay to #include a header from arch/arm64/boot/dts/ti? Yes, but SoC specific defines needs to start with a SoC specific prefix as multiple files may be included for various SoCs. > If I understand what Nishanth is saying correctly, are we expected to > set the wake_en bit on every single K3 SoC's every single padconf reg? > > I am a little sceptical with this approach, because what is people > _don't_ want to wakeup from certain pads? What would be the right way to > disable wakeup on those pads then? The wake_en only gets set when some driver does request_irq() on the wakeirq. No need to set them all. > Sure, I could take a look, but setting wake_en on all pads still > doesn't feel right to me. No need to set all wake_en pads, just checking that if request_irq() is done for some pin that does not have wake_en capability does not cause eternal interrupts if a reserved bit is high all the time :) Regards, Tony