Re: net: wwan: t7xx: BUG: Unaligned access when loading mtk_t7xx module
From: Bjørn Mork
Date: Fri Mar 22 2024 - 08:16:07 EST
Liviu Dudau <liviu@xxxxxxxxxxx> writes:
> I had a
> go at guessing that UL registers are at 0x8 and 0x48 offsets and DL
> registers are at 0x0478 and 0x04b8, but while that fixes the alignment
> exception, I now get a "CLDMA{0,1} queue 0 is not empty" message.
I don't think you can assume the register offsets are wrong. It looks
more like the device doesn't care about alignment.
But given that the driver includes <linux/io-64-nonatomic-lo-hi.h>, you
can probably replace those unaligned 64bit accesses with two nonatomic
32bit accesses.
Bjørn