]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit12a0870e38b13cb376c2d3d1ca0a981d4e03039a
tree38e962efb53a918067589c620028491204b94490
parent0338c33c66436801180cbd93634da377349f78c6
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