Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755533AbbFLQUJ (ORCPT ); Fri, 12 Jun 2015 12:20:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56308 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbbFLQUI (ORCPT ); Fri, 12 Jun 2015 12:20:08 -0400 Date: Fri, 12 Jun 2015 09:20:07 -0700 From: Greg KH To: Juergen Gross Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com, linux-usb@vger.kernel.org Subject: Re: [Patch V2 2/3] usb: Introduce Xen pvUSB frontend Message-ID: <20150612162007.GC15911@kroah.com> References: <1434118201-25617-1-git-send-email-jgross@suse.com> <1434118201-25617-3-git-send-email-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434118201-25617-3-git-send-email-jgross@suse.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1961 Lines: 54 On Fri, Jun 12, 2015 at 04:10:00PM +0200, Juergen Gross wrote: > Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen > domU to communicate with a USB device assigned to that domU. The > communication is all done via the pvUSB backend in a driver domain > (usually Dom0) which is owner of the physical device. > > The code is taken from the pvUSB implementation in Xen done by Fujitsu > based on Linux kernel 2.6.18. > > Changes from the original version are: > - port to upstream kernel > - put all code in just one source file > - move module to appropriate location in kernel tree > - adapt to Linux style guide > - minor code modifications to increase readability > > Signed-off-by: Juergen Gross > --- > drivers/usb/Kconfig | 2 + > drivers/usb/Makefile | 2 + > drivers/usb/xen/Kconfig | 10 + > drivers/usb/xen/Makefile | 5 + > drivers/usb/xen/xen-usbfront.c | 1647 ++++++++++++++++++++++++++++++++++++++++ A subdirectory for a single file? That seems like overkill, don't you think? As this is a USB "host" driver, why not put it in that directory? Also, last time these patches were posted, people asked why you can't use libusb/usbfs instead, what happened with that? Or usbip? > +config XEN_USB_FRONTEND > + tristate "Xen USB frontend driver" > + depends on XEN > + default m Remove this, default should be 'n'. > +/* status of attached device */ > +struct vdevice_status { > + int devnum; > + enum usb_device_state status; > + enum usb_device_speed speed; > +}; Always run your patches through checkpatch.pl so people don't tell you about the things that checkpatch.pl would have told you about... greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/