Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
sunxi:wemac: remove unused dma irq poll code
Browse files Browse the repository at this point in the history
dma irq pull, means bring work when irq is disabled
using polling - endless checking irq status, that
code currently disabled in wemac, but export sitll
here and I need remove it for next patch
Signed-off-by: Alexsey Shestacov <wingrime@gmail.com>
  • Loading branch information
wingrime committed Apr 4, 2013
1 parent f80d87c commit c6e3cd1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions drivers/net/ethernet/sun4i/sun4i_wemac.c
Expand Up @@ -300,16 +300,6 @@ __s32 emacrx_WaitDmaFinish(void)
return 0;
}

__s32 emactx_WaitDmaFinish(void)
{
while (1) {
poll_dma_pending(ch_tx);
if (emactx_dma_completed_flag)
break;
}

return 0;
}

/* WEMAC network board routine ---------------------------- */

Expand All @@ -325,18 +315,10 @@ wemac_reset(wemac_board_info_t *db)
udelay(200);
}

#if 0
static void wemac_outblk_dma(void __iomem *reg, void *data, int count)
{
wemac_dma_config_start(1, data, count);
emactx_WaitDmaFinish();
}
#else
static int wemac_inblk_dma(void __iomem *reg, void *data, int count)
{
return wemac_dma_config_start(0, data, count);
}
#endif

static void wemac_outblk_32bit(void __iomem *reg, void *data, int count)
{
Expand Down

0 comments on commit c6e3cd1

Please sign in to comment.