summaryrefslogtreecommitdiff
path: root/drivers/spi/davinci_spi.c
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-10-06 18:32:40 +0530
committerSekhar Nori <nsekhar@ti.com>2010-11-18 18:38:37 +0530
commit035540f6ea2394bdd9675552d31e1125cd0e402e (patch)
tree2e8673d2920cd473aef270e05f4520456d5c3090 /drivers/spi/davinci_spi.c
parentd8c174cdeb6511aa307e6058468b68a9cc3990e4 (diff)
downloadlwn-035540f6ea2394bdd9675552d31e1125cd0e402e.tar.gz
lwn-035540f6ea2394bdd9675552d31e1125cd0e402e.zip
spi: davinci: add additional comments
Add comments describing the platform data members and per-chip-select SPI configuration structure. Also, add some comments describing the what happens during the driver probe. Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com> Tested-By: Michael Williamson <michael.williamson@criticallink.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/spi/davinci_spi.c')
-rw-r--r--drivers/spi/davinci_spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 2ec5fd2f2e7b..f40f1be1528a 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -787,6 +787,13 @@ rx_dma_failed:
/**
* davinci_spi_probe - probe function for SPI Master Controller
* @pdev: platform_device structure which contains plateform specific data
+ *
+ * According to Linux Device Model this function will be invoked by Linux
+ * with platform_device struct which contains the device specific info.
+ * This function will map the SPI controller's memory, register IRQ,
+ * Reset SPI controller and setting its registers to default value.
+ * It will invoke spi_bitbang_start to create work queue so that client driver
+ * can register transfer method to work queue.
*/
static int davinci_spi_probe(struct platform_device *pdev)
{