Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp46167pxk; Thu, 10 Sep 2020 23:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHOhUnz+9SY06CK5ndQi+LGpk7AFSi2STO9T1dqt2N7gIov1JnvzRB1gC31Yj4qm/4koUS X-Received: by 2002:aa7:d68c:: with SMTP id d12mr397592edr.274.1599804783846; Thu, 10 Sep 2020 23:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599804783; cv=none; d=google.com; s=arc-20160816; b=yRLJQ/PN7EGqY/P1UUJXTxPWsaWk4QdtZ65NfjJQpUtPRcIgRGN5VxvqoFoMKYqBCL meFvzpL0InuldUiCRqlZbTh5JGvUJScpCJUOt0xWlkqBdSRBhjbdKihwqMvVcY3vfpek jZfnGG2Ftze4KvYPDT7fK2lfKYYTKs2+i3Hy19iM2A3JcOdUIJA++e/V5le/Q+qgjgM6 uNttu8p770m/+FumRJRzM106bV3uWIEl1NW3dkXmgUAJg7Hnqz7yzPYtLFGtEe2lDxF4 2WSXUjpe5prCPCq6ST6pYIGh4Pr1OkMOqVzm8FdAkQkdr+m9LjcfTVAxcc96e/qBP3SX BYKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AVfOp10WIsXezzf12PmnmsVXPOgNBgnPgfDMxcnjEaY=; b=M1KoFyg75rLJxNBlAvmmeoBko6DumepR/5GJ0oW/G+sb+cNP0xhCaBDiUQm1dOypdX //Awjo0xiYCIye1vEzJ3HOaAkDcheY05CcAEDU78PmY9TER9UF3FIuQ0fEQFkXWM1TRB z+x/xvx7GKyoE+GiP+mCIDcl4ju1iH2iMgcyxrNIr0pnaB3ibVj/0hFc65PIqXUrR4MB BSEKF9ShA+fDtBZg6b+oiji8Uzykz376B4VBWVeA0JnKHnBbbMfRP16BefeHyX3IGCAT Nstq2V0YAZeWZR0U99LZSLKjGUYZI3NCLkyH03A9morW1ySiru+Szu0CANaBDVwRmgUC CUzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dfi+I0kM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si657161ejg.126.2020.09.10.23.12.41; Thu, 10 Sep 2020 23:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dfi+I0kM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725795AbgIKGJa (ORCPT + 99 others); Fri, 11 Sep 2020 02:09:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:34788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgIKGJ3 (ORCPT ); Fri, 11 Sep 2020 02:09:29 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 766E121D7E; Fri, 11 Sep 2020 06:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599804569; bh=i4EvJQ4Hd4XUMCwTQL0NZfkrCdHx7ugse8XeINccp6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dfi+I0kMUG1tla9siuFgxikCDgMn+UD1N3AnfGGyzlFtj38Z1iUNuP4s85al6DOKV aQx9yQ4lpuzx12l1wn2CjqpCuyspjqn1oKprCxxFnxGRvFDRlYTQ7K97MZQ39P6b65 siLwfoBGTDyORuQxpw93n2jSqCHoCi4DdHvcozPA= Date: Fri, 11 Sep 2020 08:09:25 +0200 From: Greg Kroah-Hartman To: Hector Martin Cc: James Hilliard , Johan Hovold , Lars Melin , Oliver Neukum , linux-usb@vger.kernel.org, Linux Kernel Mailing List , Russ Dill Subject: Re: [PATCH v2] usb: serial: Repair FTDI FT232R bricked eeprom Message-ID: <20200911060925.GA553486@kroah.com> References: <20200909193419.2006744-1-james.hilliard1@gmail.com> <1599706954.10822.3.camel@suse.de> <20200910080850.GD24441@localhost> <20200910085541.GA1099591@kroah.com> <26a723e4-e166-6377-875a-f737a15dc6b1@marcansoft.com> <0bcb0208-04bc-40c8-7b42-56b4dcf93f21@marcansoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0bcb0208-04bc-40c8-7b42-56b4dcf93f21@marcansoft.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2020 at 04:54:08AM +0900, Hector Martin wrote: > On 11/09/2020 03.51, James Hilliard wrote: > > I haven't tested this yet but my assumption was that either a kernel driver > > or libusb can issue usb control messages, but both can not be bound to > > a device at the same time. I figured this wouldn't have come up when you > > tested your python script since the script likely predated adding the brick PID > > to the ftdi_sio Linux kernel driver. > > Binding to interfaces is exclusive, but global device control messages are > not issued to an interface. I think it should work even if the kernel driver > is bound (this is how lsusb works too, since it issues control requests even > to devices bound to drivers). Even if it is necessary to unbind it, though, > libusb already provides a single function to do that > (libusb_detach_kernel_driver). You really should unbind the device from the driver when doing stuff like this, so the kernel doesn't get confused. thanks, greg k-h