From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Drake Subject: [PATCH] zd1211rw: Reset device in the probe call Date: Mon, 29 Jan 2007 01:00:15 +0000 (GMT) Message-ID: <20070129010015.CA9397B409F@zog.reactivated.net> Cc: netdev@vger.kernel.org To: linville@tuxdriver.com Return-path: Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:56277 "EHLO mtaout02-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933022AbXA2BAK (ORCPT ); Sun, 28 Jan 2007 20:00:10 -0500 Cc: kune@deine-taler.de Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Ulrich Kunitz This resets the device in the probe call. It does work with 2.6.19.2 including the softmac patches. It might fix the reboot/reset problems a lot of people reported. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake --- zd_usb.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Index: linux/drivers/net/wireless/zd1211rw/zd_usb.c =================================================================== --- linux.orig/drivers/net/wireless/zd1211rw/zd_usb.c +++ linux/drivers/net/wireless/zd1211rw/zd_usb.c @@ -922,6 +922,8 @@ static int probe(struct usb_interface *i goto error; } + usb_reset_device(interface_to_usbdev(intf)); + netdev = zd_netdev_alloc(intf); if (netdev == NULL) { r = -ENOMEM;