Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1564126pxv; Fri, 2 Jul 2021 06:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg4UfXZc40z1HLyrB02L2kmNL2kPI/2x1IyMmWB5gTHh/jjI/l0HA7D5bqFAx/8tXOVAVN X-Received: by 2002:a5e:c10e:: with SMTP id v14mr126353iol.158.1625234088748; Fri, 02 Jul 2021 06:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625234088; cv=none; d=google.com; s=arc-20160816; b=lH1yXaNpZAtIZEZiton5mCmsJ2Sv2gqNNy5/7NszgGRPfRk6ENSSRTp/ty2buO/ne7 e3D1fKGfIL2VCVEJW8/w3Qjls7XKKC00YG/p+IPb5OO5+j/FgjmaK+U4eERG9vKmHd0O 9gasdg/x2mJfFY8MMrfZr6C7eXC1kc/wYCAE6GP7jwpUmcux4vPG7zqgABiePYpIZpQ4 dQKFd1T6L6Z7UZYYdneB12AJvu7RzoQk523RbrC89hNa6iZPTJS4IcM+u5qRMQ9zMtVR MyaYqoQy3b4mhURxUS39x1TCOX5laaiUnRBq9hEl0KWBz1tLjYWK7xo0eT2G7Y6Ii/6a IKbA== 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:dkim-signature; bh=mNyNvw8av9TSdQw6xty8iSp9mx3JvoRXFPvfkook/Ag=; b=BA/mlWKfZaP7UHiReHuNwxLHWvqT7HqYqfs6Fgd+tmzkYVvHquSElvLtpwpSeoxeRX F1qZZOHbz4yeq75OOTyA53h/8f8QqdZtlp71E+SaEXO7fUYMIpllN3Lh/Un47u9rP8v1 Q6W8xiNR+cnb239TnWebXgIBdBkYVVbuHqJLUZmlBUGLoO0g70DLt+xWv/iN5mxzMKbN CUtauqwYnU9fHMjyWFh1DtAWpF2vgN2uLJNDB7nN7taKtSCezpfU0iZ90K9wHxHfS/1W z1X39Z69V1m7dyrRBWONyRr5p3mjTxtnM2cSQQzzypCgipy9y9WV9HOzQ0vKET4QYncw TPig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="p/PVYpcG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si2691872ilu.9.2021.07.02.06.54.36; Fri, 02 Jul 2021 06:54:48 -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=@lunn.ch header.s=20171124 header.b="p/PVYpcG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232614AbhGBNz1 (ORCPT + 99 others); Fri, 2 Jul 2021 09:55:27 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:37484 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbhGBNz1 (ORCPT ); Fri, 2 Jul 2021 09:55:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=mNyNvw8av9TSdQw6xty8iSp9mx3JvoRXFPvfkook/Ag=; b=p/PVYpcGbLgCM9zLEuzjzbGfCb tKQgeDDYQjURx3cnnU9AE9V7cHa4RAZCQg2wY2Ui1e4xIJ8NEOtApNMjgtGgtgZ5XDbhoR14Iu/4o pz0UeWn8jU7qM/NqZ9AKE4gDbjFE8/z52z1efD3fGNjrgFu07TkNB1sCXhu4OnUF5ZZ0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lzJbA-00BvKr-42; Fri, 02 Jul 2021 15:52:52 +0200 Date: Fri, 2 Jul 2021 15:52:52 +0200 From: Andrew Lunn To: Matthias Schiffer Cc: Linus Walleij , Bartosz Golaszewski , Lee Jones , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/7] mfd: tqmx86: clear GPIO IRQ resource when no IRQ is set Message-ID: References: <25ee92527847b2fa15e2c82ca486a92b4fd1d44e.1625227382.git.matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25ee92527847b2fa15e2c82ca486a92b4fd1d44e.1625227382.git.matthias.schiffer@ew.tq-group.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 02, 2021 at 02:23:48PM +0200, 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. > > Fixes: 2f17dd34ffed ("mfd: tqmx86: IO controller with I2C, Wachdog and GPIO") > Signed-off-by: Matthias Schiffer > --- > > v2: add Fixes line > > Andy recommended to use IORESOURCE_DISABLED instead, but this doesn't > have any effect for platform_get_irq(), so I'm resubmitting this patch > without functional changes. Grepping for '\.flags = 0;' shows other > drivers doing the same. IORESOURCE_DISABLED seems to have an odd meaning. It seems to be about ACPI and the resource needs to be enabled before it can be used. So .flags = 0 seems reasonable. Reviewed-by: Andrew Lunn Andrew