summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorzhichao.liu <zhichao.liu@mediatek.com>2022-10-21 12:16:53 +0300
committerMark Brown <broonie@kernel.org>2022-10-31 16:20:09 +0300
commitcf82d0ecb84e8ef9958721193f901609b408655b (patch)
tree1e07cc939093ce19dcd1bdd9c7f7fac2029e5c77 /tools/perf/util/scripting-engines/trace-event-python.c
parentae4b3c1252f0fd0951d2f072a02ba46cac8d6c92 (diff)
downloadlinux-cf82d0ecb84e8ef9958721193f901609b408655b.tar.xz
spi: mediatek: Fix package division error
Commit 7e963fb2a33ce ("spi: mediatek: add ipm design support for MT7986") makes a mistake on package dividing operation (one change is missing), need to fix it. Background: Ipm design is expanding the HW capability of dma (adjust package length from 1KB to 64KB), and using "dev_comp->ipm_support" flag to indicate it. Issue description: Ipm support patch (said above) is missing to handle remainder at package dividing operation. One case, a transmission length is 65KB, is will divide to 1K (package length) * 65(package loop) in non-ipm desgin case, and will divide to 64K(package length) * 1(package loop) + 1K(remainder) in ipm design case. And the 1K remainder will be lost with the current SW flow, and the transmission will be failure. So, it should be fixed. Solution: Add "ipm_design" flag in function "mtk_spi_get_mult_delta()" to indicate HW capability, and modify the parameters corespondingly. fixes: 7e963fb2a33ce ("spi: mediatek: add ipm design support for MT7986") Signed-off-by: zhichao.liu <zhichao.liu@mediatek.com> Link: https://lore.kernel.org/r/20221021091653.18297-1-zhichao.liu@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions