All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix spelling and reset device on module unload
@ 2016-09-09 18:01 Jes.Sorensen
  2016-09-09 18:01 ` [PATCH 1/2] rtl8xxxu: Reset device on module unload if still attached Jes.Sorensen
  2016-09-09 18:01 ` [PATCH 2/2] rtl8xxxu: fix spelling mistake "firmare" -> "firmware" Jes.Sorensen
  0 siblings, 2 replies; 4+ messages in thread
From: Jes.Sorensen @ 2016-09-09 18:01 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, Jes Sorensen

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

Two fixes for the rtl8xxxu driver.

I am working on a much larger set which adds 8188eu support, and while
it's close to there, I am still chasing one issue where it doesn't
come back if reloading the driver module.

In the interim, these two should be good to apply.

Cheers,
Jes


Colin Ian King (1):
  rtl8xxxu: fix spelling mistake "firmare" -> "firmware"

Jes Sorensen (1):
  rtl8xxxu: Reset device on module unload if still attached

 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] rtl8xxxu: Reset device on module unload if still attached
  2016-09-09 18:01 [PATCH 0/2] Fix spelling and reset device on module unload Jes.Sorensen
@ 2016-09-09 18:01 ` Jes.Sorensen
  2016-09-14 17:01   ` [1/2] " Kalle Valo
  2016-09-09 18:01 ` [PATCH 2/2] rtl8xxxu: fix spelling mistake "firmare" -> "firmware" Jes.Sorensen
  1 sibling, 1 reply; 4+ messages in thread
From: Jes.Sorensen @ 2016-09-09 18:01 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, Jes Sorensen

From: Jes Sorensen <Jes.Sorensen@redhat.com>

If the USB dongle is still attached, reset it on module unload to
avoid scans failing when reloading the driver.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
index c362083..d2611a4 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
@@ -6129,6 +6129,11 @@ static void rtl8xxxu_disconnect(struct usb_interface *interface)
 	mutex_destroy(&priv->usb_buf_mutex);
 	mutex_destroy(&priv->h2c_mutex);
 
+	if (priv->udev->state != USB_STATE_NOTATTACHED) {
+		dev_info(&priv->udev->dev,
+			 "Device still attached, trying to reset\n");
+		usb_reset_device(priv->udev);
+	}
 	usb_put_dev(priv->udev);
 	ieee80211_free_hw(hw);
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] rtl8xxxu: fix spelling mistake "firmare" -> "firmware"
  2016-09-09 18:01 [PATCH 0/2] Fix spelling and reset device on module unload Jes.Sorensen
  2016-09-09 18:01 ` [PATCH 1/2] rtl8xxxu: Reset device on module unload if still attached Jes.Sorensen
@ 2016-09-09 18:01 ` Jes.Sorensen
  1 sibling, 0 replies; 4+ messages in thread
From: Jes.Sorensen @ 2016-09-09 18:01 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, Colin Ian King, Jes Sorensen

From: Colin Ian King <colin.king@canonical.com>

Trivial fix to spelling mistakes in dev_dbg message.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
index d2611a4..ca92022 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
@@ -3921,11 +3921,11 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
 	rtl8xxxu_write16(priv, REG_TRXFF_BNDY + 2, priv->fops->trxff_boundary);
 
 	ret = rtl8xxxu_download_firmware(priv);
-	dev_dbg(dev, "%s: download_fiwmare %i\n", __func__, ret);
+	dev_dbg(dev, "%s: download_firmware %i\n", __func__, ret);
 	if (ret)
 		goto exit;
 	ret = rtl8xxxu_start_firmware(priv);
-	dev_dbg(dev, "%s: start_fiwmare %i\n", __func__, ret);
+	dev_dbg(dev, "%s: start_firmware %i\n", __func__, ret);
 	if (ret)
 		goto exit;
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [1/2] rtl8xxxu: Reset device on module unload if still attached
  2016-09-09 18:01 ` [PATCH 1/2] rtl8xxxu: Reset device on module unload if still attached Jes.Sorensen
@ 2016-09-14 17:01   ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2016-09-14 17:01 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: linux-wireless, Jes Sorensen

Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> From: Jes Sorensen <Jes.Sorensen@redhat.com>
> 
> If the USB dongle is still attached, reset it on module unload to
> avoid scans failing when reloading the driver.
> 
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

Thanks, 2 patches applied to wireless-drivers-next.git:

54cdf5c727cb rtl8xxxu: Reset device on module unload if still attached
0cd7f70399f7 rtl8xxxu: fix spelling mistake "firmare" -> "firmware"

-- 
Sent by pwcli
https://patchwork.kernel.org/patch/9324069/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-14 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-09 18:01 [PATCH 0/2] Fix spelling and reset device on module unload Jes.Sorensen
2016-09-09 18:01 ` [PATCH 1/2] rtl8xxxu: Reset device on module unload if still attached Jes.Sorensen
2016-09-14 17:01   ` [1/2] " Kalle Valo
2016-09-09 18:01 ` [PATCH 2/2] rtl8xxxu: fix spelling mistake "firmare" -> "firmware" Jes.Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.