Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1791525pxb; Mon, 8 Mar 2021 06:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJysLSe3DmdMOYf8Q8CeMslwOuZd2aqyfY6vH6qQc6HE0GgJe8JygUdZes/nuQkRBi9nMDN7 X-Received: by 2002:a17:906:7c44:: with SMTP id g4mr15027165ejp.269.1615214008901; Mon, 08 Mar 2021 06:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615214008; cv=none; d=google.com; s=arc-20160816; b=LQ51Xoday1F8RmSpGotToUZUSucJsG35psdwXCsSKU//oYB31pMSdLlXkWfIss8zM4 rNudJRiIgVGGihHBJCjbnqbAsRTeEh81xrwdA6qwY8NQ04CV/ac2cbShlJsKuL0/VCYU IlmcbSBn4HTlWYDXGIO7WZEX7tbJ28xH+jrPNnTpNKJQro1cPUVwxvzlh6jpDK+twZVi 277xTl5j/3k10mxfqMqP63s29fSYxvIGT2wLN6S8XhaOxHb9LV3BbSyUVw00FbQsx0Ka Pa+hTXx4jM8PD40Wre8uXVjkpoWCTxIF5BKhcscbx8n0cXj3yvZRvCJuLuiaafIKViDk gIxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=+yNNAmqOhihHqORvSDbwH3g9YC4UuOeFS/KXyRa94G8=; b=EETnBjefMfuDeE2/q73AKs0CHXCSAik3jFGeR/HmeSqmt1FrJCrrjHbSAh37z/OLpS jlnlgXQOaPae+kdg6RwMP7vphJZVnAdIcLf25t3lmdSIs6Ggr7G6RRU8ceoJas3ldLUC w10FHUMwTUImP2L3ahtch1IxfNrMEgAQjMC9w2twwOw7CobDB1dcWmLg8CO/XZaamvzG 4MGSajvVUvjFt1SjU2ehAygodBa22lYdGwKjBTFPVyMPfufte1/k4CGj2Qj1rhZSF+B8 jXtQArnLV/GePs8zJY8PqBFaEX4HEx9b+kOCta0mYXOyUcBEUhmppnMwOZQU0ToU+yTE YdFw== 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 h6si6941057ejs.315.2021.03.08.06.32.47; Mon, 08 Mar 2021 06:33:28 -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 S229814AbhCHOag (ORCPT + 99 others); Mon, 8 Mar 2021 09:30:36 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:49547 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229899AbhCHOaQ (ORCPT ); Mon, 8 Mar 2021 09:30:16 -0500 X-UUID: c11648237da4410b8d16389ad7ef6373-20210308 X-UUID: c11648237da4410b8d16389ad7ef6373-20210308 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 680947260; Mon, 08 Mar 2021 22:30:13 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 8 Mar 2021 22:30:12 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 8 Mar 2021 22:30:12 +0800 From: Mark-PK Tsai To: , Mark-PK Tsai CC: , , , , , , , Subject: Re: [PATCH v2] irqchip/irq-mst: Support polarity configuration Date: Mon, 8 Mar 2021 22:30:11 +0800 Message-ID: <20210308143011.24538-1-mark-pk.tsai@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Palmer >On Mon, 8 Mar 2021 at 15:05, Mark-PK Tsai wrote: >> +static int mst_irq_chip_set_type(struct irq_data *data, unsigned int type) > > +{ >> + if (type != IRQ_TYPE_LEVEL_LOW && type != IRQ_TYPE_LEVEL_HIGH) >> + return -EINVAL; >> + > >Does this mean we can't do rising or falling edge interrupts? Yes, the interrupt of mst-intc is either level high or level low. Actually the input signal can be pulse, but it will be converted to level by the latch in mst-intc.