Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1023879pxb; Tue, 14 Sep 2021 14:23:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlh4PhXynSS252Fur5HvLgGORNQ3uQ1df870uuVR/yizJgsJageEfdNAU7n5Is3MGinScq X-Received: by 2002:a2e:9dcb:: with SMTP id x11mr17378034ljj.137.1631654617364; Tue, 14 Sep 2021 14:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631654617; cv=none; d=google.com; s=arc-20160816; b=CE6/zht+qmMvJipbBhGnemLvwumd5+lTwY8g6xDv6abw2lg6/dmYfDc0tfx964RTYQ HxKd+G5SrOYMZQe/UhZzfRJkHuZn0FieEGsIskP6Jfjk4bLc7nD+L2goJWK2XYfAl+Oj +PsF0j1+gNj6Chwo5W1rUaBToPYmTeHDFUGt7Os1/Lf7+VBOPeNbFS9dlbJtflOkG2b0 ClG4kegDAzmrNXTj81yM6Ek+rnSQ8nTVxBsPW52Y3eYZK3+bp+oQQI3xdmNVmDRMw0F9 csjNfTIuMX2m+JC2dJIK0Edwtj3y/YZn65MTpZ8gmno9MPoVa9UboIw297XhRCz5JBKS K58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=tAPSHYLfJCfHanCPetkA371bKGzel09qbwJJnHLD89E=; b=qxnJ8kZ1J1DzqGOM4wdDG/VySFXjCyUwdga6SY40aqHKUXFE8muN1KZhB4NLk3hHQB ahmn1SBXIK7BuonsljVHc7lEiZUrYH3b4jpeIHFnqpbS3C96jFo9kWS9cxfMC1ZOaPhd yvn8PWBecGzcM2f1lnzT5YStkp9J6028n2SgzwePBnE3OQVDRYEYTU1Qrda+vomjbkYR UQf81n/mIyrgiVDCg7zlBzwsFpRbcq+dp71S7NChpCDapiqzwH64/hjq4ENNL1ZE3k/L Ta46TSuZWpMefg2zmS7riU4CU8P49B3LITH6rRm+xIL+g9ktHNaSzJwk3v6VgpxABcHb ky1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=kNSmpwIK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si5529038lfc.590.2021.09.14.14.22.47; Tue, 14 Sep 2021 14:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=kNSmpwIK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234490AbhINVWe (ORCPT + 99 others); Tue, 14 Sep 2021 17:22:34 -0400 Received: from mx3.wp.pl ([212.77.101.10]:20865 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbhINVWa (ORCPT ); Tue, 14 Sep 2021 17:22:30 -0400 Received: (wp-smtpd smtp.wp.pl 5375 invoked from network); 14 Sep 2021 23:21:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1631654468; bh=tAPSHYLfJCfHanCPetkA371bKGzel09qbwJJnHLD89E=; h=From:To:Subject; b=kNSmpwIKQBuL5uP3J961AIFtCQZmZMcaemQD9pjMSkQ4ffQg8b05AUfEA2mJ13shm 0Xrxn/F28GhH22gMt8ThfN2j6Gki/R5voEro/DqU2FAj/tiCnu/zhekH1ytxekdCM7 KQWBs+6ud5Td4zFYJirOP6j5xyvHmzHtfeZsYqIQ= Received: from 46.204.52.243.nat.umts.dynamic.t-mobile.pl (HELO LAPTOP-OLEK.Free) (olek2@wp.pl@[46.204.52.243]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 14 Sep 2021 23:21:07 +0200 From: Aleksander Jan Bajkowski To: john@phrozen.org, tsbogend@alpha.franken.de, olek2@wp.pl, maz@kernel.org, ralf@linux-mips.org, ralph.hempel@lantiq.com, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, hauke@hauke-m.de, dev@kresin.me, arnd@arndb.de, jgg@ziepe.ca, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/8] MIPS: lantiq: dma: add small delay after reset Date: Tue, 14 Sep 2021 23:20:58 +0200 Message-Id: <20210914212105.76186-1-olek2@wp.pl> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-WP-MailID: 9c083a352a31c4ae3946ffbe1e95c549 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [cXMk] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reading the DMA registers immediately after the reset causes Data Bus Error. Adding a small delay fixes this issue. Signed-off-by: Aleksander Jan Bajkowski --- arch/mips/lantiq/xway/dma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c index 63dccb2ed08b..2784715933d1 100644 --- a/arch/mips/lantiq/xway/dma.c +++ b/arch/mips/lantiq/xway/dma.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -222,6 +223,8 @@ ltq_dma_init(struct platform_device *pdev) clk_enable(clk); ltq_dma_w32_mask(0, DMA_RESET, LTQ_DMA_CTRL); + usleep_range(1, 10); + /* disable all interrupts */ ltq_dma_w32(0, LTQ_DMA_IRNEN); -- 2.30.2