fpga: dfl: afu: harden port enable logic
authorRuss Weight <russell.h.weight@intel.com>
Tue, 23 Mar 2021 22:46:50 +0000 (15:46 -0700)
committerMoritz Fischer <mdf@kernel.org>
Wed, 24 Mar 2021 18:15:04 +0000 (11:15 -0700)
commit9a8d3cda8daf54b1f8e67ccb360876379b7e7895
tree6b3edaecfaf44801b5bba4e4428b1776ba2bd542
parent6f1e376cfc6864a2f46538db909bbd5253c3c146
fpga: dfl: afu: harden port enable logic

Port enable is not complete until ACK = 0. Change
__afu_port_enable() to guarantee that the enable process
is complete by polling for ACK == 0.

Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Acked-by: Wu Hao <hao.wu@intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/dfl-afu-error.c
drivers/fpga/dfl-afu-main.c
drivers/fpga/dfl-afu.h