Received: by 10.223.185.116 with SMTP id b49csp1113689wrg; Sat, 3 Mar 2018 15:59:58 -0800 (PST) X-Google-Smtp-Source: AG47ELtgbVKDu98w5OZ2yFhUWYLqHhfFyXJm1Rf7h5IE40JEwuYmCVwIGpWhqCa9xTvZ6zpLAu5g X-Received: by 10.99.173.71 with SMTP id y7mr8280046pgo.432.1520121598244; Sat, 03 Mar 2018 15:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520121598; cv=none; d=google.com; s=arc-20160816; b=MTaXAUL+CqrkP8C85OGmUJbjHh/KsEPKqlbx39ixm+SK6IluVGgQ319o4vIehSO6xb 4BPTDKQXB7Dwx4/DwKV21T2+jXgUw+H5+sqN5FhTtOB9HBu14xTfMdkrVa23cORWdQBQ oEkhtjcInedTAAPuFyIDNWm5RFQjRKsbKypN9Ev7CD4zCp3znIbH3jAoTDSuOBlWIfIB C2wI4QSsjH4eKnmpIMno6XnpBs51ZwwhCGAOy/tY8V5FjTASkJhhU+64cdmK+u/YIc4C aLwXuGIrkMmjh7jtA1QKGTzCXQv5lpPmsyi5MHkGrLnNk3UXAbnCMeWqScEaJTjB2mfb 7/Jg== 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=AGua2Ks714DjLVt/WE/Sx2JB2B96cTl/AQJa/PR+0DfyPzRMor+mzuMj5CS3d6OPf3 7FUIMY+brddx02aWPE6wAlqcKKw5Ss8/8lO2TWyEHoJfoZKR+omck6bVfCgCURe11Z7n zLHDbk3r0uBHZP3fQfECa2tBplpXTpQI5emrV4aLD8nzBziNaUpXxqP8n7DA6e+bnt8d pONLzv3i1/HqVwmtAD++t50n1nPOJp0yvLtYoRY5BImEVCBiI9ngXzTbQpzavurPo07q Mivsh13Ntw9dGYiv95jBPxWGdM5/V34m83DSLdwRXfFI3CjToOd8g2i4EgRL3Mh5er0u h3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=jQc1mQbV; 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 p3-v6si987692plo.746.2018.03.03.15.59.44; Sat, 03 Mar 2018 15:59:58 -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=jQc1mQbV; 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 S932772AbeCCX5o (ORCPT + 99 others); Sat, 3 Mar 2018 18:57:44 -0500 Received: from mail-cys01nam02on0103.outbound.protection.outlook.com ([104.47.37.103]:36864 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932956AbeCCWcY (ORCPT ); Sat, 3 Mar 2018 17:32:24 -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=jQc1mQbVPx/8IMZgtnRThNVHa4p0V8bIwqj9EyS/18fe1uyjlbPt6Z63BmNA4euTe7+2pNaJcNK6lUkScR4EEDP7Y1JtW2dijg3I2pAKLGeDrBYlwTGGtWv6aX03Sfp0z7Zn2qbONqzIxAwohSyJ8QPRrEaVxIlIv32oX+tTnGs= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1098.namprd21.prod.outlook.com (52.132.149.27) 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:32:07 +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:32:07 +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.9 047/219] ARM: dts: Adjust moxart IRQ controller and flags Thread-Topic: [PATCH AUTOSEL for 4.9 047/219] ARM: dts: Adjust moxart IRQ controller and flags Thread-Index: AQHTsz7wFh3llONr80ekphJAddoJeQ== Date: Sat, 3 Mar 2018 22:28:23 +0000 Message-ID: <20180303222716.26640-47-alexander.levin@microsoft.com> References: <20180303222716.26640-1-alexander.levin@microsoft.com> In-Reply-To: <20180303222716.26640-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;MW2PR2101MB1098;7:jz4hmdNd3eFVUuIYSwcRJK83T8HZvjzAUlRV/S5+mZCAwMN3/LbpDzFkk80nOLIgxZRr/JIr8VNNvPIqWd6qg1EbZpEkieDVZVsDPsqTFmXbuMZNN/xf/ZfIlZ9mtOlvP/YsT/FrhoQQxnuLS6yvilbC11kv7iXuZOkKZ/gL0GBAL4lyaEC0PmAyLa9FSFCJsZ7eVWMhnbHTv5af8Pcl0bLFZlvFdhuTtaiJlvidj4wc1/sCIilpdlCUQ3F6UGI9 x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 04a0d59c-b9ce-46d7-6556-08d581569912 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB1098; x-ms-traffictypediagnostic: MW2PR2101MB1098: 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)(10201501046)(3002001)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MW2PR2101MB1098;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1098; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(376002)(39380400002)(366004)(396003)(346002)(199004)(189003)(2906002)(8936002)(36756003)(6512007)(81156014)(10290500003)(81166006)(99286004)(6436002)(68736007)(39060400002)(478600001)(3846002)(22452003)(53936002)(8676002)(110136005)(54906003)(4326008)(316002)(76176011)(6116002)(7736002)(105586002)(305945005)(3660700001)(1076002)(14454004)(97736004)(575784001)(25786009)(186003)(72206003)(26005)(102836004)(86362001)(6666003)(2501003)(3280700002)(6506007)(5660300001)(10090500001)(59450400001)(66066001)(106356001)(5250100002)(2900100001)(2950100002)(86612001)(6486002)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1098;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: el77+gPVUxOKtv+dkMHBSiNBW4NeJqYFiePta0taE/8QibvxiCDVxtKd8m3eoSzu7TD7w6+qGpRsReyCQs0eV2FE09J7X0TWTpYJKKtqz0bfaqvfsjnDberCVX6vMjfUIzWWLA9/RGDp7GaYCM3Ru7Rriy7t/G57Styq9N3FcQw= 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: 04a0d59c-b9ce-46d7-6556-08d581569912 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:28:23.3069 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1098 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