summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2013-05-23 14:52:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 21:46:16 +0900
commit84524cf43d693746896782628466205ccc193e0d (patch)
treeb6790d7e12cd7668050189f36b3d2a855e32efd3 /drivers/char
parent1dd24daef9c5a4b51f4981a9c65a36a32b2ea98a (diff)
downloadlinux-84524cf43d693746896782628466205ccc193e0d.tar.gz
linux-84524cf43d693746896782628466205ccc193e0d.tar.bz2
linux-84524cf43d693746896782628466205ccc193e0d.zip
char: xilinx_hwicap: Fix typo in comment and extend it
s/regsiter/register/ Use origin comment from the first driver version which also explain the usage of XHI_MAX_RETRIES better. Signed-off-by: Michal Simek <monstr@monstr.eu> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/xilinx_hwicap/xilinx_hwicap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.h b/drivers/char/xilinx_hwicap/xilinx_hwicap.h
index 96677fc7ea4d..38b145eaf24d 100644
--- a/drivers/char/xilinx_hwicap/xilinx_hwicap.h
+++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.h
@@ -85,7 +85,13 @@ struct hwicap_driver_config {
void (*reset)(struct hwicap_drvdata *drvdata);
};
-/* Number of times to poll the done regsiter */
+/* Number of times to poll the done register. This has to be large
+ * enough to allow an entire configuration to complete. If an entire
+ * page (4kb) is configured at once, that could take up to 4k cycles
+ * with a byte-wide icap interface. In most cases, this driver is
+ * used with a much smaller fifo, but this should be sufficient in the
+ * worst case.
+ */
#define XHI_MAX_RETRIES 5000
/************ Constant Definitions *************/