net: netcp: rework the code for get/set sw_data in dma desc
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Fri, 19 Feb 2016 17:58:44 +0000 (12:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Feb 2016 03:03:15 +0000 (22:03 -0500)
commit0632448134d0ac1450a19d26f90948fde3b558ad
tree38e962efb53a918067589c620028491204b94490
parentb1cb86ae0e5951e9747ec7a5b33d1c1217791b75
net: netcp: rework the code for get/set sw_data in dma desc

SW data field in descriptor can be used by software to hold private
data for the driver. As there are 4 words available for this purpose,
use separate macros to place it or retrieve the same to/from
descriptors. Also do type cast of data types accordingly.

Cc: Wingman Kwok <w-kwok2@ti.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Grygorii Strashko <grygorii.strashko@ti.com>
CC: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c