Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353108pxb; Mon, 20 Sep 2021 19:50:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwwaI6JQtTiG4QIXCKU3fi6R2cmDj5vfXPIZNWhmHJMeizF+OZ2Gzb+6xTXtxepRfQsy6s X-Received: by 2002:a17:907:7703:: with SMTP id kw3mr31686788ejc.34.1632192658372; Mon, 20 Sep 2021 19:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192658; cv=none; d=google.com; s=arc-20160816; b=Y+y58LXDrx4QYGF0dHcf9Q+waxWJdFZensI1EDxSC4EszB1NzAMrcrwBpiE/JWLH2y AvSmyOB1YCHZJvoZBEUEpR2vGucW+Gc/AFbZrN75cTj8LDoAWZEUQ7G3Y/8uR8kYfRwY GkHCd0c2BBftVjslbdjEQVUvM0yji99BicxTRx+y5JB2EbbBXyZXfBq8LVFJpTWY3Gcu Wter5g8KFhDcnOMVQmhmHRJkWM4Bxd/7AHCiUi0JKd1+R3WhAFpTJHHmeKc1cpA9D/co 9priDmzzbp7x4Afc3H+GO0zIf5MZ1tYpslKdQecL+WroI5ORSkkTIqfAqJQlp85rXSIr iFug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l64ILcK9c+O/RfpE4KKkLGBeI55Oha5vOrCdu9kRHfI=; b=SAQYmhtYXEPJh9XKp+YMYQLcIdvXv66ij+1MmuUv3hkQuUH3kZboxBjoqYiwxcJn0x tXMxpE/PskSi4iAQWNoIAb/XRC3AdBIkO/xnvpC0T6eY7buohyEKVYTbfc1qdTMxsPOP PwPsPcandM6SQ+6aYwfS0zc+RTng3kkZp5zTGtO9CiEnRQlbCpSrRhwU0rZo1P5vOnaH yxEKeaDZJDmig9SGHtNiIw71UZPaI3XjNysYS0Y9yzDj9sNikRLDh1CzGeMWXWagLoby yjOMGqhT6MpZt+IISkgF078EAdOEJLwPzkBioXTBX1hyAcCfdQ0BerAWmOw42Vl2HcyD adtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZqJJFJ8r; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si19517239ejd.625.2021.09.20.19.50.35; Mon, 20 Sep 2021 19:50:58 -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=@linuxfoundation.org header.s=korg header.b=ZqJJFJ8r; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381303AbhITShS (ORCPT + 99 others); Mon, 20 Sep 2021 14:37:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:49240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380078AbhITSc1 (ORCPT ); Mon, 20 Sep 2021 14:32:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48EB5632FB; Mon, 20 Sep 2021 17:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158860; bh=iWpQz4tSFoRFavqd00yNJF85NFFxJrunEhC7CELaIIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZqJJFJ8rxiBaYzHSq025cMZSMDSyfUasHTBdStZLJTlzmbKqNQR+feJ4TMETZ0xI2 vQVR3vLj/o0ZkIK8Eq6uhck6jxjwJOmfHn/Cr40ldeDlqxdNGxlLcYg2MO9W8wDeqo qvX8h24ZLF71v0IVlh9l8Q1cETesxAogE3WCr1Oc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Schiffer , Andrew Lunn , Lee Jones , Sasha Levin Subject: [PATCH 5.10 088/122] mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set Date: Mon, 20 Sep 2021 18:44:20 +0200 Message-Id: <20210920163918.671990840@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Schiffer [ Upstream commit a946506c48f3bd09363c9d2b0a178e55733bcbb6 ] 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 Reviewed-by: Andrew Lunn Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/tqmx86.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/tqmx86.c b/drivers/mfd/tqmx86.c index ddddf08b6a4c..732013f40e4e 100644 --- a/drivers/mfd/tqmx86.c +++ b/drivers/mfd/tqmx86.c @@ -209,6 +209,8 @@ static int tqmx86_probe(struct platform_device *pdev) /* Assumes the IRQ resource is first. */ tqmx_gpio_resources[0].start = gpio_irq; + } else { + tqmx_gpio_resources[0].flags = 0; } ocores_platfom_data.clock_khz = tqmx86_board_id_to_clk_rate(board_id); -- 2.30.2