Re: [PATCH v2 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels

2021-03-07 Thread Baolin Wang
On Sat, Feb 13, 2021 at 8:22 PM Orson Zhai wrote: > > From: Orson Zhai > > Unisoc mailbox has no way to be enabled/disabled for any single channel. > They can only be set to startup or shutdown as a whole device at same time. > > Add a variable to count references to avoid mailbox FIFO being rese

[PATCH v2 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels

2021-02-13 Thread Orson Zhai
From: Orson Zhai Unisoc mailbox has no way to be enabled/disabled for any single channel. They can only be set to startup or shutdown as a whole device at same time. Add a variable to count references to avoid mailbox FIFO being reset unexpectedly when clients are requesting or freeing channels.