Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp407373pxu; Tue, 1 Dec 2020 14:29:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+soEXDw1IB/T+0uaXDk5+Lqp0Bs7RCWMXN1Qr9BJC4d6DMKDljjHap7pPAQHMTXgwAGNk X-Received: by 2002:aa7:d354:: with SMTP id m20mr2928252edr.195.1606861787044; Tue, 01 Dec 2020 14:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861787; cv=none; d=google.com; s=arc-20160816; b=jHl5W1FDyoLSjLtfGjdDG0v4UtOXsQMlB03HnKgzj/wjgrK4+OyL/3vrgYGmh2zLJq RITIgD0CUsMGw2NYVjDNoKNRb25shv8lgk5pN7qpIaHIMzElmjVNjGZV/g9fNaq8qk1T QOzgwjoR1EX5Ga0PUuQeK1EZTwJPYvSJESl2LzlX/ll/X6KT21A8t4udWXA7yX+Zr6Va t6AMtEjov9AXt/SZTIiiGIA1DHM0gQp6D2wCt6mKywv17D3Q6wxWzjUOKNGms+6zyjZl BbgHUyaSXXlGENHhNeLLCjiN3JtXBFwSKPuS1/IQqbJ9ibHUr4/8dgVVHmXx06gXDL4Q fmpg== 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=27jGEK9ijTXr79mcJOslWBUbtRHzFzQiavgsZCNg+Qk=; b=zO8c3aYJ/5WqZwKFTvB0mTc9+LTZ63wMJ20hKYDM3q8HC+9s+42TRl24eDkjjB8/Lj s+Uiso919W9mkmwq6GfxiXTX/bW2uwSHt332amRcXtRdtbP8/6zL8Zmg0b7Qkoa8r/jG L9K0ZxwreVlZ0Va+qOoldCVkyzn0Tbixs1EjDnGFaNUET5epZGhF797Srlv8td6Xf297 J2v3C2YAPcsuVyu7XPB0rkng+1mKruKPXSiCpRkp1du/rePj5f5Nh/Fow4yzvK+ftuXL MSX6YJiZWckXMvEupGDO41Y/5bZsnfgEhWBzFHgglK0BM5C94hiZrsk8Bjb+mAeiN60t ATHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tZl9Sxmr; 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 r12si769634edo.212.2020.12.01.14.29.24; Tue, 01 Dec 2020 14:29:47 -0800 (PST) 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=tZl9Sxmr; 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 S2390190AbgLAJOJ (ORCPT + 99 others); Tue, 1 Dec 2020 04:14:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:51926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390170AbgLAJNy (ORCPT ); Tue, 1 Dec 2020 04:13:54 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 AB01F2222E; Tue, 1 Dec 2020 09:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606814013; bh=gecVF6A1+Hy6gwPEBRHTPic0X2KNA1rxrAldAZWhKQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tZl9SxmrVRaaN85CFJW/bmkEhf03bXo7HxYAV8WiVbuJ24xtYKDCicrGUF6n+aHp/ cqv6jnzn2ctRZZ+khzgu95a34ysq/paG/6sxLQEqZH6szqtcN1rDJdbPFfuzX97sJ8 xPmCYuptzMm+68/yCzrYo6dR2MtJkm12W6ZoKaLw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Murphy , Sriram Dash , Pankaj Sharma , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 5.9 136/152] can: m_can: m_can_open(): remove IRQF_TRIGGER_FALLING from request_threaded_irq()s flags Date: Tue, 1 Dec 2020 09:54:11 +0100 Message-Id: <20201201084729.636840217@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@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: Marc Kleine-Budde [ Upstream commit 865f5b671b48d0088ce981cff1e822d9f7da441f ] The threaded IRQ handler is used for the tcan4x5x driver only. The IRQ pin of the tcan4x5x controller is active low, so better not use IRQF_TRIGGER_FALLING when requesting the IRQ. As this can result in missing interrupts. Further, if the device tree specified the interrupt as "IRQ_TYPE_LEVEL_LOW", unloading and reloading of the driver results in the following error during ifup: | irq: type mismatch, failed to map hwirq-31 for gpio@20a8000! | tcan4x5x spi1.1: m_can device registered (irq=0, version=32) | tcan4x5x spi1.1 can2: TCAN4X5X successfully initialized. | tcan4x5x spi1.1 can2: failed to request interrupt This patch fixes the problem by removing the IRQF_TRIGGER_FALLING from the request_threaded_irq(). Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework") Cc: Dan Murphy Cc: Sriram Dash Cc: Pankaj Sharma Link: https://lore.kernel.org/r/20201127093548.509253-1-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- drivers/net/can/m_can/m_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index f3fc37e96b087..c62439bdee28c 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1653,7 +1653,7 @@ static int m_can_open(struct net_device *dev) INIT_WORK(&cdev->tx_work, m_can_tx_work_queue); err = request_threaded_irq(dev->irq, NULL, m_can_isr, - IRQF_ONESHOT | IRQF_TRIGGER_FALLING, + IRQF_ONESHOT, dev->name, dev); } else { err = request_irq(dev->irq, m_can_isr, IRQF_SHARED, dev->name, -- 2.27.0