Skip to content
Snippets Groups Projects
Commit 8e509705 authored by Peng Fan's avatar Peng Fan Committed by Leonard Crestez
Browse files

MLK-20993 i2c: rpmsg: add a BUG_ON to catch alias id issue


The alias ID must be defined in device tree, because
that will be used as BUS ID to Cortex M4. If the alias ID
not defined, linux kernel will automatically allocate one
ID which might not be the same number used in Cortex M4 and
Cortex M4 will not send msg to I2C controller.

So let's add BUG_ON to catch issue as earlier as possible to avoid
wasting efforts.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarClark Wang <xiaoning.wang@nxp.com>
(cherry picked from commit b9ff2035)
parent 379ab839
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment