Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp371066pxf; Wed, 31 Mar 2021 05:39:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC+JTlgoa+cfaeOcJtF/53VtIzZIQdx7ME1nYWV2rnpjPYZkFi5/QdVeIYKI1b1oosJEiC X-Received: by 2002:a17:907:50a1:: with SMTP id fv33mr3293589ejc.14.1617194353905; Wed, 31 Mar 2021 05:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617194353; cv=none; d=google.com; s=arc-20160816; b=MVgX0J8dCAFJnz0XTYkMpsqc00AlVoaOk6nDXAqThCAHg3vSzLBjQZms0pDJqOJ4+w +xdCWny0MxaHtp13d30BlZ5ji7F5X4cHapAWWe16c97en5gdUnPfDBB8J31ueu3DBTLi AhVFSchUtswCWwh6pbf/Jlo5KJz5BabCpsYt+sLCWmeBm7z9laQbzQ/emQLcf/xzttbg pn3WBzjBZHNrZpQvrA2jc5oYzcogwk1BL3F8WnydwDEgej9h92JQNVz9BJISwYf6IjbK noIpY9V2F6LXo+xBCxlN1Yu1JvZPu2HJCAuJXwr4sY4WfxfFfuQQF8+AFwo59eFuk77p Az4g== 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=vJET4FnQcbYiDwhOI2Ry9rOQiGq9wzy520QdSTnUuYE=; b=zB12kjYKvUAXBqsvyjFW2tSL64Q0r4Qy89ZoS7hO5qfQ4oBJxag+ENtK7Ur57y8vVf QJFfMTr8mkXX3dhc7Xo41jDSYQCOCAmya1rkKC6qoj64+YpCNJRAVCnlKoyLltK/jhC4 kFiQwHjpAp7SH/UyKdqhBfyrz7TsC6UnnQ9X3/Vpd0sEPdlQuYcfA2vKgc5Rw3rCDKZV dBc/+j/uMfhz8TLr72STYxfG1IsVAa8LvXG7ztOBwFrAejOFCnLeSe+um/tx04MwXfqO uJYscO5LuvmRjtZBxcA5Nv1C80FZJzLgDAClPoJimJ/KfvglVOm+yDbbQGAB9wbkASKD cd/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aHzQqhxE; 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 i20si1567367edq.582.2021.03.31.05.38.51; Wed, 31 Mar 2021 05:39:13 -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=aHzQqhxE; 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 S235558AbhCaMfr (ORCPT + 99 others); Wed, 31 Mar 2021 08:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235573AbhCaMfe (ORCPT ); Wed, 31 Mar 2021 08:35:34 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2157C061574; Wed, 31 Mar 2021 05:35:33 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id t20so7826262plr.13; Wed, 31 Mar 2021 05:35:33 -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=vJET4FnQcbYiDwhOI2Ry9rOQiGq9wzy520QdSTnUuYE=; b=aHzQqhxEYdRUQohUbyzIXbhDgvyBRNiLNhDzG6ju1AMKJ87yl82VxCU8/dhkQUnbT/ LDYtwJHu3LxcFnvc9lqClR/F49PEU5+jMShZPlf2DQ5QTKyDOvlnh9MUsUwV8YKm/dT8 f9SQbdCl5Ut04zZ1iWujstmNISBbfBLxv6AsFFzEaLev6ulPPkSK05KDBgrPw2hKd4r+ WfAJVKtyiFSdp9QnicjQ2TOYBBN7Zdf9hs7qWOYouua2tjZv1350E71T+uXqs8qSEIyg TIJf3aJYMXADPMojD2tvhLhv7NzPPGKL4q5L5osxuPYA0U5KTRMx3HHEi8EDhyKGCdo8 Wh3Q== 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=vJET4FnQcbYiDwhOI2Ry9rOQiGq9wzy520QdSTnUuYE=; b=E8oZYBrQ9XJDd9LmG5cnHxpTJ/v4gpW3NWTgDljWyasJIs9KAVeGeZcc8MWjETtxc2 HUgl8Aj3bQJj7ef1LbvAukecOPbeGcLzxy7GE3R3VDZ8ICEonIeD8FhP/uaS94WnDJRq B30u9cgYDPnr4TDGHw1rfQiQ9Aa3p21aoELX4wUj5x6eXtpVsIPo0NTItyy8IyxoHkey MKh9ic1LgfFFBIfeGNRYhoDq/AiYxCRBEmE5yLYZVVGnYBZyAbvIHiRBeH6rbWkUcKgV diwQH1fxG4hJug+URHx6gnThM+RdUQzHqUpFYIoQDxlUy16U5xHM1luNlk700McbJm38 pRBg== X-Gm-Message-State: AOAM53141ZIfTSx+k5Vuedbnm2m3zj5uYnHygegs8zRcacK8yEb439Tx PuVamj8r6Y7JMv9lNX/dVW9poKrEIQtfg2NF9GM= X-Received: by 2002:a17:902:7883:b029:e7:32bd:6b97 with SMTP id q3-20020a1709027883b02900e732bd6b97mr3073111pll.0.1617194133318; Wed, 31 Mar 2021 05:35:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Wed, 31 Mar 2021 15:35:17 +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 2:39 PM Matthias Schiffer wrote: > > The driver was registering IRQ 0 when no IRQ was set. This leads to > warnings with newer kernels. > > Clear the resource flags, so no resource is registered at all in this > case. ... > /* Assumes the IRQ resource is first. */ > tqmx_gpio_resources[0].start = gpio_irq; > + } else { > + tqmx_gpio_resources[0].flags = 0; Please set IORESOURCE_DISABLED flag in the initial structure instead. > } -- With Best Regards, Andy Shevchenko