Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4259007pxb; Tue, 25 Jan 2022 06:52:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJys9H+TGjxvPB7YK/3R8mdoQuhO2UTPEwRGbWs/srh6x26JHRQu/ztTewoM3oPlqGBTYuhz X-Received: by 2002:a05:6402:11d1:: with SMTP id j17mr15285982edw.225.1643122360450; Tue, 25 Jan 2022 06:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643122360; cv=none; d=google.com; s=arc-20160816; b=b3tkvKkkYIuutmnHoiimVUC4Icna/TVMVIF3nXh9zuMy0eyHOFUxE2cJetq2NVdUvi iSre/7yofZhGJRbIj4kCjpJ4jdLPN2lRP2z7p9aIHUAMJO8LNGItQrQDInwquClV6Hq8 MvAvHKgAWOMjQla70QQMU3HEkCUz3JB3Ot+ZeFs6LuAlNC572kiMRUzU5KjaTEUfL0+O ce0vN5gw4Py0Z9g8eDI2tTRXzA1pUd7Qr5Xa1/JtNkWXVyEUyFQ4cVYNzGw9rOGkX908 3f0SRGMOLDLMVqqNrT6Psps50PKlENJrimzoONemfZIvboYUz10RiiwOjxboc35vA6wu tlRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mXvXXH5NkD3VAbxPYQLS+yBdXysPjN86vINvSbtOAUo=; b=OhNY+oyCKpNkudmy8B5vo26QG5DLNWJmDnx4+tWyLoiPJNY6oV+ysSvYkqTFKd3dp/ 54KRVB7+OeROWz0jTqz0J297DUKgAXTV28bWCBSeKJmcUt4bHVmsLauoNfUCdfxvsmBi 1F5E7Fxo6wZaNT/KcLJHzIagHfDnvqEuZsn/u8ZDTV7CsjVoK6WDO3Lhf0rqISk9MDjF M0UUKh77BpP7dQik2GD3WDY95Oz9cZj2mWfrSmMU3pe9Lcdw4o5vrftu+D/u43nbqx2v CMryWzEXUq/fU9waOEYW2MOOD0AZw5x/akf/sHl0nk1iEvs/rQvh7VQhFF5H91LVdfp1 XnRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=pDneXHtf; 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 gs13si11108970ejc.524.2022.01.25.06.52.14; Tue, 25 Jan 2022 06:52:40 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=pDneXHtf; 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 S1354863AbiAYK0u (ORCPT + 99 others); Tue, 25 Jan 2022 05:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348649AbiAYKXC (ORCPT ); Tue, 25 Jan 2022 05:23:02 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BCDC06175B for ; Tue, 25 Jan 2022 02:23:00 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id d10so29566882eje.10 for ; Tue, 25 Jan 2022 02:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mXvXXH5NkD3VAbxPYQLS+yBdXysPjN86vINvSbtOAUo=; b=pDneXHtftHaFd0QpxVSQgYZJ/r85V/t7o7isVF9jWMXmK6UBInq4U2qhRaHN9SwHWb +0+uu2yDz4gyvRd8ExR0Y5Gr6hHRYuo4GHXw+g4H8G7bB6zqppHg6WqlXl5CPg59NNdl 6/qXOtTbqvTSRLzAgl1zCdDRoM9RZCFoQDlE/H8a4ZGMQWkqHsuSAFhM72EqI+RmXBxs 9nIPmmd06u2ezVi3XwxyrvGbsohdc1lF/NPzkPidacBVKieVvp6qL2elTUErmY1JIANy e1NfXcC10p09JorqT1p5lV33SQaKg3ODW8x+wi8GN4EQbYUNiklzMJjHAiVmlss+XzGr OygQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mXvXXH5NkD3VAbxPYQLS+yBdXysPjN86vINvSbtOAUo=; b=08Cpx9Yb1A6OUUAhrPqwCgup8lTzcvwy9afLIHLhToZJM52FUqzL2ZmLmsu7igGS8j baJN/DzlV6YTVsX3owRhW3zunSpsBkFp9Amj7Z93gQg68Ur977DmVbFn4qzGnX9qo8pT jXE3/8+x8krHiNWH1EYPPU2vBGYwa20LcWulMT2gO6f5zSnIZithJfGI7djBaqvY7Zfk dJ3c/raSPl1ctFlD67cWggE7q5Jl7WDCDVTxwuDcQI3w3RX02eLgJ7/2OV8cG036nQs2 6Z5GesIZQ2CEm2AuQovC7pO4r/0mMgaOIl4/2RMz70fSQqp6myF2JGOkVNdRqBYyl70+ 0MGQ== X-Gm-Message-State: AOAM533nErTjqeYZBqGpNqitoBhjPeX4EOEKp6eqA5GXmVaWAsaI1Aky D5SiP+j3iRanRvI1ymydnEiebv5rUmcU5McEgxfPUZiVLmo= X-Received: by 2002:a17:907:3f93:: with SMTP id hr19mr16043123ejc.697.1643106178771; Tue, 25 Jan 2022 02:22:58 -0800 (PST) MIME-Version: 1.0 References: <20220120070226.1492-1-biao.huang@mediatek.com> <20220120070226.1492-3-biao.huang@mediatek.com> In-Reply-To: <20220120070226.1492-3-biao.huang@mediatek.com> From: Bartosz Golaszewski Date: Tue, 25 Jan 2022 11:22:48 +0100 Message-ID: Subject: Re: [PATCH net-next v1 2/9] net: ethernet: mtk-star-emac: modify IRQ trigger flags To: Biao Huang Cc: David Miller , Rob Herring , Fabien Parent , Jakub Kicinski , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Matthias Brugger , netdev , devicetree , Linux Kernel Mailing List , Linux ARM , "moderated list:ARM/Mediatek SoC..." , Yinghua Pan , srv_heupstream@mediatek.com, Macpaul Lin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 8:02 AM Biao Huang wrote: > > 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 > Reviewed-by: Bartosz Golaszewski