musb/allwinner: apply register filter in awusbdrd_bs_r_2() as well

Otherwise, I get this panic:
panic: awusbdrd_reg: Invalid register 0x342

It looks that musb code both writes and reads at least MUSB2_REG_TXDBDIS.

MFC after:	5 weeks
X-MFC after:	r365399
This commit is contained in:
Andriy Gapon 2020-09-07 06:48:08 +00:00
parent 029e367dd1
commit d7abf6e73c

View File

@ -259,6 +259,8 @@ awusbdrd_bs_r_2(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o)
{
const struct bus_space *bs = t;
if (awusbdrd_filt(o) != 0)
return (0);
return bus_space_read_2(bs_parent_space(bs), h, awusbdrd_reg(o));
}