Skip to content

Bl808/i2c#2

Merged
Hunter1753 merged 6 commits intoHunter1753:bl808/i2cfrom
kadamski:bl808/i2c
Mar 30, 2023
Merged

Bl808/i2c#2
Hunter1753 merged 6 commits intoHunter1753:bl808/i2cfrom
kadamski:bl808/i2c

Conversation

@kadamski
Copy link

Just a few additional fixed here and there.

It contains the error code which can be negative (actually, it is never
set to positive value).
It makes sense to set it to a known value so that we do not use the old
value in case it wasn't set (like when there was a timeout).
bl808_i2c_start_transfer() never set's the i2c_dev->msg_err itself, it
is only set by an interrupt but this will be valid only if we get a
completion. In this place, we should just return ret.
By using resource managed request_irq we don't have to worry about
freeign it manualy.
Show the TX/RX fifo counter when writing FIFO error log message so that
we can better understand when exactly is this interrupt generated.
@Hunter1753 Hunter1753 merged commit 3bb5d60 into Hunter1753:bl808/i2c Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants