Commit ac82da33 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Ralf Baechle

[SSB] Initialise dma_mask for SSB_BUSTYPE_SSB devices

For SSB_BUSTYPE_SSB type devices, we need to initialize dma_mask using
coherent_dma_mask so that calls to dma_set_mask() succeed.

It fixes the regression on the b44 driver introduced by commit
f225763aSigned-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2dc42b47
...@@ -471,6 +471,7 @@ static int ssb_devices_register(struct ssb_bus *bus) ...@@ -471,6 +471,7 @@ static int ssb_devices_register(struct ssb_bus *bus)
#endif #endif
break; break;
case SSB_BUSTYPE_SSB: case SSB_BUSTYPE_SSB:
dev->dma_mask = &dev->coherent_dma_mask;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment