Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3594757rdb; Wed, 27 Dec 2023 12:33:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8/xStJUD9xtzYow9tDVUz2YbNUS9WVpZn8wE6+0AI2EYZamAq+lroIbEgq6l+87bTH52U X-Received: by 2002:a05:6e02:1c0b:b0:35f:aba9:1031 with SMTP id l11-20020a056e021c0b00b0035faba91031mr12682573ilh.126.1703709219099; Wed, 27 Dec 2023 12:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703709219; cv=none; d=google.com; s=arc-20160816; b=KLanjHtgAmpL2gusbUmlOWPopJfNZCF+4ABv04C/mYpFqFqMXsVbOqZnKdhC1m48O0 vO8VJKmzr6M/Ag3f0q3Ta4/V6FM/6XQETYgcmHHBUW+y8ALiE43SmwvvaQjMJNBoJgNp ETaCDUaf9Y2UFMAOwMP4cshG7wZc/UccxL3EETerbNtDukiGWI6DEaDoHShEg7R4JY+d KLl/43TiVYv9/wUIuUWSV4WJss65KTks6YVUE7j399YTmwpvErCsiWsElLUtWtQCgp+m v1Jpy3JAQFo7u5rFksbODF6ZfYNPFkJyA4kDReF5ZNTkxt3ffCWD1yCrY0ehYCjIfpll szhg== 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=ETOOWny78yShpPj7BKJPNWWuj9UMiMXyyRH60A3S4gA=; fh=CD9y1Fv/NsHo1WFvcwOEKWIS4A+ncHFr+9mLbWfzh08=; b=fJWj+G45JRLle/aIciWBAttsOTBMlva1TFbNBjOkhoLSPahOBRtMZAoqHpkB5tdU4Q vfnk9wIryzB1l0MZ/2r8xchYu/FhBwCf538gU6p/MUkvYsljBDlMUxi2e3jd37TaEFlQ Qh3Q1h2Hv2sppMbY5xia1vzBUmtHHLKL0gOKJ/eKcmuNpjNNmLw4t3y8IPsjI7kSoHJx ofVR8BPd6H8IUCMcp4I6CzHbqJLO2BmIbaL7gDMyMSjTUojMHSbaR5GAYFxscbCfiPcp x4ZbAZebp0gnxs2gttOo0+LzglR+6O5/Js3hrQVB3z3iXdqVmT96bEroBkUiuuElSx+O WBzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NKDBTjor; spf=pass (google.com: domain of linux-kernel+bounces-12243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 16-20020a631450000000b005cdf8f2aff1si9400115pgu.573.2023.12.27.12.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 12:33:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NKDBTjor; spf=pass (google.com: domain of linux-kernel+bounces-12243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12243-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 29ABDB225EC for ; Wed, 27 Dec 2023 20:33:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EDB947F62; Wed, 27 Dec 2023 20:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NKDBTjor" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.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 2E44A47F53 for ; Wed, 27 Dec 2023 20:33:26 +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-yw1-f176.google.com with SMTP id 00721157ae682-5e730eb1770so42549047b3.1 for ; Wed, 27 Dec 2023 12:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703709205; x=1704314005; 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=ETOOWny78yShpPj7BKJPNWWuj9UMiMXyyRH60A3S4gA=; b=NKDBTjor0HkYpFzNO/JmqK1HuVyO9LfSm+VJ8cYQXCm+ym7TyGGasUy6InHACrSVzX FRgQ0PZzykkYCYlnoQAgDVJN8wM9bzcRQsZCadOhkCwkAP5ljpiw4DHMtS9Fjt7+YFtr znWc1QfuWCZrM5YwGEoq509of/u0cj2eN/U0M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703709205; x=1704314005; 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=ETOOWny78yShpPj7BKJPNWWuj9UMiMXyyRH60A3S4gA=; b=XFnm6yBTpROAUh+tAVOKGHvOvQWnCsjrt9jWJSn0R3QeKGIibVXbG70qFBuyZfP/++ KM0T7oQxlWK+JlxutVRoSSaUgnBW+iFa+2eNjdYA5cxNHfbCao6ksKtQZ+8S7FkFVpje hmjkNSgbU+TN/umbQ1EdLnOfhKBno4PeKMLisj5/KsLFOQTqIV7RhOnWlyqfJEr7Pwmp VQOczDxFL5TbkQO1jOrNLcCslW74NKRmINlwhrYaBIxa7U3/OHZIjf4YZfX6NfgoQq1e 7MWSPTSajheF6NilWlPWCHk90VhV3aGZ31oP1Er3Uk66+MSVozmDlDlJVLngPDlpXnTi FxNg== X-Gm-Message-State: AOJu0YwF0X8vFKldVlDx9pkISX+qGLVHNl/mjuSb29VLtZ3EzIdGKyo5 /88eSOFG6/nQ0QMq8jKDhH73EzmnK8rReVugmoOIHPwWbfWC X-Received: by 2002:a0d:dd92:0:b0:5e8:789b:3be6 with SMTP id g140-20020a0ddd92000000b005e8789b3be6mr4939328ywe.17.1703709205265; Wed, 27 Dec 2023 12:33:25 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231226192149.1830592-1-markhas@chromium.org> <20231226122113.v3.23.Ife9ebad2bbfbab3a05e90040f344d750aa0aac7e@changeid> In-Reply-To: From: Mark Hasemeyer Date: Wed, 27 Dec 2023 13:33:14 -0700 Message-ID: Subject: Re: [PATCH v3 23/24] platform: Modify platform_get_irq_optional() to use resource To: Andy Shevchenko Cc: LKML , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Sudeep Holla , Raul Rangel , Tzung-Bi Shih , David Gow , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" , Takashi Iwai , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" > > - struct resource *r; > ... > > + struct resource *platform_res = platform_get_resource(dev, IORESOURCE_IRQ, num); > > This is quite unusual (as far as cleanup.h is not used and there is no place > for it here). Sorry, what's unusual? The declaration of a separate 'platform_res'? If so, I introduced it because I wanted to avoid setting 'r' if 'irq_get_irq_data()' fails below.