@@ -256,7 +256,8 @@ static struct platform_device sdhi_device = {
.resource = sdhi_resources,
.id = 0,
.dev = {
- .platform_data = &sdhi_info,
+ .platform_data = &sdhi_info,
+ .coherent_dma_mask = 0xffffffff,
},
};
@@ -458,7 +458,8 @@ static struct platform_device sdhi0_cn3_device = {
.num_resources = ARRAY_SIZE(sdhi0_cn3_resources),
.resource = sdhi0_cn3_resources,
.dev = {
- .platform_data = &sdhi0_cn3_data,
+ .platform_data = &sdhi0_cn3_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI0,
@@ -488,7 +489,8 @@ static struct platform_device sdhi1_cn7_device = {
.num_resources = ARRAY_SIZE(sdhi1_cn7_resources),
.resource = sdhi1_cn7_resources,
.dev = {
- .platform_data = &sdhi1_cn7_data,
+ .platform_data = &sdhi1_cn7_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI1,
@@ -515,7 +515,8 @@ static struct platform_device sdhi0_device = {
.resource = sdhi0_resources,
.id = 0,
.dev = {
- .platform_data = &sdhi0_info,
+ .platform_data = &sdhi0_info,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI0,
@@ -555,7 +556,8 @@ static struct platform_device sdhi1_device = {
.resource = sdhi1_resources,
.id = 1,
.dev = {
- .platform_data = &sdhi1_info,
+ .platform_data = &sdhi1_info,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI1,
@@ -375,7 +375,8 @@ static struct platform_device kfr2r09_sh_sdhi0_device = {
.num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources),
.resource = kfr2r09_sh_sdhi0_resources,
.dev = {
- .platform_data = &sh7724_sdhi0_data,
+ .platform_data = &sh7724_sdhi0_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI0,
@@ -419,7 +419,8 @@ static struct platform_device sdhi_cn9_device = {
.num_resources = ARRAY_SIZE(sdhi_cn9_resources),
.resource = sdhi_cn9_resources,
.dev = {
- .platform_data = &sh7724_sdhi_data,
+ .platform_data = &sh7724_sdhi_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI,
@@ -477,7 +477,8 @@ static struct platform_device sdhi0_cn7_device = {
.num_resources = ARRAY_SIZE(sdhi0_cn7_resources),
.resource = sdhi0_cn7_resources,
.dev = {
- .platform_data = &sh7724_sdhi0_data,
+ .platform_data = &sh7724_sdhi0_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI0,
@@ -509,7 +510,8 @@ static struct platform_device sdhi1_cn8_device = {
.num_resources = ARRAY_SIZE(sdhi1_cn8_resources),
.resource = sdhi1_cn8_resources,
.dev = {
- .platform_data = &sh7724_sdhi1_data,
+ .platform_data = &sh7724_sdhi1_data,
+ .coherent_dma_mask = 0xffffffff,
},
.archdata = {
.hwblk_id = HWBLK_SDHI1,
It is now required, because the SDHI / TMIO driver is using dma_alloc_coherent() to allocate the DMA bounce buffer. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- arch/sh/boards/board-sh7757lcr.c | 3 ++- arch/sh/boards/mach-ap325rxa/setup.c | 6 ++++-- arch/sh/boards/mach-ecovec24/setup.c | 6 ++++-- arch/sh/boards/mach-kfr2r09/setup.c | 3 ++- arch/sh/boards/mach-migor/setup.c | 3 ++- arch/sh/boards/mach-se/7724/setup.c | 6 ++++-- 6 files changed, 18 insertions(+), 9 deletions(-)