[9610] wlbt: SMAPPER. Check DMA addr alignment
authorAlbert Cano <a.canocamps@samsung.com>
Fri, 1 Jun 2018 08:29:29 +0000 (09:29 +0100)
committerIvan Priest <i.priest@samsung.com>
Wed, 11 Jul 2018 17:43:16 +0000 (18:43 +0100)
commit34f6bc20d44c6f520633832d2a25d4e427872e77
treec07481eec85d9ca208300d2e0590096b5b36e038
parentaf7a4be436829ac1a26c222eb7d5c758c6bea319
[9610] wlbt: SMAPPER. Check DMA addr alignment

Since SMAPPER bank entry base address forces alignment (i.e. 2048
octets), hip4_smapper alloc should validate the dma buffer (phys
address) before setting the entry.

Usually skb/dma allocation will 'guarantee' 4k alignment unless
SLUB/SLAB debug is enabled.

Extended the smapper api to get the aligment from platform device
virtual implementation

Change-Id: Ic03f952d029efad7c60281d33d6915470072a3b5
SCSC-Bug-Id: SSB-40382
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
drivers/misc/samsung/scsc/mifsmapper.c
drivers/misc/samsung/scsc/mifsmapper.h
drivers/misc/samsung/scsc/platform_mif.c
drivers/misc/samsung/scsc/scsc_mif_abs.h
drivers/misc/samsung/scsc/scsc_service.c
drivers/net/wireless/scsc/hip4_smapper.c
drivers/net/wireless/scsc/hip4_smapper.h
include/scsc/scsc_mx.h