Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5876530pxb; Thu, 27 Jan 2022 01:10:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE4QEmLemy0DM/P8ZyfSC8xNyYIfWXm92oQmTSnf4rqyarlM8DgDJ5xFjCA4g6dhoN8rU7 X-Received: by 2002:a17:90a:f283:: with SMTP id fs3mr13011762pjb.173.1643274638073; Thu, 27 Jan 2022 01:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274638; cv=none; d=google.com; s=arc-20160816; b=MFrmb/HpgEjyj96kWlC0ctKTh0CaOQdcPBFlFLeV6+a804NQt8TY7VOf1LyOPvfeDy SQNO2tcWhutpcYWxlTFXN8eUKgMJxAUZWjL3exdqvvgjRIiU9XNsGEUjqJ7yTZILOgi6 ywMtnlg8wacdtCd1qoE7Ohbca+FSbsrKR7Onqolv7e9CMDMK2scW13M3VoMVYB44dGIq QomaurImfaGu5gn7C+2VlZzrg8DeugUTaaDzJUpdWyfosaJx0FE2LpxIfwokJkPSLc37 YYhGFryFYDk+ciSgYVFCyGMFzbr16ZX2AZHA/UvU8CWhIJCQN6EH0hkF0FXSUEBK44HQ 2hgA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1RtVQ3rR+MTrZ4lj20Dmzs1Q4KY58TGjcxB1XY3sLA8=; b=Mo9fyyZA0YILBnG3528uopz33KHJVF/U5DZZUed8JXiO2/0TJdfhwJQaSjo0oRdlLp QO5L6fVX3ZY84Qe0thYUIyEDpiD43lnR3uUZ2rLkWz7wlqkTKLsFEwEX+MGp7jaJ8d2o Kx3Kz34fHORNTXM5I/p5ACwvMaTmjFe/dCOusWR5rhz4xdzHj13pnenjZv6YIzwDW+1v zdGGgWiTZTdzTlFf09hoBseYkIvQk93i98NzLwcYkswfSl3EOqBhwSkrZhDkIouj+N7I xOGJ+oRovKdK4VSSYY7Prt7dem8CR+7aGF2tOB7E6sjR2fGzyELCb+ULC+H47tbfyr0a +yuA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay11si4547655pjb.100.2022.01.27.01.10.25; Thu, 27 Jan 2022 01:10:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbiA0B7K (ORCPT + 99 others); Wed, 26 Jan 2022 20:59:10 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:41354 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234726AbiA0B7F (ORCPT ); Wed, 26 Jan 2022 20:59:05 -0500 X-UUID: a1b522c76a374cd2a21daa328e31f79a-20220127 X-UUID: a1b522c76a374cd2a21daa328e31f79a-20220127 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1994771345; Thu, 27 Jan 2022 09:59:03 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 27 Jan 2022 09:59:01 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Jan 2022 09:59:00 +0800 From: Biao Huang To: David Miller , Rob Herring , Bartosz Golaszewski , Fabien Parent CC: Jakub Kicinski , Felix Fietkau , "John Crispin" , Sean Wang , Mark Lee , Matthias Brugger , , , , , , Biao Huang , Yinghua Pan , , Macpaul Lin Subject: [PATCH net-next v2 2/9] net: ethernet: mtk-star-emac: modify IRQ trigger flags Date: Thu, 27 Jan 2022 09:58:50 +0800 Message-ID: <20220127015857.9868-3-biao.huang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220127015857.9868-1-biao.huang@mediatek.com> References: <20220127015857.9868-1-biao.huang@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the flags in request_irq() is IRQF_TRIGGER_NONE, the trigger method is determined by "interrupt" property in dts. So, modify the flag from IRQF_TRIGGER_FALLING to IRQF_TRIGGER_NONE. Signed-off-by: Biao Huang Signed-off-by: Yinghua Pan Reviewed-by: Bartosz Golaszewski --- drivers/net/ethernet/mediatek/mtk_star_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c b/drivers/net/ethernet/mediatek/mtk_star_emac.c index 7fd8ec0fc636..a8fbbbcd185b 100644 --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c @@ -959,7 +959,7 @@ static int mtk_star_enable(struct net_device *ndev) /* Request the interrupt */ ret = request_irq(ndev->irq, mtk_star_handle_irq, - IRQF_TRIGGER_FALLING, ndev->name, ndev); + IRQF_TRIGGER_NONE, ndev->name, ndev); if (ret) goto err_free_skbs; -- 2.25.1