mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mfd: lm3533: Set DMA mask
Missing coherent_dma_mask assigning triggers the following warning in dmesg: [ 3.287872] platform lm3533-backlight.0: DMA mask not set Since this warning might be elevated to an error in the future, set coherent_dma_mask to zero because both the core and cells do not utilize DMA. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Link: https://patch.msgid.link/20260731113632.158440-11-clamor95@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
4a2300981a
commit
95a968ec7c
|
|
@ -479,6 +479,10 @@ static int lm3533_i2c_probe(struct i2c_client *i2c)
|
|||
LM3533_BOOST_FREQ_MAX);
|
||||
lm3533->boost_freq = lm3533->boost_freq / (500 * KILO) - 1;
|
||||
|
||||
/* LM3533 and child devices do not use DMA */
|
||||
i2c->dev.coherent_dma_mask = 0;
|
||||
i2c->dev.dma_mask = &i2c->dev.coherent_dma_mask;
|
||||
|
||||
return lm3533_device_init(lm3533);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user