Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7259720imu; Tue, 22 Jan 2019 03:06:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4P1k4TGkrE58bpWu07/EF2WPadEsSCOSP7bmRIvtYYtvjdjvlvJ18DQii4j0dPPYNv4WY9 X-Received: by 2002:a65:5c4b:: with SMTP id v11mr31443818pgr.333.1548155216799; Tue, 22 Jan 2019 03:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548155216; cv=none; d=google.com; s=arc-20160816; b=SqZ+yPG1WjoShh0vW9MQXy49aCuss0/9P2TGkz4xHycxHqPmPB1ZThrw5ZNDkqW/72 nIAXLsFgTPJ//U0EAfCoKFRDVMwca2fzAhdUP/SEmLJ+soPYlE+iyEFJlpUFfYAQLPEz ocLIa42pAbX+G9dq7I+HHa8D2osCXHSR//u3g+2/LolZHKyJpiE6B69GrXMg+SSif1lb HulXgARvNb3dEOt/DvmcEU6SycCM1puu19jr9mKLEpwaN00DnSPCAS7IlcoToSAnbE4j Y6Nb5lo1eSgebgp05wCeChuEHuRlLliWbc4ZOU1BcdMjLF+lm2Jdzhxc0F0DKgxZcgJZ qRBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=3idlg3SPvGO+h2KawDGZT5yNwOUyPwE36kz600Kh/8k=; b=ZBfjMq7exoxN/R+9FO4oXgHB50NSD5UITgv+uuj0Z5EpsvhjF+4vfMyYCuXElXrrYy 3WxYyZo+9z/sxcR4hmPG4K5iFh42O3jC7OEz4rD2buF9CuZGtw32by/gJc3EHfKhzQl6 WpECjCB86Rfqlead3XbS+ZCJjgFP2hVnfx7HoHcTSX8XZxw33mUbVkuKVz8ZjC+OtiVP Sjb/MyCZIOdIcQs+BIWgc+P4FClY2bPtyn8cJmgOTHmhqcdSoqQv88dqCiSAH4NyWmmq QXe/MThVvLI4HLVtNTYVi0MjtokRSoGQ39d3sLqy+0LfHpE5RhYvYWEOiMK9tyfxaMyU Fyng== 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 r28si13545697pgm.317.2019.01.22.03.06.40; Tue, 22 Jan 2019 03:06:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728026AbfAVLFY (ORCPT + 99 others); Tue, 22 Jan 2019 06:05:24 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58817 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbfAVLFY (ORCPT ); Tue, 22 Jan 2019 06:05:24 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gltrt-0007S5-D8; Tue, 22 Jan 2019 12:05:21 +0100 Message-ID: <1548155121.2465.22.camel@pengutronix.de> Subject: Re: [PATCH 1/4] dt-binding: irq: imx-irqsteer: use irq number per channel instead of group number From: Lucas Stach To: Aisheng Dong , Marc Zyngier , "linux-kernel@vger.kernel.org" Cc: "linux-arm-kernel@lists.infradead.org" , "shawnguo@kernel.org" , dl-linux-imx , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "tglx@linutronix.de" Date: Tue, 22 Jan 2019 12:05:21 +0100 In-Reply-To: References: <1547797668-30342-1-git-send-email-aisheng.dong@nxp.com> <1547797668-30342-2-git-send-email-aisheng.dong@nxp.com> <1547801291.2626.3.camel@pengutronix.de> <45c7e5b6-26bb-81b1-093b-96312a1788ec@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, den 22.01.2019, 10:56 +0000 schrieb Aisheng Dong: > > > > From: Marc Zyngier [mailto:marc.zyngier@arm.com] > > Sent: Friday, January 18, 2019 6:12 PM > > [...] > > > > > > > > From: Marc Zyngier [mailto:marc.zyngier@arm.com] > > > > Sent: Friday, January 18, 2019 5:39 PM On 18/01/2019 08:48, Lucas > > > > Stach wrote: > > > > > Am Freitag, den 18.01.2019, 07:53 +0000 schrieb Aisheng Dong: > > > > > > Not all 64 interrupts may be used in one group. e.g. most irqsteer > > > > > > in imx8qxp and imx8qm subsystems supports only 32 interrupts. > > > > > > > > > > > > As the IP integration parameters are Channel number and interrupts > > > > > > number, let's use fsl,irqs-per-chan to represents how many > > > > > > interrupts supported by this irqsteer channel. > > > > > > > > > > Sorry, but total NACK. I've got to great lengths with dumping the > > > > > actually implemented register layout on i.MX8M and AFAICS the IRQs > > > > > are always managed in groups of 64 IRQs, even if less than that are > > > > > connected as input IRQs. This is what the actually present register > > > > > set on i.MX8M tells us. > > > > > > > > Also, I'd really like the DT bindings not to change at every release. > > > > So whatever change (if any) has to be done for this driver to support > > > > existing HW, please make sure that the DT bindings are kept as stable as > > > > possible. > > > > > > > > > > Sorry I should clarify it a bit. > > > There's still no users in Devicetree. > > > So I guess we can update it, right? Or not? > > > > What do you mean by no users? This driver is in 5.0, and I assume people are > > using it one way or another. Not having a platform in the kernel tree is pretty > > much irrelevant, as the kernel tree is not a canonical repository of existing > > platforms. > > > > I understand the concern. > Theoretically yes, but it's very unlikely that there's already an out of tree users > wants to use it for a long term as we're still at the very initial stage. > > And the most important reason is that current using actually is wrong. > We can also choose to mark it as 'depreciated' and keep the backward compatibility in driver, > but I'm not sure whether it's worthy to do it as we may add a lot ugly code in driver > benefits no users. > > Ideas? I'm all for doing a breaking DT change now. The binding is significantly different from the downstream one anyways and I'm not aware of any upstream users that wouldn't be able to cope with a change at this point. I want to reach a conclusion on the discussion about how the HW actually works and is configured in reply to Patch 4/4 first. Regards, Lucas