All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Richard" <richard.yu@hpe.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: "Verdun, Jean-Marie" <verdun@hpe.com>,
	"Hawkins, Nick" <nick.hawkins@hpe.com>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"krzysztof.kozlowski+dt@linaro.org" 
	<krzysztof.kozlowski+dt@linaro.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v1 2/3] usb: gadget: udc: gxp-udc: add HPE GXP USB support
Date: Tue, 1 Aug 2023 18:50:16 +0000	[thread overview]
Message-ID: <PH7PR84MB207885AAF21466E6FCE26C0B8D0AA@PH7PR84MB2078.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <9171a00d-9ce5-4aca-8f81-2ad2b6961e17@rowland.harvard.edu>



-----Original Message-----
From: Alan Stern <stern@rowland.harvard.edu> 
Sent: Thursday, July 6, 2023 9:17 PM
To: Yu, Richard <richard.yu@hpe.com>
Cc: Verdun, Jean-Marie <verdun@hpe.com>; Hawkins, Nick <nick.hawkins@hpe.com>; gregkh@linuxfoundation.org; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org; linux-usb@vger.kernel.org; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 2/3] usb: gadget: udc: gxp-udc: add HPE GXP USB support

On Thu, Jul 06, 2023 at 04:59:09PM -0500, richard.yu@hpe.com wrote:
>> From: Richard Yu <richard.yu@hpe.com>
>> 
>> The HPE GXP vEHCI controller presents a four port EHCI compatible PCI 
>> function to host software. Each vEHCI port is logically connected to a 
>> corresponding set of virtual device registers.

> What makes the vEHCI controller virtual?  Presenting a "PCI function"
> certainly seems to indicate it is a physical device, indeed, a PCI device.

To the host and system OS, GXP is indeed to present a physical standard 
EHCI controller. The standard Linux EHCI driver will be used. What virtual
Here are the ports. We will remove references to EHCI in code and
Documentation. It has been modeled to following ASPEEDs v-hub approach.

>> +config USB_GXP_UDC
>> +        bool "GXP UDC Driver"
>> +        depends on ARCH_HPE_GXP || COMPILE_TEST
>> +        help
>> +          Say "y" to add support for GXP UDC driver

> Now hang on a second.  What sort of driver is this patch adding support
> for: a GXP vEHCI controller driver or a GXP UDC controller driver?  
> The patch description says the first, but the code says the second.

I will modify the patch description as a GXP virtual UDC driver.

> It sounds like this thing actually is a PCI device that appears to the OS as 
> an actual EHCI controller, but with virtual (rather than physical) downstream ports, 
> and it includes a virtual UDC for each port.  As such, it requires a driver for the virtual UDCs, 
> which is what this patch provides.  (No new driver is needed for the EHCI controller part, 
> since the kernel already has an EHCI driver.)

> Is that a correct description?  And if it is, what is the purpose of this device?  
> To act as a testing ground for gadget drivers?

That is a correct description. The purpose of this device is for us to create virtual USB devices,
such as virtual keyboard/ mouse using in OpenBmc KVM, virtual CD, virtual NIC...

> Alan Stern

Thank you very much for your feedback.

Richard.

  reply	other threads:[~2023-08-01 18:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06 21:59 [PATCH v1 0/3] Add USB driver for HPE GXP Architecture richard.yu
2023-07-06 21:59 ` [PATCH v1 1/3] dt-bindings: usb: Add HPE GXP UDCG Controller richard.yu
2023-07-07  8:27   ` Krzysztof Kozlowski
2023-08-01 18:07     ` Yu, Richard
2023-08-05 19:08       ` Krzysztof Kozlowski
2023-08-09 15:52         ` Yu, Richard
2023-08-19 18:30           ` Krzysztof Kozlowski
2023-08-23 16:07             ` Yu, Richard
2023-08-24  6:31               ` Krzysztof Kozlowski
2023-07-06 21:59 ` [PATCH v1 2/3] usb: gadget: udc: gxp-udc: add HPE GXP USB support richard.yu
2023-07-07  2:16   ` Alan Stern
2023-08-01 18:50     ` Yu, Richard [this message]
2023-07-07  6:07   ` Greg KH
2023-07-07  8:35   ` Krzysztof Kozlowski
2023-07-07 10:11   ` Greg KH
2023-07-06 21:59 ` [PATCH v1 3/3] MAINTAINERS: add USB support to GXP richard.yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH7PR84MB207885AAF21466E6FCE26C0B8D0AA@PH7PR84MB2078.NAMPRD84.PROD.OUTLOOK.COM \
    --to=richard.yu@hpe.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=nick.hawkins@hpe.com \
    --cc=robh+dt@kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=verdun@hpe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.