Received: by 10.223.185.116 with SMTP id b49csp1077048wrg; Sat, 3 Mar 2018 14:55:33 -0800 (PST) X-Google-Smtp-Source: AG47ELuV3ZZV4qILHQ9JRsMXU8mdYM5VVFHSKTL7L6G+Y5Yv4beLvGWgRoFqUHqoAp0r65W2RHm8 X-Received: by 2002:a17:902:8f89:: with SMTP id z9-v6mr9044723plo.370.1520117733397; Sat, 03 Mar 2018 14:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520117733; cv=none; d=google.com; s=arc-20160816; b=gv/b1O3lfyvT8eQKWtLN3QKDB78gCxixIUbe+44dzkdHYJ7ydcxb1Wayd2XP6plhak 0nKF1P8AgGoWheYYUEAakakb9C48YERzh40sRPWBJV+YBjrg3wsPJ2a5cio9kV56J/Rs QSfXgtAuO4GXj7lQ5QxXLpEAM0v0UIrkfb4Z2DpMClK8vc56GcfC1X1flRjGh1lUgl7T +Itpzv4ac6FlYbqlGypJDrveL8xNTl9UqIN6SuqCZ4OrznXPE7nevS2hoIzde0Hrp+mL H70Fr2f+8/UJzRFWoM29wkFFS8jba9PbHYx7wq4/o51DygiHsVk3L9cQdI9JS9Of49Pq AKpA== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=PaKcdpbW1hbimSjbSQ7UnGN8UKdc3Pn8mV5cd4M3NUE=; b=zcDzrCFu0HzkDE3ZMYHw8B9ern0lznJwaADC+BW/4Hk4g65BeTdGIlm5O038DBM3No DZQJTjhINye2ne1J3AfLPXzfzpKi8XQcmtJXkUh/66dEMXscQIZU0mZof9JLZ3avCv8O T9RiClyIhpKahIWOrjFMW7UOnw6DWO7pVkAPTTE/AntcQwaeb3k0KuXSzxUXvfZO1MaE kGCZxFyE37eNZmIHlBnhjD2wsvL1l6XK+hyNWZ84z6E+QQTMQdh9lUEzehsqSBDajDmG 7zWhvXamahjwmWpLjJDd/+QwIzF64cYFkMf9rYJYvH2NFCGJVpAGTQgQqj+1C/p+fNG0 sJ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LuC1HtbB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si7395512pfg.96.2018.03.03.14.55.19; Sat, 03 Mar 2018 14:55:33 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LuC1HtbB; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935408AbeCCWyl (ORCPT + 99 others); Sat, 3 Mar 2018 17:54:41 -0500 Received: from mail-by2nam01on0095.outbound.protection.outlook.com ([104.47.34.95]:48488 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935389AbeCCWlC (ORCPT ); Sat, 3 Mar 2018 17:41:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PaKcdpbW1hbimSjbSQ7UnGN8UKdc3Pn8mV5cd4M3NUE=; b=LuC1HtbBV5nFCMxtN78TKdpGKqAcS4FnaxLxpXUfJ/RRiEaTtyARgQvx72illg3EENCRIWm9JTbf1SLGBFDD1+R/Sz8sBZViY0aqFo6wtPRkJuBOoslOGg7ybDczetVYuhA4+huX9OlVbdJbSQfeEH/cxlvtK3q8IGQbfSSnW/M= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB0940.namprd21.prod.outlook.com (52.132.146.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.5; Sat, 3 Mar 2018 22:41:00 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:41:00 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Linus Walleij , Jonas Jensen , Olof Johansson , Sasha Levin Subject: [PATCH AUTOSEL for 3.18 12/63] ARM: dts: Adjust moxart IRQ controller and flags Thread-Topic: [PATCH AUTOSEL for 3.18 12/63] ARM: dts: Adjust moxart IRQ controller and flags Thread-Index: AQHTsz+f48pSv4kpDkCxcMm7mZ6Zlw== Date: Sat, 3 Mar 2018 22:33:15 +0000 Message-ID: <20180303223228.27323-12-alexander.levin@microsoft.com> References: <20180303223228.27323-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223228.27323-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB0940;7:+02DS39IJXW+4MDzHp3m0zO24vop+WBSRhZc7sTNa57SNAM+iU4UyHesqu617BRu8kFam2T8K1q7HTWwXzdpIZZSe6FunDdDQYHOMWjrKQjpIprX9B84CWwHqg91AXMQx630gw3lz0p9clsy9EX8a6+i125EQb0e6DnlJpesc2c3/Gcm6Vr5fovwJz6Qpv0W9jsryOcQKfkJaoJW2JbK0yGR1vuIBv40TYcq/aC3KW1nemDgaKKdePagxmo6PdPw x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 97c57687-cbe7-4692-58d7-08d58157d65c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7193020);SRVR:MW2PR2101MB0940; x-ms-traffictypediagnostic: MW2PR2101MB0940: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231220)(944501244)(52105095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MW2PR2101MB0940;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB0940; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(346002)(366004)(39860400002)(396003)(199004)(189003)(106356001)(68736007)(6486002)(25786009)(22452003)(6436002)(186003)(2906002)(81156014)(81166006)(10090500001)(66066001)(8676002)(36756003)(6512007)(39060400002)(2900100001)(316002)(97736004)(59450400001)(102836004)(53936002)(6506007)(3280700002)(26005)(4326008)(5250100002)(305945005)(2501003)(76176011)(2950100002)(86362001)(99286004)(3846002)(72206003)(14454004)(3660700001)(478600001)(1076002)(5660300001)(10290500003)(6666003)(6116002)(7736002)(86612001)(107886003)(110136005)(54906003)(105586002)(8936002)(575784001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB0940;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: vZLk3o7v8vjNUBjEaZOv4dv+txJg/17ry2QzLNFffuRe31DSF+yxUOr5koaopMB1V4nLZrNC3rC2o0WbIZ7g7BHtnbx6IfMQNjkgAI91gcuBy8+TolUmSGArEJEdSG8+yPs+8mDC4G1xytTHFnJ/3wHk71jQimAjTlOtMtAAw+E= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97c57687-cbe7-4692-58d7-08d58157d65c X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:33:15.9816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB0940 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij [ Upstream commit c2a736b698008d296c5010ec39077eeb5796109f ] The moxart interrupt line flags were not respected in previous driver: instead of assigning them per-consumer, a fixes mask was set in the controller. With the migration to a standard Faraday driver we need to set up and handle the consumer flags correctly. Also remove the Moxart-specific flags when switching to using real consumer flags. Extend the register window to 0x100 bytes as we may have a few more registers in there and it doesn't hurt. Tested-by: Jonas Jensen Signed-off-by: Jonas Jensen Signed-off-by: Linus Walleij Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- arch/arm/boot/dts/moxart-uc7112lx.dts | 2 +- arch/arm/boot/dts/moxart.dtsi | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/moxart-uc7112lx.dts b/arch/arm/boot/dts/moxa= rt-uc7112lx.dts index 10d088df0c35..4a962a26482d 100644 --- a/arch/arm/boot/dts/moxart-uc7112lx.dts +++ b/arch/arm/boot/dts/moxart-uc7112lx.dts @@ -6,7 +6,7 @@ */ =20 /dts-v1/; -/include/ "moxart.dtsi" +#include "moxart.dtsi" =20 / { model =3D "MOXA UC-7112-LX"; diff --git a/arch/arm/boot/dts/moxart.dtsi b/arch/arm/boot/dts/moxart.dtsi index 1fd27ed65a01..64f2f44235d0 100644 --- a/arch/arm/boot/dts/moxart.dtsi +++ b/arch/arm/boot/dts/moxart.dtsi @@ -6,6 +6,7 @@ */ =20 /include/ "skeleton.dtsi" +#include =20 / { compatible =3D "moxa,moxart"; @@ -36,8 +37,8 @@ ranges; =20 intc: interrupt-controller@98800000 { - compatible =3D "moxa,moxart-ic"; - reg =3D <0x98800000 0x38>; + compatible =3D "moxa,moxart-ic", "faraday,ftintc010"; + reg =3D <0x98800000 0x100>; interrupt-controller; #interrupt-cells =3D <2>; interrupt-mask =3D <0x00080000>; @@ -59,7 +60,7 @@ timer: timer@98400000 { compatible =3D "moxa,moxart-timer"; reg =3D <0x98400000 0x42>; - interrupts =3D <19 1>; + interrupts =3D <19 IRQ_TYPE_EDGE_FALLING>; clocks =3D <&clk_apb>; }; =20 @@ -80,7 +81,7 @@ dma: dma@90500000 { compatible =3D "moxa,moxart-dma"; reg =3D <0x90500080 0x40>; - interrupts =3D <24 0>; + interrupts =3D <24 IRQ_TYPE_LEVEL_HIGH>; #dma-cells =3D <1>; }; =20 @@ -93,7 +94,7 @@ sdhci: sdhci@98e00000 { compatible =3D "moxa,moxart-sdhci"; reg =3D <0x98e00000 0x5C>; - interrupts =3D <5 0>; + interrupts =3D <5 IRQ_TYPE_LEVEL_HIGH>; clocks =3D <&clk_apb>; dmas =3D <&dma 5>, <&dma 5>; @@ -120,7 +121,7 @@ mac0: mac@90900000 { compatible =3D "moxa,moxart-mac"; reg =3D <0x90900000 0x90>; - interrupts =3D <25 0>; + interrupts =3D <25 IRQ_TYPE_LEVEL_HIGH>; phy-handle =3D <ðphy0>; phy-mode =3D "mii"; status =3D "disabled"; @@ -129,7 +130,7 @@ mac1: mac@92000000 { compatible =3D "moxa,moxart-mac"; reg =3D <0x92000000 0x90>; - interrupts =3D <27 0>; + interrupts =3D <27 IRQ_TYPE_LEVEL_HIGH>; phy-handle =3D <ðphy1>; phy-mode =3D "mii"; status =3D "disabled"; @@ -138,7 +139,7 @@ uart0: uart@98200000 { compatible =3D "ns16550a"; reg =3D <0x98200000 0x20>; - interrupts =3D <31 8>; + interrupts =3D <31 IRQ_TYPE_LEVEL_HIGH>; reg-shift =3D <2>; reg-io-width =3D <4>; clock-frequency =3D <14745600>; --=20 2.14.1