Skip to content
Commit a22bba81 authored by Jagan Teki's avatar Jagan Teki
Browse files

spi: zynq_spi: Fix to configure CPOL, CPHA mask



priv->mode is initialized when .set_speed triggers
with mode value, so checking mode for configuring
CPOL, CPHA using priv->mode is invalid hence use
mode from .set_speed argument, and at the end
priv->mode will initialized with mode.

This patch also replaces formatting string to use
speed instead of mode in .set_speed ops.

Signed-off-by: default avatarJagan Teki <jteki@openedev.com>
parent d5f60737
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment