From patchwork Mon Apr 3 19:47:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 9660487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1FB186032D for ; Mon, 3 Apr 2017 19:49:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FCAC284D9 for ; Mon, 3 Apr 2017 19:49:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 043F7284EE; Mon, 3 Apr 2017 19:49:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1357284D9 for ; Mon, 3 Apr 2017 19:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=/L/wSF5WDd09p47dFlqADdqPMc4eQo9f9nopogLkyGs=; b=DXMBU3Ofr5FWa0lVBABaOjqs+v Pn7hACxaWR1RSkgcxwRk6+NMxHjlyvpjrjh9vTnMGzCEGog4Y6fjKjHGOiWzmnFr7R5Wcsn6gP1zD CUplSU9RoN7hzP4JMkDykPRTiVOuqnXuG8ge7/mK+QwbgtU19aMPolcsK7c7nVQIkBR9ALHf5uOEE RcCn53aSvWGQtNic1uDVFqRaIf6X5Fvr0xzQc4AAtsOtsZGr1hGLZofrGdXnmr2pjDlDgr6GCpA7O uBnW9G1phst1FWTTnAp5F40iN8TXNo+n2lCLvg/OObpq0GN+UtpCY9e7mGg8s18+z7LXNq2Tim2kW 5HMxeU+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cv7yF-00011Z-LK; Mon, 03 Apr 2017 19:48:59 +0000 Received: from botnar.kaiser.cx ([176.28.20.183]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cv7y2-0000nV-Tc for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2017 19:48:48 +0000 Received: from 139.100.2.85.dynamic.wline.res.cust.swisscom.ch ([85.2.100.139] helo=martin-debian-1.fritz.box) by botnar.kaiser.cx with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1cv7wd-0002m1-7U; Mon, 03 Apr 2017 21:47:19 +0200 From: Martin Kaiser To: Shawn Guo Subject: [PATCH 2/2 v2] ARM: i.MX25: globally disable supervisor protect Date: Mon, 3 Apr 2017 21:47:05 +0200 Message-Id: <1491248825-23041-2-git-send-email-martin@kaiser.cx> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1491248825-23041-1-git-send-email-martin@kaiser.cx> References: <1485890402-22974-1-git-send-email-martin@kaiser.cx> <1491248825-23041-1-git-send-email-martin@kaiser.cx> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_124847_115449_C668764A X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Martin Kaiser , linux-arm-kernel@lists.infradead.org, Sascha Hauer , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The problem described in 6befda9a272b98bfb1dc772efc3564644cbfb270 for the i.MX53 platform applies to i.MX25 as well. E.g. CSPI1+SDMA and SSI1+SDMA are not working with the default AIPS configuration. Modifiy the AIPS configuration to allow access to the bus by SDMA and peripherals. Signed-off-by: Martin Kaiser --- v2: rebased against latest linux-next re-sending both patches, it seems they got lost along the way arch/arm/mach-imx/mach-imx25.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx25.c b/arch/arm/mach-imx/mach-imx25.c index 32dcb5e..353b86e 100644 --- a/arch/arm/mach-imx/mach-imx25.c +++ b/arch/arm/mach-imx/mach-imx25.c @@ -23,6 +23,11 @@ static void __init imx25_init_early(void) mxc_set_cpu_type(MXC_CPU_MX25); } +static void __init imx25_dt_init(void) +{ + imx_aips_allow_unprivileged_access("fsl,imx25-aips"); +} + static void __init mx25_init_irq(void) { struct device_node *np; @@ -41,6 +46,7 @@ static const char * const imx25_dt_board_compat[] __initconst = { DT_MACHINE_START(IMX25_DT, "Freescale i.MX25 (Device Tree Support)") .init_early = imx25_init_early, + .init_machine = imx25_dt_init, .init_late = imx25_pm_init, .init_irq = mx25_init_irq, .dt_compat = imx25_dt_board_compat,