OSDN Git Service

fsi/fsi-master-gpio: Sample input data on different clock phase
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 May 2018 01:06:37 +0000 (11:06 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 04:04:34 +0000 (14:04 +1000)
commit5d0d16f135c0cb7a12e417cbe12b271524ce4d40
tree5bebbae01f504edcb3e6515a72d0ff493fc25db7
parente5538139e043bcae133da1e55f02b0646eb601fa
fsi/fsi-master-gpio: Sample input data on different clock phase

We currently sample the input data right after we toggle the
clock low, then high. The slave establishes the data on the
rising edge, so this is not ideal. We should sample it on
the low phase instead.

This currently works because we have an extra delay, but subsequent
patches will remove it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Tested-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-master-gpio.c