Received: by 10.223.185.116 with SMTP id b49csp1091561wrg; Sat, 3 Mar 2018 15:18:55 -0800 (PST) X-Google-Smtp-Source: AG47ELvZF3DaR0TQyaMK4XHdaZ62TR/x2ft9zNu5TbuG/yNMgt3dTilMuK3aaIuN6Tp7dfi7HICJ X-Received: by 10.98.214.10 with SMTP id r10mr10402633pfg.8.1520119135691; Sat, 03 Mar 2018 15:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520119135; cv=none; d=google.com; s=arc-20160816; b=PLVa+yUpb/deGN9IhHx2grxQPW8UbjibKI34kavHlmAEGtonodSPfGkmTSB/sxhpPz anvv8+3H482Aj1+uURb5vej9IX7boO7hxtQ58dBmie8AoGCSNs0j3gsmAQYdSfONySng SgJMEze5h7XuN+Ch+iWDFnbCdof5BiNqlIPgP0MFdvJ3vGLeLsHZ8ArOVJT7dWTUJqJy w3kOcS5zt30H1t3pCJEgSToy4AtBabN8z3MbdPMsJZeluGVWrqAPLiLaQU3njalrTEws Yxp1ogOjprc8osJNw8RqkZgN1pvwozB9r5gEF3agt/ZIkNqS2dMPO8PMO8nLXpGMJOZ1 //lw== 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=zCbqcEmJAaBv90ln5aQk17qytkSFDOW9uTko/TImNcjjCQ2JVbWKsEluqpSvi67b8D nrRJfuDY+WbVSM8d4VimNKhHeSA3pQv7DslCdEJlsXu0nBOEH9L1s1EpqGRqzt4x3lrI Hpe/oWsCVe2VqIu0mx6npD0sLYnuAPtuFUcAC3aruw9PealAuRccN3vH7clMwL9m8LLy eHWIXLX4ok3X0qkBX6mYfgOOOwssJ57KW5Uley4AWSl9jMN9i5I46WwV4uM/ywsNqp+d 5ynd6l+QT/Lh1Jkchh0RJjZPRqX/sXVZOMs4Izc/7mqtTxPk0g8D0fzzO2+HWt4wGVRF pkDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Me22f4rQ; 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 u2si3351455pfd.201.2018.03.03.15.18.41; Sat, 03 Mar 2018 15:18:55 -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=Me22f4rQ; 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 S933415AbeCCXRo (ORCPT + 99 others); Sat, 3 Mar 2018 18:17:44 -0500 Received: from mail-cys01nam02on0114.outbound.protection.outlook.com ([104.47.37.114]:41081 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934842AbeCCWiK (ORCPT ); Sat, 3 Mar 2018 17:38:10 -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=Me22f4rQEIVWiJ5Xz0Wq+eqyPjZovNxPZBc4B/PReIkaLKHDO04ZpGd4LjbFtuNu0+yiSueDYd0ginGi9/NtxVpHrnXYqdPtXN07TwbgbtPrxYDRvK2NUBeScpEXsaHpd8NvcHqn2WqaRkkw+Bw741zKyJc3HtwQMF/AK8L3/5Y= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1067.namprd21.prod.outlook.com (52.132.149.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Sat, 3 Mar 2018 22:38:06 +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:38:06 +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 4.4 021/115] ARM: dts: Adjust moxart IRQ controller and flags Thread-Topic: [PATCH AUTOSEL for 4.4 021/115] ARM: dts: Adjust moxart IRQ controller and flags Thread-Index: AQHTsz9OT+xphA+KhkKGv/wbrKulyQ== Date: Sat, 3 Mar 2018 22:31:00 +0000 Message-ID: <20180303223010.27106-21-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-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;MW2PR2101MB1067;7:9fBrBTr5LyFdMco0tK2hgHoqm73BTlb9MusPKDohGy+PA8V1nthoIKrPLaPFvhauxcvG6N8Exqpg7iMCGI9+MuyDEbNX0wAZ+/oQXuaY9ZzgFT2nP1/ZEgZfvsM2XTt4pfKWZKCX22D79J/CcNaQcgjgUuzvtosggOLRQNbAFbO5ggcd2c1qrNr0+WgodiMph49KFiT6cWUvEwuLSXEE7+ocFkgKopE/i9HjSv/mIcLy4pC4/BRRzTXBTAxyalwn x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3aee250a-8ea3-4012-8427-08d581576f07 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB1067; x-ms-traffictypediagnostic: MW2PR2101MB1067: 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)(3231220)(944501244)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:MW2PR2101MB1067;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1067; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(366004)(376002)(39860400002)(39380400002)(346002)(199004)(189003)(4326008)(5250100002)(86362001)(1076002)(2501003)(110136005)(6666003)(81156014)(2906002)(8936002)(305945005)(81166006)(2950100002)(7736002)(10290500003)(26005)(186003)(3660700001)(478600001)(72206003)(107886003)(8676002)(3280700002)(59450400001)(2900100001)(39060400002)(76176011)(6116002)(25786009)(3846002)(102836004)(575784001)(6506007)(5660300001)(97736004)(10090500001)(86612001)(106356001)(99286004)(6512007)(66066001)(316002)(53936002)(14454004)(105586002)(36756003)(6486002)(54906003)(6436002)(68736007)(22452003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1067;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: jmEq/+vJ9ACJXHOEYTVko9TLjwo0vPclI/hrCzXc5rPx4ZUNTOhDIPu0BtV9cfzTCEDOC1MR+uD80s9WezPzEUogYirAY+W7fxuSw0Wktt9tf5dtZL7LPia60gRvY9sxoa29+vzrt0WP201MirjJ6iZFV+38RIDqp6eXQc1xQJw= 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: 3aee250a-8ea3-4012-8427-08d581576f07 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:31:00.0415 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1067 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