Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1339363pxk; Thu, 10 Sep 2020 12:56:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW6wh2cv68QB3H8ePgeQP8FGA8qnmiUdcTCOO5deTcL718FCmrOI7FsnTiasD3qPdueu/R X-Received: by 2002:a17:906:e918:: with SMTP id ju24mr10247455ejb.442.1599767803874; Thu, 10 Sep 2020 12:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599767803; cv=none; d=google.com; s=arc-20160816; b=PBY/9vhnCRPTAE8iMwUey2GanC2HQcl1Dxa12zj8/PnijEpWDroFJ/zgHmEsY9rV2h aAL7GxLt0W0MLdIF9l9mXe/JdMVQ7ZyxI9LufXXS18yZvWmxrIJDvxVsYJOCI2+Ttdzr LKwQr97lCgntws6ZjlL1ze1L0WiDO93CnD4XUtHnfZs/cj5yPmV3wg3lriks95BcNLhu AVlODbW2tPGAmlX8j+gxXCsPw7Nd6M+fK1rJJIPUY6JTqmPwnTcPNcOxO0Tb779PRJ9x icJQiwimkpWgrcB3XqIIDN1n6nN8EkaELkvDSGPqJg1Ax5V/08HhMLCnCKNnw5SJiZT0 BZSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6L+wIOWuKFKUsLHoCT0Gq3fSEmgA56WyxNhxNsD2k8c=; b=znaML0lE1W+DwsSxu3u4r3Gr0hVyGFB+n/K0xWBecogTvCxs6gEbbfbpgQ5JNZecgM ZMoIBKJl57EShXircGYJfy+P5mGNxfV8b21LUbRY8pZZBmVIg35rfO/5uDxZbXUcO6oc 6n+J5dhqXZ8IXrIUJF2QrRXVO0qyMeKAF6FVKIsdkSchTJEsjjB+KIW1qkAULe9yzQWG UCFZgI2Zvi7s4DUg77tsLnzodlCgRuAV11zQ7IdwspXDNrar16/uNbX974yL7QH90AIe i5HnEm1CaM4uaKwch75wCyBqonnsKNWjLbpyTpbE3y+p/w8cje/EBHhygKdxY2O+Cm7g yo3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si240919eji.486.2020.09.10.12.56.21; Thu, 10 Sep 2020 12:56:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbgIJTze (ORCPT + 99 others); Thu, 10 Sep 2020 15:55:34 -0400 Received: from marcansoft.com ([212.63.210.85]:60602 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgIJTyT (ORCPT ); Thu, 10 Sep 2020 15:54:19 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id EAA7A41982; Thu, 10 Sep 2020 19:54:10 +0000 (UTC) Subject: Re: [PATCH v2] usb: serial: Repair FTDI FT232R bricked eeprom To: James Hilliard Cc: Greg Kroah-Hartman , Johan Hovold , Lars Melin , Oliver Neukum , linux-usb@vger.kernel.org, Linux Kernel Mailing List , Russ Dill 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> From: Hector Martin Message-ID: <0bcb0208-04bc-40c8-7b42-56b4dcf93f21@marcansoft.com> Date: Fri, 11 Sep 2020 04:54:08 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Hector Martin (hector@marcansoft.com) Public Key: https://mrcn.st/pub