Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp437608pxf; Wed, 31 Mar 2021 07:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVt0DYY1+PS8i5lZB8nCRJXMjF5lKnv+VKKbbu32LfL4LlSAGZMBSNDyNQfSLrQO0BUyVL X-Received: by 2002:a17:907:3da3:: with SMTP id he35mr3730970ejc.148.1617199965370; Wed, 31 Mar 2021 07:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617199965; cv=none; d=google.com; s=arc-20160816; b=FkmUR5DXdNzQk36j9qAx8lEQ2IDocRZ6B3DLTXAguaRs3o8ja5suo1wIvpXdi1hzBS kmZxJipXdvD7C0t6bnVsRnKrds3r0FkVrLVeQo1IRT+GChe0MoKZ24fxgYXPeFNTMWPe O0goSWe2Wl1TGuaMl9tSLV8jVQIQBKhz2fIbrC+vcSW09N/iGMao2/odY0hLC9edOK70 1h6xIjdiLej8wklUb7ffSlmGuEsKxAU4UmVZiWLGirZyWHOWJpYhl2TLN6hLml9NtSXo zjxxEshAn1u/N1aa/Twsw5JGpyRmXls1YF5TPxzSmz4nOQASUynkHk8eghJ7wJg9qnII +0Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=92979ybVXNYMlrTlPGO1DwRC1dKfc7x85Z0GpQ4z59g=; b=t6TO+qYzPGsLdnx0WSeKdCn8iceVBwp+GJf3piTXyKDqI+9jE2W2wAyTUrUbvNSViV xDqLuzvLGQ+5LJBSXJJgihmpdDmWpqgZNRuW3aIvXSPTSlKhFnNvVfMinRnuWMzcGg5f tXyLtpmJHRNkqVq5PbjnuOGD8K72TY2+w0ta8t9ARclqN2dfownOU+9L6HYpqdFHg+Lz DI85Hm2b461ON83wFcEUeXRY2YWdIM3voX5nsk17Ars9VA57Gheq3I9dGLgvtJh60N/x jLw6vmwJnHrQowyWRMMLQ9G9XtkRPO3A/hMNDqmGL3Hc/TMsa5p3EkljYwoSR1JfGtAT s1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RlNn8dkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zd21si1776778ejb.634.2021.03.31.07.12.22; Wed, 31 Mar 2021 07:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RlNn8dkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235915AbhCaOLR (ORCPT + 99 others); Wed, 31 Mar 2021 10:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235974AbhCaOK4 (ORCPT ); Wed, 31 Mar 2021 10:10:56 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF740C061574; Wed, 31 Mar 2021 07:10:55 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id x21-20020a17090a5315b029012c4a622e4aso1305735pjh.2; Wed, 31 Mar 2021 07:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=92979ybVXNYMlrTlPGO1DwRC1dKfc7x85Z0GpQ4z59g=; b=RlNn8dktBpHxqBPMOLCZvljcIxHrWMLCdq5wxfRawiaqitRGLf3gtyOcGrKM8sXs8G euuWg04R56VIguIf/2tIOCjQesZb65VHxJd8pxk6ZVvWjAdPbj01xBArXxmERigIfw3s U7FEag+biSTKjC9kgQaY/PGmruXIo3LZUOSfaG3nsjllk5JLL5jaLBpEKEVw3TdptUWN SRlVUcxoo1O4skSkDM+9/dZKJ1d82xtqgPsJHKopW87jmpIfypKx8ERiI+8pHHKt3v7k /T4kXIpeJCrs6Cufk3ofSa5RZ7LBDq0vmA8QxhClKBQFeO6sEr5CftwHZM6SgcbhO4nl u1wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=92979ybVXNYMlrTlPGO1DwRC1dKfc7x85Z0GpQ4z59g=; b=jaF8Gxxoa5LuNHGicNr0iP/7BX8rMElS7x1/ZHxgmdlh9o3AGyOcpKyWNNZBD/o51t 6VPMgpFfoaYTNRRZQL2IsZ5/ZYTh+Wjoa+fBVVZRM7oOuLEqplEBElPgIxfjOvs9B81B fLiCsPiBLcKHBAtBkiYoyF5qZ2l3NwPlg75L4YZ+O2GX+qVFAKPF27wBiBznRqC7Gso7 aLO85IBCZqEbtUx1KZ14CkMLxkKY0T+jeMn/RwF94jBVealV8w7+rqy0T5Kl/cJJYxXz sunI9mLDT1tNdkdT2Q95s4DUdLRBfQaRjul3ERNLXJtsHkM2v7jQAqs0HfXCkYTMpIJH Oskw== X-Gm-Message-State: AOAM533HrfbgW6ZHrNroXazBT/KBfi9P1N7WiuaYdIG1S1o6I7iDTqa9 /Ww6yfChCXVLfyrfh3VdyXFnKuzpMq+Igv3Fb1s= X-Received: by 2002:a17:90a:db49:: with SMTP id u9mr3803714pjx.181.1617199855458; Wed, 31 Mar 2021 07:10:55 -0700 (PDT) MIME-Version: 1.0 References: <5e80dc9aeddd46d837e1c317a008e237bf0b4f8f.camel@ew.tq-group.com> In-Reply-To: <5e80dc9aeddd46d837e1c317a008e237bf0b4f8f.camel@ew.tq-group.com> From: Andy Shevchenko Date: Wed, 31 Mar 2021 17:10:39 +0300 Message-ID: Subject: Re: [PATCH 2/3] mfd: tqmx86: clear GPIO IRQ resource when no IRQ is set To: Matthias Schiffer Cc: Linus Walleij , Bartosz Golaszewski , Lee Jones , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 4:24 PM Matthias Schiffer wrote: > On Wed, 2021-03-31 at 15:35 +0300, Andy Shevchenko wrote: > > On Wed, Mar 31, 2021 at 2:39 PM Matthias Schiffer > > wrote: ... > > > + tqmx_gpio_resources[0].flags = 0; > > > > Please set IORESOURCE_DISABLED flag in the initial structure instead. > > Is there any documentation for the correct usage of this flag? I think > I tried IORESOURCE_DISABLED originally, but it didn't have any effect > (platform_get_irq() ignored the flag and returned the resource > anyways). I might misremember though, I originally wrote the series > some time ago. It seems this flag is used solely for ACPI / PNP resources... Hmm... I dunno how platorm_get_irq*() should respect this flag. You see, that in the ACPI branch it has been checked there. -- With Best Regards, Andy Shevchenko