Re: [PATCH] bus: mhi: core: Fix check for syserr at power_up

2021-03-10 Thread Manivannan Sadhasivam
On Fri, Feb 12, 2021 at 02:27:23PM -0700, Jeffrey Hugo wrote: > The check to see if we have reset the device after detecting syserr at > power_up is inverted. wait_for_event_timeout() returns 0 on failure, > and a positive value on success. The check is looking for non-zero > as a failure, which

Re: [PATCH] bus: mhi: core: Fix check for syserr at power_up

2021-02-15 Thread Manivannan Sadhasivam
On Fri, Feb 12, 2021 at 02:27:23PM -0700, Jeffrey Hugo wrote: > The check to see if we have reset the device after detecting syserr at > power_up is inverted. wait_for_event_timeout() returns 0 on failure, > and a positive value on success. The check is looking for non-zero > as a failure, which

Re: [PATCH] bus: mhi: core: Fix check for syserr at power_up

2021-02-14 Thread Loic Poulain
On Fri, 12 Feb 2021 at 22:27, Jeffrey Hugo wrote: > > The check to see if we have reset the device after detecting syserr at > power_up is inverted. wait_for_event_timeout() returns 0 on failure, > and a positive value on success. The check is looking for non-zero > as a failure, which is

[PATCH] bus: mhi: core: Fix check for syserr at power_up

2021-02-12 Thread Jeffrey Hugo
The check to see if we have reset the device after detecting syserr at power_up is inverted. wait_for_event_timeout() returns 0 on failure, and a positive value on success. The check is looking for non-zero as a failure, which is likely to incorrectly cause a device init failure if syserr was