Message ID | 20210914212105.76186-1-olek2@wp.pl (mailing list archive) |
---|---|
State | Accepted |
Commit | c12aa581f6d5e80c3c3675ab26a52c2b3b62f76e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,1/8] MIPS: lantiq: dma: add small delay after reset | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | warning | Series does not have a cover letter |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 5 of 5 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 15 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Tue, 14 Sep 2021 23:20:58 +0200 you wrote: > 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 <olek2@wp.pl> > --- > arch/mips/lantiq/xway/dma.c | 3 +++ > 1 file changed, 3 insertions(+) Here is the summary with links: - [net-next,1/8] MIPS: lantiq: dma: add small delay after reset https://git.kernel.org/netdev/net-next/c/c12aa581f6d5 - [net-next,2/8] MIPS: lantiq: dma: reset correct number of channel https://git.kernel.org/netdev/net-next/c/5ca9ce2ba4d5 - [net-next,3/8] MIPS: lantiq: dma: fix burst length for DEU https://git.kernel.org/netdev/net-next/c/5ad74d39c51d - [net-next,4/8] MIPS: lantiq: dma: make the burst length configurable by the drivers https://git.kernel.org/netdev/net-next/c/49293bbc50cb - [net-next,5/8] net: lantiq: configure the burst length in ethernet drivers https://git.kernel.org/netdev/net-next/c/14d4e308e0aa - [net-next,6/8] dt-bindings: net: lantiq-xrx200-net: convert to the json-schema https://git.kernel.org/netdev/net-next/c/5535bcfa725a - [net-next,7/8] dt-bindings: net: lantiq,etop-xway: Document Lantiq Xway ETOP bindings https://git.kernel.org/netdev/net-next/c/dac0bad93741 - [net-next,8/8] dt-bindings: net: lantiq: Add the burst length properties https://git.kernel.org/netdev/net-next/c/c68872146489 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
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 <linux/export.h> #include <linux/spinlock.h> #include <linux/clk.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/of.h> @@ -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);
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 <olek2@wp.pl> --- arch/mips/lantiq/xway/dma.c | 3 +++ 1 file changed, 3 insertions(+)