]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: zynq_qspi: Fix to configure CPOL, CPHA mask
authorJagan Teki <jteki@openedev.com>
Mon, 7 Sep 2015 20:09:44 +0000 (01:39 +0530)
committerJagan Teki <jteki@openedev.com>
Sun, 25 Oct 2015 14:47:03 +0000 (20:17 +0530)
commit2775e91835638031d1134176d536ac2946fc5e6b
treed555520733d8ab27e8f95b5f6959e0e976fe89ef
parent232a8e4ecc21c8ee4c500900c26f706cab60150d
spi: zynq_qspi: 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: Jagan Teki <jteki@openedev.com>
drivers/spi/zynq_qspi.c