Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1858159ybl; Thu, 19 Dec 2019 04:15:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzZ80D6KceYqnBx9qCfeT+wjoj0oqyV+kWHbd6TMjeFCoP3ZE9tOPF3VVisRfoA85K51BYJ X-Received: by 2002:a05:6830:1716:: with SMTP id 22mr9066540otk.229.1576757738305; Thu, 19 Dec 2019 04:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576757738; cv=none; d=google.com; s=arc-20160816; b=WzfxPI+GugQ0Losgmb7w271yg2rznlqy6wtXEKsVpX7tdU8+R9JlQORPc3w29Opm+b sKyYipBGbFgtahs1yJro4RCwY/Q+WeG2Mm5FUI/a30YZEaRQgOmHkkOrSnRr4UpQ4/eR YC2rl50Ot/TIeXie+trKaGvjULG4gwK6KFObqO33Ko/tgWmJrxGa0IUhNz5M3kThluF0 d9+WW/mOnANbviNO7mQhYlmCiDVV6NxV6yevJOJgAbc6H97sH0Dk2YhYJuBENzbZXLo7 jG4YMe70Dd61XeJPkDcDA8DsJOrH/zjKEVYom5fvFhYtxV2aInkcpZTyPojEk6aJnCQi TTng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=Fg+YDFBWk7QiiKwaxSTMF+kANpI3X+RacZuPrhu09kc=; b=MJGc+tfv180OZ51yy6NqN8FkseYksMVSxPGvUcZTuykqnc7kZDwTzGhI4wqFSQLROj kV6sPNZWsGe+iAHJ79XBZPCdA1U7Kbs9yw9tTy6lxNKbDHY0JOv1o41DWYmm/9VsnRMF G12jqdyBfPgFtp08ioZLyKc8UjvfEuU5A4nXm+gi9VLiQqQHU/SEZJ44YHxDHRzuIhLn dX1c2+KFK3xuiSvtEqqsOXds2JtGPgQpwnyHJmVU3/mRmUm/gqmXrfiR8cGDoBIxuXOc T5tQimwM8q+kRg5TN/UoEf6T1R/iT1Yl7EB/cHOiPaWVS8EYWqjhI2wOl2gCpFh5DLVY JOsA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si3115223oiz.271.2019.12.19.04.15.27; Thu, 19 Dec 2019 04:15:38 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbfLSMOi (ORCPT + 99 others); Thu, 19 Dec 2019 07:14:38 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:39231 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbfLSMOh (ORCPT ); Thu, 19 Dec 2019 07:14:37 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1ihuhJ-00076z-VD; Thu, 19 Dec 2019 13:14:29 +0100 To: Joakim Zhang Subject: Re: [PATCH V2 0/2] irqchip: add NXP INTMUX interrupt controller X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Dec 2019 12:14:29 +0000 From: Marc Zyngier Cc: , , , , , , , , , , In-Reply-To: <1576750865-14442-1-git-send-email-qiangqing.zhang@nxp.com> References: <1576750865-14442-1-git-send-email-qiangqing.zhang@nxp.com> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: qiangqing.zhang@nxp.com, tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, linux-kernel@vger.kernel.org, fugang.duan@nxp.com, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-19 10:21, Joakim Zhang wrote: > Hi Marc, > > Registering domain for each channel is indeed a bit unreasonable, > I have > changed the driver to support only one channel (channel 0 by default) > as > muti-channels is designed to route interrupt to different cores. The > fixed > channel is enough for us. But that's not what the HW does, right? Next time, you will post the patches that enabled multiple channels, and the interrupt specifier will have to change, which will impact all existing DTs. So please do the right thing from the start. Add channel selection to the interrupt specifier. Pick the right irq domain with a .select() callback, and your driver will magically work. Thanks, M. > Thanks for your kindly review. > > ChangeLog: > V1->V2: *squash patches: > drivers/irqchip: enable INTMUX interrupt controller driver > drivers/irqchip: add NXP INTMUX interrupt multiplexer support > *remove properity "fsl,intmux_chans", only support channel 0 by > default. > *delete two unused macros. > *align the various field in struct intmux_data. > *turn to spin lock _irqsave version. > *delete struct intmux_irqchip_data > *disable interrupt in probe stage and clear pending status in remove > stage > > Joakim Zhang (2): > dt-bindings/irq: add binding for NXP INTMUX interrupt multiplexer > drivers/irqchip: add NXP INTMUX interrupt multiplexer support > > .../interrupt-controller/fsl,intmux.txt | 28 ++ > drivers/irqchip/Kconfig | 6 + > drivers/irqchip/Makefile | 1 + > drivers/irqchip/irq-imx-intmux.c | 240 > ++++++++++++++++++ > 4 files changed, 275 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/interrupt-controller/fsl,intmux.txt > create mode 100644 drivers/irqchip/irq-imx-intmux.c -- Jazz is not dead. It just smells funny...