]> git.baikalelectronics.ru Git - kernel.git/commit
davinci_cpdma: Fix channel number written to teardown registers
authorChristian Riesch <christian.riesch@omicron.at>
Wed, 22 Feb 2012 21:58:00 +0000 (21:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2012 08:23:37 +0000 (03:23 -0500)
commit36ffdac508ae2e3c7dd1d7fd848d9cac4a4218e5
tree83623ebd5d1b12e6da51962c87b1531e5b96ed4c
parentf00dd08a21edb680f4e6039e9ad654b8c316d9f3
davinci_cpdma: Fix channel number written to teardown registers

chan->chan_num is 0..CPDMA_MAX_CHANNELS-1 for tx channels and
CPDMA_MAX_CHANNELS..2*CPDMA_MAX_CHANNELS-1 for rx channels. However,
the rx and tx teardown registers expect zero based channel numbering.

Since the upper bits of the registers are reserved, the teardown also
worked before, this patch is cleanup only.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c