Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6266872rdb; Thu, 14 Dec 2023 13:06:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjEHQG80t3HKWcPYr/VL3QgfqhUNWLgvTy2IK/p1CEBkHyE0WPLi2EefTd+R1DYLUL8M+8 X-Received: by 2002:a05:622a:1648:b0:423:ebce:a7b4 with SMTP id y8-20020a05622a164800b00423ebcea7b4mr15536078qtj.68.1702587961082; Thu, 14 Dec 2023 13:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702587961; cv=none; d=google.com; s=arc-20160816; b=cu6pPRvidbo9AsNfRN8lR1P9c9yelbU6NK26qwHep7YUps8IfmTv4KAYdha0K54ml7 nfbpLL8kCf93h2xpafgqgywZg1lpRZAGg++26htYDL376Dbh+icqh7pIR/fTfi6KcKRU HL9kZNIjsk1x3uBK0SKPSsLzBi8FU5R3z/VF8ArEnpmoiZJAeIj0r07d9mPDSEo74ORh n8cLSt0bWFwWLIrh5vMXtYN0uG7Cby0aIIZvichWttPCqyv+Wq8rLRxzbCrzeAuamQUS myMZcojz8vUgx4vNLPfcymdKcsO1HuoVTiY5UFN8QA4oiT8chorm3ZHX7qN9YmJJYi+P zZKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=LCymCj092ujEURhtWwiTvgQB9KRuQ5X6H7jpPjRwiFI=; fh=5YIUZjEp3uCMulIKPG86G0fI7ehwuMNrvPzajLZZVao=; b=V1t2R1Phd9/r1591tHFXKgrE3GUn2UZ5HuH/B84rBAKFP29vn5yEXZwQSYdAoeRxd4 k/a620QdWZLoZiDEA4qQA8yQPMAKx+y03quKtBft+Cv+sb7XViuywujjmMD1V2maz9cU igSbLUVZPhqG9AuMPZGVufbHSL+xjPVHL/fCdNxT8qGRnGlBYcKf7TNv6I+97N3TbqUE 5KXqT0zrpX1XgZSre/5jxh9pWacJZ5qly5nzC8HBVMXtMUqaxWlz8v1BnNKHfvPDVyB9 zJjIJ7PnpCes7DEcuM3FmvSQ27CWuhM+s5nfxpuY+Up+BpDAvkNq3rtsZmG3W0m6w8tg ULrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aT6M1V64; spf=pass (google.com: domain of linux-kernel+bounces-107-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f22-20020ac859d6000000b004257fd2b253si16386085qtf.150.2023.12.14.13.06.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:06:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aT6M1V64; spf=pass (google.com: domain of linux-kernel+bounces-107-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D1A641C20FB9 for ; Thu, 14 Dec 2023 21:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40D606D1C4; Thu, 14 Dec 2023 21:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="aT6M1V64" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABA906DD19 for ; Thu, 14 Dec 2023 21:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-dae7cc31151so8076458276.3 for ; Thu, 14 Dec 2023 13:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702587927; x=1703192727; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LCymCj092ujEURhtWwiTvgQB9KRuQ5X6H7jpPjRwiFI=; b=aT6M1V640/KmulZbvF8adtttkzImYOWLfz7+GvkLrgU+eZHbV4B91992QnL5dCV2jW 5rhQ2Tf47fvN7iq/TYHdFBr3UegSr+Bms4sGTNy/VrZwKgKWCiMI1unmoFkL6TJ0jcXx Y1PCeiNpiavwz1XzcuawZkcbDReikqHGxWYqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702587927; x=1703192727; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LCymCj092ujEURhtWwiTvgQB9KRuQ5X6H7jpPjRwiFI=; b=EBrM0ulNCc+fqk/xpw6sntwL6uzJIosV3CycZ9VK6i6VLxYLSR9tVGQxrOnm5/X4Zn SLjTjBONiViE4rjixSWZlF9+ko7LYRmR54NFzsFINciuDJklruZ1eyNryZnfEPPfSFI+ SDQZbb0ptbeNZL1dswJPs1/OL1mqswclj8xo1kh4x8lghM6lgM0snU0rC8RQGAljusL0 7/OSn8bQ5bq8JR4hdYLeslTPZG8v5wZcfiVgICR8h6GbfXY9n/waYQrVoJi3bTOH3nG2 AFMGYUAYKRbrDIeZjCeHdHz7D+Od8V7M4SBx1CinvyU+5wR0pia3TJFKFOe9KmJNWAGu +imw== X-Gm-Message-State: AOJu0YzciHIGlPVFeUD08xv6ImkuvAvkJyJ8oP1I/itDVrgFc/xbwF/O kI3JnlRAqm8G97WlaQBUv4LmDBGpJ8ikWNXR7OhhPA== X-Received: by 2002:a25:8c09:0:b0:db7:dacf:6fd3 with SMTP id k9-20020a258c09000000b00db7dacf6fd3mr7018530ybl.91.1702587927520; Thu, 14 Dec 2023 13:05:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> <20231213110009.v1.3.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> <20231213221959.GC2115075-robh@kernel.org> In-Reply-To: <20231213221959.GC2115075-robh@kernel.org> From: Mark Hasemeyer Date: Thu, 14 Dec 2023 14:05:16 -0700 Message-ID: Subject: Re: [PATCH v1 3/6] of: irq: add wake capable bit to of_irq_resource() To: Rob Herring Cc: LKML , Raul Rangel , Frank Rowand , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > If a device has multiple interrupts, but none named "wakeup" you are > saying all the interrupts are wakeup capable. That's not right though. > Only the device knows which interrupts are wakeup capable. You need: > > return wakeindex >= 0 && wakeindex == index; I was assuming logic described in the DT bindings: https://www.kernel.org/doc/Documentation/devicetree/bindings/power/wakeup-source.txt "Also, if device is marked as a wakeup source, then all the primary interrupt(s) can be used as wakeup interrupt(s)."