Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753987AbbBZOJr (ORCPT ); Thu, 26 Feb 2015 09:09:47 -0500 Received: from cantor2.suse.de ([195.135.220.15]:45465 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942AbbBZOJp (ORCPT ); Thu, 26 Feb 2015 09:09:45 -0500 Message-ID: <1424959760.27644.26.camel@linux-0dmf.site> Subject: Re: [PATCH 2/4] usb: Introduce Xen pvUSB frontend From: Oliver Neukum 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, gregkh@linuxfoundation.org, cyliu@suse.com Date: Thu, 26 Feb 2015 15:09:20 +0100 In-Reply-To: <1424957717-392-3-git-send-email-jgross@suse.com> References: <1424957717-392-1-git-send-email-jgross@suse.com> <1424957717-392-3-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2011 Lines: 53 On Thu, 2015-02-26 at 14:35 +0100, Juergen Gross wrote: > + > + /* reset completion */ > + if ((info->ports[wIndex].status & > USB_PORT_STAT_RESET) != 0 && > + time_after_eq(jiffies, > info->ports[wIndex].timeout)) { > + info->ports[wIndex].status |= > + USB_PORT_STAT_C_RESET << 16; > + info->ports[wIndex].status &= > ~USB_PORT_STAT_RESET; > + > + if (info->devices[wIndex].status != > + USB_STATE_NOTATTACHED) { > + info->ports[wIndex].status |= > + USB_PORT_STAT_ENABLE; > + info->devices[wIndex].status = > + USB_STATE_DEFAULT; > + } > + > + switch (info->devices[wIndex].speed) { > + case USB_SPEED_LOW: > + info->ports[wIndex].status |= > + USB_PORT_STAT_LOW_SPEED; > + break; > + case USB_SPEED_HIGH: > + info->ports[wIndex].status |= > + USB_PORT_STAT_HIGH_SPEED; > + break; > + default: > + break; > + } > + } > + > + ((u16 *)buf)[0] = > cpu_to_le16(info->ports[wIndex].status); > + ((u16 *)buf)[1] = > cpu_to_le16(info->ports[wIndex].status >> 16); Why in two chunks? Regards Oliver > + break; -- Oliver Neukum -- 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/