OSDN Git Service

fsi/fsi-master-gpio: Reduce dpoll clocks
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 May 2018 01:46:18 +0000 (11:46 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 04:04:52 +0000 (14:04 +1000)
commitb632642e4ce22f1fbf2094752e936565771b34f4
treebdf3ff480b68a8fd45107d9ac4fa9c4dbfaed2ca
parent97a4e5c95bf762ac254209dc4808ee5138ee574e
fsi/fsi-master-gpio: Reduce dpoll clocks

FSI_GPIO_DPOLL_CLOCKS is the number of clocks before sending
a DPOLL command after receiving a BUSY status. It should be
at least tSendDelay (16 clocks).

According to comments in the code, it needs to also be at least
21 clocks due to HW issues.

It's currently 100 clocks which impacts performances negatively
in some cases. Reduces it in half to 50 clocks which seems to
still be solid.

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