Quoting Stephen Boyd (2020-04-24 11:06:06) > Quoting Douglas Anderson (2020-04-24 09:46:56) > > @@ -581,24 +575,19 @@ static int tcs_write(struct rsc_drv *drv, const struct tcs_request *msg) > > + ret = find_free_tcs(tcs); > > + if (ret < 0) > > + goto unlock; > > + tcs_id = ret; > > Sorry, missed this. We should keep the tcs_id = find_free_tcs() thing > and then assign ret to it on failure. Otherwise the return value of this > function is -EBUSY or the tcs_id number instead of -EBUSY or 0. > Ah I see that ret is only returned on error. Nevermind that comment. I should make that coffee this morning...