Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4407418pxa; Mon, 10 Aug 2020 08:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCIZguJLKaHPnI4XKENjayLgb9PcyTPfdeS7zOr7mPPpJhg3BLBiTmbgnbUlnGy91JDC0M X-Received: by 2002:a17:906:f24c:: with SMTP id gy12mr21615953ejb.275.1597073021725; Mon, 10 Aug 2020 08:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597073021; cv=none; d=google.com; s=arc-20160816; b=H47afHMz+XDPfEEMxwczL2zeAx3lQO0u2/0Qe0phoUjv7+FNPAq3PiFEW2uec+lAM/ HKzA6Iii9RzgMqTrTYVikFt1oNhU50dPWQVIBee8+32S/GTrKbO3N63FHVFZmNFmFvEG SOLRZfNIFBf7srj23SN1RRU2p7VCcAtayJSfu8oVBYjVa+AJkMMMxFmgjsVjIokkEHYe OYTJk9aSkM9JkdHIgHIkZaBtUSOAL1N5F/st8C79H7PtJ207OZvEtrD2aLk17AmIa7cM h8bvrN4pxeMYTqpBg8yJdCJpPQgfjcv1b1CMqo/o/fykDx0XcTeBDUs/xZsyy48vKc9m ff2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/0FHfG0TH2H4baS5aqCOIcM7hmLzuOSyphl+7sYiRZU=; b=GRSplHooRV8ADpkE3yeWanSrgoGGKha460TIaWJz/Np/gZDFjzQxEoB5GB5h2ydTEv HendXRQW0OKRJ/ymhCumtK9NHkseiHUN+pxRLJ83QnL+UAvh3MNbfwl8Ok5Rul0je6r8 zv8k5EaEg6eYXr04vFNyASdFTaQU/t7NaeK0zFdZeuO0K7S0C6gRnn7WrI3f3ht2/gyA BTyXpWAvjiNCVrqpLqe6NU8UaeBoq7cTkwKaDibTeIvH8f4FRhOOeh9Fpcoj1nkmKUuD S3GqbujgitnuIeDG3tolkydtNF12dCtEreWYi1ZbYdJp3DhsX+fM4F7GEyKoJ3rUx+lQ nKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uFB7H72m; 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 w26si11132246ejv.328.2020.08.10.08.23.18; Mon, 10 Aug 2020 08:23:41 -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=@kernel.org header.s=default header.b=uFB7H72m; 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 S1728190AbgHJPVs (ORCPT + 99 others); Mon, 10 Aug 2020 11:21:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:50764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727969AbgHJPUX (ORCPT ); Mon, 10 Aug 2020 11:20:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 036222075F; Mon, 10 Aug 2020 15:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597072822; bh=FVS1rwU/d7kpluk2AmFSvZlK16GV3N0vXDMvPzBHcPY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uFB7H72mf53Qt8WpmRE9fWEEtrh+TdiXM7azOm/9qIlr+EvH3Y6iLuFmS/aXz/T0E 5uXr/Sf6iTA8jugTwv+4TZHWMfoFecg77wp1o/yf6r2M9ClQoxbPlhDmujCaaVLLNo V4kS/9xC2/ORXdvtSToi8RO6BarQqhpULseqsFi4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Andy Shevchenko , Laxman Dewangan , Linus Walleij Subject: [PATCH 5.8 30/38] gpio: max77620: Fix missing release of interrupt Date: Mon, 10 Aug 2020 17:19:20 +0200 Message-Id: <20200810151805.396220448@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151803.920113428@linuxfoundation.org> References: <20200810151803.920113428@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Osipenko commit 2a5e6f7eede8cd1c4bac0b8ec6491cec4e75c99a upstream. The requested interrupt is never released by the driver. Fix this by using the resource-managed variant of request_threaded_irq(). Fixes: ab3dd9cc24d4 ("gpio: max77620: Fix interrupt handling") Signed-off-by: Dmitry Osipenko Reviewed-by: Andy Shevchenko Acked-by: Laxman Dewangan Cc: # 5.5+ Link: https://lore.kernel.org/r/20200709171203.12950-3-digetx@gmail.com Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-max77620.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/gpio/gpio-max77620.c +++ b/drivers/gpio/gpio-max77620.c @@ -305,8 +305,9 @@ static int max77620_gpio_probe(struct pl gpiochip_irqchip_add_nested(&mgpio->gpio_chip, &max77620_gpio_irqchip, 0, handle_edge_irq, IRQ_TYPE_NONE); - ret = request_threaded_irq(gpio_irq, NULL, max77620_gpio_irqhandler, - IRQF_ONESHOT, "max77620-gpio", mgpio); + ret = devm_request_threaded_irq(&pdev->dev, gpio_irq, NULL, + max77620_gpio_irqhandler, IRQF_ONESHOT, + "max77620-gpio", mgpio); if (ret < 0) { dev_err(&pdev->dev, "failed to request IRQ: %d\n", ret); return ret;