ti: k3: drivers: sec_proxy: Switch error messages

The logic is correct here, but the error messages are
reversed, switch them.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
Andrew F. Davis 2019-01-04 12:39:54 -06:00
parent c40c88f81b
commit 4f9444cd29
1 changed files with 2 additions and 2 deletions

View File

@ -139,10 +139,10 @@ static inline int k3_sec_proxy_verify_thread(struct k3_sec_proxy_thread *spt,
if ((mmio_read_32(spt->scfg + SCFG_THREAD_CTRL) & SCFG_THREAD_CTRL_DIR_MASK)
!= (dir << SCFG_THREAD_CTRL_DIR_SHIFT)) {
if (dir)
ERROR("Trying to receive data on tx Thread %d\n",
ERROR("Trying to send data on RX Thread %d\n",
spt->id);
else
ERROR("Trying to send data on rx Thread %d\n",
ERROR("Trying to receive data on TX Thread %d\n",
spt->id);
return -EINVAL;
}