Commit 4de24819 authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo

rtl8xxxu: Fix incorrect test for auto LLT failure

The logic for testing auto load failure in rtl8xxxu_auto_llt_table()
was inverted.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent a47b9d47
...@@ -2781,7 +2781,6 @@ static int rtl8xxxu_auto_llt_table(struct rtl8xxxu_priv *priv, u8 last_tx_page) ...@@ -2781,7 +2781,6 @@ static int rtl8xxxu_auto_llt_table(struct rtl8xxxu_priv *priv, u8 last_tx_page)
int i; int i;
val32 = rtl8xxxu_read32(priv, REG_AUTO_LLT); val32 = rtl8xxxu_read32(priv, REG_AUTO_LLT);
pr_info("AUTO_LLT = %08x\n", val32);
val32 |= AUTO_LLT_INIT_LLT; val32 |= AUTO_LLT_INIT_LLT;
rtl8xxxu_write32(priv, REG_AUTO_LLT, val32); rtl8xxxu_write32(priv, REG_AUTO_LLT, val32);
...@@ -2792,12 +2791,10 @@ static int rtl8xxxu_auto_llt_table(struct rtl8xxxu_priv *priv, u8 last_tx_page) ...@@ -2792,12 +2791,10 @@ static int rtl8xxxu_auto_llt_table(struct rtl8xxxu_priv *priv, u8 last_tx_page)
usleep_range(2, 4); usleep_range(2, 4);
} }
if (i) { if (!i) {
ret = -EBUSY; ret = -EBUSY;
dev_warn(&priv->udev->dev, "LLT table init failed\n"); dev_warn(&priv->udev->dev, "LLT table init failed\n");
} }
else
dev_warn(&priv->udev->dev, "LLT table init success\n");
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment