diff options
author | Boojin Kim <boojin.kim@samsung.com> | 2011-12-26 04:51:41 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-03-08 07:29:29 -0500 |
commit | b06db6e56c0850617291b8921582d04255022425 (patch) | |
tree | 38b83479591eddd1bdb874cfc714267184fe6e61 /drivers/dma | |
parent | b7d861d9394534db94f0fb8f4b9d984f996d0528 (diff) |
DMA: PL330: Removes useless function
Cc: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pl330.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 2e351f40fc49..dd74c2478c6d 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -1824,52 +1824,6 @@ static int pl330_chan_ctrl(void *ch_id, enum pl330_chan_op op) | |||
1824 | return ret; | 1824 | return ret; |
1825 | } | 1825 | } |
1826 | 1826 | ||
1827 | static int pl330_chan_status(void *ch_id, struct pl330_chanstatus *pstatus) | ||
1828 | { | ||
1829 | struct pl330_thread *thrd = ch_id; | ||
1830 | struct pl330_dmac *pl330; | ||
1831 | struct pl330_info *pi; | ||
1832 | void __iomem *regs; | ||
1833 | int active; | ||
1834 | u32 val; | ||
1835 | |||
1836 | if (!pstatus || !thrd || thrd->free) | ||
1837 | return -EINVAL; | ||
1838 | |||
1839 | pl330 = thrd->dmac; | ||
1840 | pi = pl330->pinfo; | ||
1841 | regs = pi->base; | ||
1842 | |||
1843 | /* The client should remove the DMAC and add again */ | ||
1844 | if (pl330->state == DYING) | ||
1845 | pstatus->dmac_halted = true; | ||
1846 | else | ||
1847 | pstatus->dmac_halted = false; | ||
1848 | |||
1849 | val = readl(regs + FSC); | ||
1850 | if (val & (1 << thrd->id)) | ||
1851 | pstatus->faulting = true; | ||
1852 | else | ||
1853 | pstatus->faulting = false; | ||
1854 | |||
1855 | active = thrd->req_running; | ||
1856 | |||
1857 | if (active == -1) { | ||
1858 | /* Indicate that the thread is not running */ | ||
1859 | pstatus->top_req = NULL; | ||
1860 | pstatus->wait_req = NULL; | ||
1861 | } else { | ||
1862 | pstatus->top_req = thrd->req[active].r; | ||
1863 | pstatus->wait_req = !IS_FREE(&thrd->req[1 - active]) | ||
1864 | ? thrd->req[1 - active].r : NULL; | ||
1865 | } | ||
1866 | |||
1867 | pstatus->src_addr = readl(regs + SA(thrd->id)); | ||
1868 | pstatus->dst_addr = readl(regs + DA(thrd->id)); | ||
1869 | |||
1870 | return 0; | ||
1871 | } | ||
1872 | |||
1873 | /* Reserve an event */ | 1827 | /* Reserve an event */ |
1874 | static inline int _alloc_event(struct pl330_thread *thrd) | 1828 | static inline int _alloc_event(struct pl330_thread *thrd) |
1875 | { | 1829 | { |