Skip to content

Commit

Permalink
Fix a code logic error in Zhaoxin DMA patch
Browse files Browse the repository at this point in the history
Replace "ZHAOXIN_P2CW_NODE_CHECK | zhaoxin_patch_code" with
"ZHAOXIN_P2CW_NODE_CHECK & zhaoxin_patch_code" in function
zhaoxin_patch_code_setup()

Fixes: d3eb024789cc ("Add kh40000_direct_dma_ops for KH-40000 platform")

Signed-off-by: leoliu-oc <[email protected]>
  • Loading branch information
leoliu-oc authored and MingcongBai committed Nov 18, 2024
1 parent d271f18 commit 120f284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/zhaoxin_kh40000.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int __init zhaoxin_patch_code_setup(char *str)
return err;
}

if (ZHAOXIN_P2CW_NODE_CHECK | zhaoxin_patch_code)
if (ZHAOXIN_P2CW_NODE_CHECK & zhaoxin_patch_code)
pr_info("zhaoxin dma patch node check is enabled\n");

return 0;
Expand Down

0 comments on commit 120f284

Please sign in to comment.