Re: [PATCH] staging: pi433: add descriptions for mutex locks

From: Marcus Wolf
Date: Sun Mar 25 2018 - 09:00:22 EST


Hi Valentin,

> But I have an idea to remove this kfifo_reset call in pi433_write
> handling partial message writes:
>
> kfifo_reset(&device->tx_fifo); // TODO: maybe find a solution, not to discard already stored, valid entries
>
> The writer could acquire the lock and than use kfifo_avail to check if
> there is enough space to write the whole message. What do you think?

Unfortunaly I can't find the time to have a closer look on the code this
weekend - still busy with tax stuff :-(

Idea sounds great. I'll try to look at the code and think about it
during Easter hollidays.

Cheers,

Marcus

--
Smarthome-Wolf UG (haftungsbeschrÃnkt)
Helene-Lange-Weg 23
80637 MÃnchen
Amtsgericht MÃnchen, HRB 223529
Umastzsteuer-ID: DE304719911
GeschÃftsfÃhrer: Marcus Wolf