Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp229217yba; Wed, 17 Apr 2019 23:39:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN1VryE+pVZrGa/jKFJxZSbZ2KW1+WsFZ6EHH0K//DQISObm1OPjyCA4o8AaemkBDy5sbo X-Received: by 2002:a65:4802:: with SMTP id h2mr80899255pgs.98.1555569565459; Wed, 17 Apr 2019 23:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555569565; cv=none; d=google.com; s=arc-20160816; b=bw3r5Fnmzbvq+TSskrifYw4vdX8KezBlLW1Hbud2U/QyU4hgGdzbj7iT9acinrl0IU t3z1nX2o2HjJjxgKGlTVqodFwh87krjWeuSs+ok/6WMQLaWKQU+GxvMNO0JX/rcnl/Vx ABCA0R9bKE/GS7NuMtoMsnLgtXCTpOQ9HZYWLzglnRE0KRRcCZbqPdQCHzeJHUqSYLTx jpCSB7GmXS85NzO7JuSXovH/kbVLT1ZI8iOT0Bmm37hKphGHnpEH53NF9zmdiu3yROPK VZ/AzvjH0B1I1nscMO82MbeCFmUmhf86sBzL9YDawTpsf61mP7KpmtQbPet7Fds9k100 DGXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=WwM4Y/myAAbRVpUxsa45zIC7A9rgCU+8Cxk/cxD28a8=; b=HKEVKUBUMiOoYs8Nj0cP3WXee5X0j0RPk2gZ3ZqMZ5n34ynCcDuRB4iW2ARdxoEMQ8 DNqwLdcTibxY9YiXMR5Gb13wtLfYBBe+lwq4afg2M23Fswbqul6qRlHB3NL9dsTW5Jxo Oph34F5WFzRCCBWNePwh18PHtjcG4dteJSvDFFVlmgKSElVU0Gj7EY6+W2Zow+8j1016 3dr1BARSoUqnj6sHX++AKfxI3H5gWC2jWUV+HCdlxiAvVCClmaBXHB5PO057k0XxvpDH cRY+68RLd37/A87r6hsHScOOlZnfeuNiBguQzhh20XCyRGTo/RRpRVA6sR3kbiwtWdXz mhSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si1105125pgh.231.2019.04.17.23.39.09; Wed, 17 Apr 2019 23:39:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387980AbfDRGhF (ORCPT + 99 others); Thu, 18 Apr 2019 02:37:05 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:18838 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725836AbfDRGhF (ORCPT ); Thu, 18 Apr 2019 02:37:05 -0400 X-UUID: ad0c928957464d4d901387e7b541e7ea-20190418 X-UUID: ad0c928957464d4d901387e7b541e7ea-20190418 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1571008641; Thu, 18 Apr 2019 14:36:55 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 18 Apr 2019 14:36:53 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 18 Apr 2019 14:36:53 +0800 Message-ID: <1555569412.18628.27.camel@mhfsdcap03> Subject: Re: [PATCH 2/5] mmc: mtk-sd: don't hard-code interrupt trigger type From: Chaotian Jing To: NeilBrown CC: Ulf Hansson , , , Date: Thu, 18 Apr 2019 14:36:52 +0800 In-Reply-To: <878sw97g6r.fsf@notabene.neil.brown.name> References: <155538933003.25108.3338569916935462285.stgit@noble.brown> <155539004923.25108.12499096383277776864.stgit@noble.brown> <1555402302.18628.17.camel@mhfsdcap03> <878sw97g6r.fsf@notabene.neil.brown.name> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-04-17 at 08:12 +1000, NeilBrown wrote: > On Tue, Apr 16 2019, Chaotian Jing wrote: > > > On Tue, 2019-04-16 at 14:47 +1000, NeilBrown wrote: > >> When using devicetree for configuration, interrupt trigger type > >> should be described in the dts file, not hard-coded in the C code. > >> > >> The mtk-sd silicon in the mt7621 soc uses an active-high interrupt > >> and so cannot be used with the current code. > >> > >> So remove the trigger and leave it to be set from devicetree. > >> > >> Signed-off-by: NeilBrown > >> --- > >> drivers/mmc/host/mtk-sd.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c > >> index 4492a4465c0e..14e048239143 100644 > >> --- a/drivers/mmc/host/mtk-sd.c > >> +++ b/drivers/mmc/host/mtk-sd.c > >> @@ -2243,7 +2243,7 @@ static int msdc_drv_probe(struct platform_device *pdev) > >> msdc_init_hw(host); > >> > >> ret = devm_request_irq(&pdev->dev, host->irq, msdc_irq, > >> - IRQF_TRIGGER_LOW | IRQF_ONESHOT, pdev->name, host); > >> + > > change it to IRQF_TRIGGER_NONE | IRQF_ONESHOT > > Why do we need IRQF_ONESHOT. That is for threaded interrupted > handlers... > msdc_irq() clears the interrupts, so ONESHOT isn't needed. > > ??? > > NeilBrown > > I just want to change it to IRQF_TRIGGER_NONE, Since IRQF_TRIGGER_NONE is defined as 0, it's ok to use 0 instead of it. > >> 0, pdev->name, host); > >> if (ret) > >> goto release; > >> > >> > >>