Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1241061pxb; Fri, 21 Jan 2022 13:08:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFxdBoAehyYJT6tGNHOQzz1CQ3vyCcmP15VzMpULjpTFbzUl0PiA71j6YuB65OdA2E35r0 X-Received: by 2002:a63:c65:: with SMTP id 37mr4165344pgm.608.1642799312299; Fri, 21 Jan 2022 13:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799312; cv=none; d=google.com; s=arc-20160816; b=WFie8l1IGwi1y6qPaDirSxjk60OoxWXuUI87rMFN4aae+649qYt/pmEu672Vrpzezo drN8kmUFU9ymxklEULYZtoTY73A7ZWRGcYlqF0PwucmsLtGbHg8kB+VjaznS1okCtEui m7sOHd8T0Jcr2enc8LBvOaHvznOo379Mx7Yfy86T046lP7OK0VimWcexu9fg7/37viFO fAw8OQHIJFwFBGadILdr64yICEBav/lT/uRF/DL2+ebWLftyvGTgDJtvb9Qls+qgfOmN 8Y96KU/MdOTFfl9WIUo4RsFpzQaP3+OcEVidpZqtTePWx3MYQ5QbzV6lzOA6y6B6d25c nlAQ== 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=nytoPlL1NVAYmVzQeAHEu4/gX7soHREOAfr2ohi9Mzk=; b=hjOVnyJ1tVI0kh6i/80ecWaWsm+PHMvNMHjovj5eaDsR9RrqatUn2zrYMGb5pmjpIu rEHkdtNT7J2YwTTZs/ac0cUe9yzSc9awB3JRqs4epX5l+x9qLT5Lj5+5obGFSIj9E/4B TtB2KngdtTD/LCnasGEvKkT+T6Kjgfy78PkVeVYsy2QcTRgdAUiA1OzaUjxDA1TRtD6w 2L0ZpadNUc/p+YjKtqgTR2PDQK4wXY9yeDm8n+Ysmh6CNhDgy/lk6KDRWnkiTwIO9dUh CpQXIFQEeHL9wxJdPp4B7cCgZfnjtQdf+BL7eCh6ZNG3E9qJq6LLjoqhypNj644Fs7wt Kxrg== 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 f6si9463312plg.414.2022.01.21.13.08.20; Fri, 21 Jan 2022 13:08:32 -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 S1358863AbiATHCm (ORCPT + 99 others); Thu, 20 Jan 2022 02:02:42 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36982 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231164AbiATHCg (ORCPT ); Thu, 20 Jan 2022 02:02:36 -0500 X-UUID: c9ea2c34de6c4365a00d3a7fd3875a34-20220120 X-UUID: c9ea2c34de6c4365a00d3a7fd3875a34-20220120 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1459904077; Thu, 20 Jan 2022 15:02:33 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 20 Jan 2022 15:02:32 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Jan 2022 15:02:31 +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 v1 2/9] net: ethernet: mtk-star-emac: modify IRQ trigger flags Date: Thu, 20 Jan 2022 15:02:19 +0800 Message-ID: <20220120070226.1492-3-biao.huang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220120070226.1492-1-biao.huang@mediatek.com> References: <20220120070226.1492-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 --- 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 26f5020f2e9c..7c2af775d601 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