From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752368AbdGGJxl convert rfc822-to-8bit (ORCPT ); Fri, 7 Jul 2017 05:53:41 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:34937 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317AbdGGJxj (ORCPT ); Fri, 7 Jul 2017 05:53:39 -0400 X-Auth-Info: 1Sp059EWkilv87oIF+UWiiA9jIh0all2TC+L5ZsmfSE= Date: Fri, 7 Jul 2017 11:53:29 +0200 From: Anatolij Gustschin To: =?UTF-8?B?QmrDuHJu?= Mork Cc: Lee Jones , Linus Walleij , Alan Tull , Moritz Fischer , linux-gpio@vger.kernel.org, linux-fpga@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: Re: [PATCH 1/3] mfd: Add support for FTDI FT232H devices Message-ID: <20170707115329.06dcdb69@crub> In-Reply-To: <87y3s0adr3.fsf@miraculix.mork.no> References: <1499374158-12388-1-git-send-email-agust@denx.de> <1499374158-12388-2-git-send-email-agust@denx.de> <87y3s0adr3.fsf@miraculix.mork.no> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 07 Jul 2017 09:48:48 +0200 Bjørn Mork bjorn@mork.no wrote: >[adding Johan on the CC list] > >Anatolij Gustschin writes: > >> +static struct usb_device_id ftdi_mfd_table[] = { >> + { USB_DEVICE(0x0403, 0x6014) }, >> + {} >> +}; >> +MODULE_DEVICE_TABLE(usb, ftdi_mfd_table); > >This device ID is currently handled by the ftdi_sio driver, so I believe >you at least have to explain how you intend these two drivers to >cooperate... these drivers cannot cooperate, the different ftdi function modes use same device pins as in UART mode. So, you either can use the device in UART interface mode or in some different mode. I do not load the ftdi_sio module or do unbind the USB device from the ftdio_sio driver and bind it to the mfd driver, e.g.: sh -c "echo -n "3-2:1.0" > /sys/bus/usb/drivers/ftdi_sio/unbind" sh -c "echo -n "3-2:1.0" > /sys/bus/usb/drivers/ftdi-mfd/bind" thanks, Anatolij