From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751961AbaDDIGQ (ORCPT ); Fri, 4 Apr 2014 04:06:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29427 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbaDDIGL (ORCPT ); Fri, 4 Apr 2014 04:06:11 -0400 Date: Fri, 4 Apr 2014 10:04:53 +0200 From: Stanislaw Gruszka To: Richard Genoud Cc: Ivo van Doorn , Gertjan van Wingerde , Helmut Schaa , "John W. Linville" , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rt2x00: Endless loop on hub port power down Message-ID: <20140404080453.GA1448@redhat.com> References: <1396536536-26423-1-git-send-email-richard.genoud@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1396536536-26423-1-git-send-email-richard.genoud@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 03, 2014 at 04:48:56PM +0200, Richard Genoud wrote: > I've met an endless (or at least very long) loop if I power down the usb > port on witch a usb wifi key is plugged. > (Ok, it's not very smart to power down a usb port when a usb key is in > used... but still, I think that should not lead to an endless loop). > > I have a lot of: > ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x0438 with error -71 > > (-71==-EPROTO) > > How to reproduce: > - plug an usb wifi key > - ip link set wlan0 up > - hub-ctrl -b usb_bus -d usb_device -P usb_port -p 0 > > hub-ctrl source: https://github.com/codazoda/hub-ctrl.c/blob/master/hub-ctrl.c > > The following patch prevents the endless loop, but I'm really not sure > that The Right Way To Do It (R) If device disappear, we should get -ENODEV status, why we get -EPROTO ? Stanislaw