diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-10-06 18:32:40 +0530 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 18:38:37 +0530 |
commit | 035540f6ea2394bdd9675552d31e1125cd0e402e (patch) | |
tree | 2e8673d2920cd473aef270e05f4520456d5c3090 /drivers/spi | |
parent | d8c174cdeb6511aa307e6058468b68a9cc3990e4 (diff) | |
download | kernel_samsung_espresso10-035540f6ea2394bdd9675552d31e1125cd0e402e.zip kernel_samsung_espresso10-035540f6ea2394bdd9675552d31e1125cd0e402e.tar.gz kernel_samsung_espresso10-035540f6ea2394bdd9675552d31e1125cd0e402e.tar.bz2 |
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')
-rw-r--r-- | drivers/spi/davinci_spi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 2ec5fd2..f40f1be 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) { |