tty: serial: sh-sci: Remove setting {src,dst}_{addr,addr_width} based on DMA direction
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 22 Mar 2023 07:47:17 +0000 (07:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 08:54:15 +0000 (10:54 +0200)
commitf1d81e3cf0e91bf3455a643b87184c2288cfba8e
treeea4b11a57ad5c0fb23ba35fda2e1227c96f52560
parentdedd376e0c7096daf4171d54957a679b4dfeadbf
tty: serial: sh-sci: Remove setting {src,dst}_{addr,addr_width} based on DMA direction

The direction field in the DMA config is deprecated. The sh-sci driver
sets {src,dst}_{addr,addr_width} based on the DMA direction and
it results in dmaengine_slave_config() failure as RZ DMAC driver
validates {src,dst}_addr_width values independent of DMA direction.

Fix this issue by passing both {src,dst}_{addr,addr_width}
values independent of DMA direction.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230322074717.6057-1-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c