All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
@ 2014-08-04 17:22 Chen, Alvin
  2014-08-19 14:15 ` Felipe Balbi
  2014-08-20 14:54 ` Felipe Balbi
  0 siblings, 2 replies; 10+ messages in thread
From: Chen, Alvin @ 2014-08-04 17:22 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-usb, linux-kernel, Boon Leong Ong

From: Bryan O'Donoghue <bryan.odonoghue@intel.com>

This patch is to enable the USB gadget device for Intel Quark X1000

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
Signed-off-by: Bing Niu <bing.niu@intel.com>
Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
---
 drivers/usb/gadget/udc/Kconfig   |    3 ++-
 drivers/usb/gadget/udc/pch_udc.c |   22 +++++++++++++++++++---
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig
index 5151f94..34ebaa6 100644
--- a/drivers/usb/gadget/udc/Kconfig
+++ b/drivers/usb/gadget/udc/Kconfig
@@ -332,7 +332,7 @@ config USB_GOKU
 	   gadget drivers to also be dynamically linked.
 
 config USB_EG20T
-	tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7831) UDC"
+	tristate "Intel QUARK X1000/EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7831) UDC"
 	depends on PCI
 	help
 	  This is a USB device driver for EG20T PCH.
@@ -353,6 +353,7 @@ config USB_EG20T
 	  ML7213/ML7831 is companion chip for Intel Atom E6xx series.
 	  ML7213/ML7831 is completely compatible for Intel EG20T PCH.
 
+	  This driver can be used with Intel's Quark X1000 SOC platform
 #
 # LAST -- dummy/emulated controller
 #
diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c
index eb8c3be..460d953 100644
--- a/drivers/usb/gadget/udc/pch_udc.c
+++ b/drivers/usb/gadget/udc/pch_udc.c
@@ -343,6 +343,7 @@ struct pch_vbus_gpio_data {
  * @setup_data:		Received setup data
  * @phys_addr:		of device memory
  * @base_addr:		for mapped device memory
+ * @bar:		Indicates which PCI BAR for USB regs
  * @irq:		IRQ line for the device
  * @cfg_data:		current cfg, intf, and alt in use
  * @vbus_gpio:		GPIO informaton for detecting VBUS
@@ -370,14 +371,17 @@ struct pch_udc_dev {
 	struct usb_ctrlrequest		setup_data;
 	unsigned long			phys_addr;
 	void __iomem			*base_addr;
+	unsigned			bar;
 	unsigned			irq;
 	struct pch_udc_cfg_data		cfg_data;
 	struct pch_vbus_gpio_data	vbus_gpio;
 };
 #define to_pch_udc(g)	(container_of((g), struct pch_udc_dev, gadget))
 
+#define PCH_UDC_PCI_BAR_QUARK_X1000	0
 #define PCH_UDC_PCI_BAR			1
 #define PCI_DEVICE_ID_INTEL_EG20T_UDC	0x8808
+#define PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC	0x0939
 #define PCI_VENDOR_ID_ROHM		0x10DB
 #define PCI_DEVICE_ID_ML7213_IOH_UDC	0x801D
 #define PCI_DEVICE_ID_ML7831_IOH_UDC	0x8808
@@ -3076,7 +3080,7 @@ static void pch_udc_remove(struct pci_dev *pdev)
 		iounmap(dev->base_addr);
 	if (dev->mem_region)
 		release_mem_region(dev->phys_addr,
-				   pci_resource_len(pdev, PCH_UDC_PCI_BAR));
+				   pci_resource_len(pdev, dev->bar));
 	if (dev->active)
 		pci_disable_device(pdev);
 	kfree(dev);
@@ -3144,9 +3148,15 @@ static int pch_udc_probe(struct pci_dev *pdev,
 	dev->active = 1;
 	pci_set_drvdata(pdev, dev);
 
+	/* Determine BAR based on PCI ID */
+	if (id->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC)
+		dev->bar = PCH_UDC_PCI_BAR_QUARK_X1000;
+	else
+		dev->bar = PCH_UDC_PCI_BAR;
+
 	/* PCI resource allocation */
-	resource = pci_resource_start(pdev, 1);
-	len = pci_resource_len(pdev, 1);
+	resource = pci_resource_start(pdev, dev->bar);
+	len = pci_resource_len(pdev, dev->bar);
 
 	if (!request_mem_region(resource, len, KBUILD_MODNAME)) {
 		dev_err(&pdev->dev, "%s: pci device used already\n", __func__);
@@ -3212,6 +3222,12 @@ finished:
 
 static const struct pci_device_id pch_udc_pcidev_id[] = {
 	{
+		PCI_DEVICE(PCI_VENDOR_ID_INTEL,
+			   PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC),
+		.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
+		.class_mask = 0xffffffff,
+	},
+	{
 		PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EG20T_UDC),
 		.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
 		.class_mask = 0xffffffff,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-04 17:22 [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000 Chen, Alvin
@ 2014-08-19 14:15 ` Felipe Balbi
  2014-08-20  0:46   ` Chen, Alvin
  2014-08-20 14:54 ` Felipe Balbi
  1 sibling, 1 reply; 10+ messages in thread
From: Felipe Balbi @ 2014-08-19 14:15 UTC (permalink / raw)
  To: Chen, Alvin; +Cc: Felipe Balbi, linux-usb, linux-kernel, Boon Leong Ong

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Hi,

On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> 
> This patch is to enable the USB gadget device for Intel Quark X1000
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> Signed-off-by: Bing Niu <bing.niu@intel.com>
> Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>

Can someone confirm to me this is not another incarnation of chipidea ?

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-19 14:15 ` Felipe Balbi
@ 2014-08-20  0:46   ` Chen, Alvin
  2014-08-20  3:19     ` Felipe Balbi
  0 siblings, 1 reply; 10+ messages in thread
From: Chen, Alvin @ 2014-08-20  0:46 UTC (permalink / raw)
  To: balbi; +Cc: linux-usb, linux-kernel, Ong, Boon Leong


> Hi,
> 
> On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> > From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> >
> > This patch is to enable the USB gadget device for Intel Quark X1000
> >
> > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > Signed-off-by: Bing Niu <bing.niu@intel.com>
> > Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> 
> Can someone confirm to me this is not another incarnation of chipidea ?

No, this is not another incarnation of chipidea. And its cover letter is as following:

On Mon, Aug 04, 2014 at 11:00:07AM -0700, Chen, Alvin wrote:
> From: "Alvin (Weike) Chen" <alvin.chen@intel.com>
> 
> Hi,
> Intel Quark X1000 consists of one USB gadget device which can be PCI enumerated. 
> pch_udc layer doesn't support it. Thus, we add support for Intel Quark 
> X1000 USB gadget device as well.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-20  0:46   ` Chen, Alvin
@ 2014-08-20  3:19     ` Felipe Balbi
  0 siblings, 0 replies; 10+ messages in thread
From: Felipe Balbi @ 2014-08-20  3:19 UTC (permalink / raw)
  To: Chen, Alvin; +Cc: balbi, linux-usb, linux-kernel, Ong, Boon Leong

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

Hi,

On Wed, Aug 20, 2014 at 12:46:33AM +0000, Chen, Alvin wrote:
> 
> > Hi,
> > 
> > On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> > > From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > >
> > > This patch is to enable the USB gadget device for Intel Quark X1000
> > >
> > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > > Signed-off-by: Bing Niu <bing.niu@intel.com>
> > > Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> > 
> > Can someone confirm to me this is not another incarnation of chipidea ?
> 
> No, this is not another incarnation of chipidea. And its cover letter is as following:
> 
> On Mon, Aug 04, 2014 at 11:00:07AM -0700, Chen, Alvin wrote:
> > From: "Alvin (Weike) Chen" <alvin.chen@intel.com>
> > 
> > Hi,
> > Intel Quark X1000 consists of one USB gadget device which can be PCI enumerated. 
> > pch_udc layer doesn't support it. Thus, we add support for Intel Quark 
> > X1000 USB gadget device as well.

hehe, right I *know* what the patch is doing. I can read the diff and
figure out that you're adding support for Quark to PCH UDC because
Quark's USB IP is the same, what I wasking was if that IP was actually
an instance of the chipidea UDC. After looking at the address space
definitions on both drivers, I see that it's not.

So tomorrow I'll look at this patch again.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-04 17:22 [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000 Chen, Alvin
  2014-08-19 14:15 ` Felipe Balbi
@ 2014-08-20 14:54 ` Felipe Balbi
  2014-08-20 16:15   ` Greg KH
  1 sibling, 1 reply; 10+ messages in thread
From: Felipe Balbi @ 2014-08-20 14:54 UTC (permalink / raw)
  To: Chen, Alvin, Greg KH
  Cc: Felipe Balbi, linux-usb, linux-kernel, Boon Leong Ong

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

Hi Greg,

On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> 
> This patch is to enable the USB gadget device for Intel Quark X1000
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> Signed-off-by: Bing Niu <bing.niu@intel.com>
> Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>

this patch is basically just a new device ID being added to an existing
driver, do you mind if I add it to the -rc or you prefer to wait for
v3.18 merge window ?

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-20 14:54 ` Felipe Balbi
@ 2014-08-20 16:15   ` Greg KH
  2014-08-20 16:20     ` Felipe Balbi
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2014-08-20 16:15 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Chen, Alvin, linux-usb, linux-kernel, Boon Leong Ong

On Wed, Aug 20, 2014 at 09:54:46AM -0500, Felipe Balbi wrote:
> Hi Greg,
> 
> On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> > From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > 
> > This patch is to enable the USB gadget device for Intel Quark X1000
> > 
> > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > Signed-off-by: Bing Niu <bing.niu@intel.com>
> > Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> 
> this patch is basically just a new device ID being added to an existing
> driver, do you mind if I add it to the -rc or you prefer to wait for
> v3.18 merge window ?

New ids are fine for -rc and stable kernels, don't wait for 3.18.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-20 16:15   ` Greg KH
@ 2014-08-20 16:20     ` Felipe Balbi
  2014-08-20 16:55       ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Felipe Balbi @ 2014-08-20 16:20 UTC (permalink / raw)
  To: Greg KH
  Cc: Felipe Balbi, Chen, Alvin, linux-usb, linux-kernel, Boon Leong Ong

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

On Wed, Aug 20, 2014 at 11:15:05AM -0500, Greg KH wrote:
> On Wed, Aug 20, 2014 at 09:54:46AM -0500, Felipe Balbi wrote:
> > Hi Greg,
> > 
> > On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> > > From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > > 
> > > This patch is to enable the USB gadget device for Intel Quark X1000
> > > 
> > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > > Signed-off-by: Bing Niu <bing.niu@intel.com>
> > > Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> > 
> > this patch is basically just a new device ID being added to an existing
> > driver, do you mind if I add it to the -rc or you prefer to wait for
> > v3.18 merge window ?
> 
> New ids are fine for -rc and stable kernels, don't wait for 3.18.

it does a little more than that as it needs to select the proper PCI
BAR for Quark, I guess that's still fine ?

Original patch here:

http://marc.info/?l=linux-kernel&m=140714448511662&w=2

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-20 16:20     ` Felipe Balbi
@ 2014-08-20 16:55       ` Greg KH
  0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2014-08-20 16:55 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Chen, Alvin, linux-usb, linux-kernel, Boon Leong Ong

On Wed, Aug 20, 2014 at 11:20:09AM -0500, Felipe Balbi wrote:
> On Wed, Aug 20, 2014 at 11:15:05AM -0500, Greg KH wrote:
> > On Wed, Aug 20, 2014 at 09:54:46AM -0500, Felipe Balbi wrote:
> > > Hi Greg,
> > > 
> > > On Mon, Aug 04, 2014 at 10:22:54AM -0700, Chen, Alvin wrote:
> > > > From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > > > 
> > > > This patch is to enable the USB gadget device for Intel Quark X1000
> > > > 
> > > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> > > > Signed-off-by: Bing Niu <bing.niu@intel.com>
> > > > Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> > > 
> > > this patch is basically just a new device ID being added to an existing
> > > driver, do you mind if I add it to the -rc or you prefer to wait for
> > > v3.18 merge window ?
> > 
> > New ids are fine for -rc and stable kernels, don't wait for 3.18.
> 
> it does a little more than that as it needs to select the proper PCI
> BAR for Quark, I guess that's still fine ?

Yes, as it's totally safe if you don't have this hardware, so all should
be good.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
  2014-08-11  5:21 Chen, Alvin
@ 2014-08-11  5:36 ` Greg KH
  0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2014-08-11  5:36 UTC (permalink / raw)
  To: Chen, Alvin; +Cc: balbi, linux-usb, linux-kernel, Ong, Boon Leong

On Mon, Aug 11, 2014 at 05:21:50AM +0000, Chen, Alvin wrote:
> Hi Felipe,
> 
> Any update for this patch? Just want to follow-up.

It's the middle of the merge window, we can't do anything until 3.17-rc1
is out, please relax...

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000
@ 2014-08-11  5:21 Chen, Alvin
  2014-08-11  5:36 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Chen, Alvin @ 2014-08-11  5:21 UTC (permalink / raw)
  To: balbi; +Cc: linux-usb, linux-kernel, Ong, Boon Leong

Hi Felipe,

Any update for this patch? Just want to follow-up.


> -----Original Message-----
> From: Chen, Alvin
> Sent: Tuesday, August 05, 2014 1:23 AM
> To: Felipe Balbi
> Cc: linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; Ong, Boon 
> Leong
> Subject: [PATCH] USB: pch_udc: USB gadget device support for Intel 
> Quark
> X1000
> 
> From: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> 
> This patch is to enable the USB gadget device for Intel Quark X1000
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@intel.com>
> Signed-off-by: Bing Niu <bing.niu@intel.com>
> Signed-off-by: Alvin (Weike) Chen <alvin.chen@intel.com>
> ---
>  drivers/usb/gadget/udc/Kconfig   |    3 ++-
>  drivers/usb/gadget/udc/pch_udc.c |   22 +++++++++++++++++++---
>  2 files changed, 21 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/usb/gadget/udc/Kconfig 
> b/drivers/usb/gadget/udc/Kconfig index 5151f94..34ebaa6 100644
> --- a/drivers/usb/gadget/udc/Kconfig
> +++ b/drivers/usb/gadget/udc/Kconfig
> @@ -332,7 +332,7 @@ config USB_GOKU
>  	   gadget drivers to also be dynamically linked.
> 
>  config USB_EG20T
> -	tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7831)
> UDC"
> +	tristate "Intel QUARK X1000/EG20T PCH/LAPIS Semiconductor
> IOH(ML7213/ML7831) UDC"
>  	depends on PCI
>  	help
>  	  This is a USB device driver for EG20T PCH.
> @@ -353,6 +353,7 @@ config USB_EG20T
>  	  ML7213/ML7831 is companion chip for Intel Atom E6xx series.
>  	  ML7213/ML7831 is completely compatible for Intel EG20T PCH.
> 
> +	  This driver can be used with Intel's Quark X1000 SOC platform
>  #
>  # LAST -- dummy/emulated controller
>  #
> diff --git a/drivers/usb/gadget/udc/pch_udc.c
> b/drivers/usb/gadget/udc/pch_udc.c
> index eb8c3be..460d953 100644
> --- a/drivers/usb/gadget/udc/pch_udc.c
> +++ b/drivers/usb/gadget/udc/pch_udc.c
> @@ -343,6 +343,7 @@ struct pch_vbus_gpio_data {
>   * @setup_data:		Received setup data
>   * @phys_addr:		of device memory
>   * @base_addr:		for mapped device memory
> + * @bar:		Indicates which PCI BAR for USB regs
>   * @irq:		IRQ line for the device
>   * @cfg_data:		current cfg, intf, and alt in use
>   * @vbus_gpio:		GPIO informaton for detecting VBUS
> @@ -370,14 +371,17 @@ struct pch_udc_dev {
>  	struct usb_ctrlrequest		setup_data;
>  	unsigned long			phys_addr;
>  	void __iomem			*base_addr;
> +	unsigned			bar;
>  	unsigned			irq;
>  	struct pch_udc_cfg_data		cfg_data;
>  	struct pch_vbus_gpio_data	vbus_gpio;
>  };
>  #define to_pch_udc(g)	(container_of((g), struct pch_udc_dev,
> gadget))
> 
> +#define PCH_UDC_PCI_BAR_QUARK_X1000	0
>  #define PCH_UDC_PCI_BAR			1
>  #define PCI_DEVICE_ID_INTEL_EG20T_UDC	0x8808
> +#define PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC	0x0939
>  #define PCI_VENDOR_ID_ROHM		0x10DB
>  #define PCI_DEVICE_ID_ML7213_IOH_UDC	0x801D
>  #define PCI_DEVICE_ID_ML7831_IOH_UDC	0x8808
> @@ -3076,7 +3080,7 @@ static void pch_udc_remove(struct pci_dev *pdev)
>  		iounmap(dev->base_addr);
>  	if (dev->mem_region)
>  		release_mem_region(dev->phys_addr,
> -				   pci_resource_len(pdev,
> PCH_UDC_PCI_BAR));
> +				   pci_resource_len(pdev, dev->bar));
>  	if (dev->active)
>  		pci_disable_device(pdev);
>  	kfree(dev);
> @@ -3144,9 +3148,15 @@ static int pch_udc_probe(struct pci_dev *pdev,
>  	dev->active = 1;
>  	pci_set_drvdata(pdev, dev);
> 
> +	/* Determine BAR based on PCI ID */
> +	if (id->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC)
> +		dev->bar = PCH_UDC_PCI_BAR_QUARK_X1000;
> +	else
> +		dev->bar = PCH_UDC_PCI_BAR;
> +
>  	/* PCI resource allocation */
> -	resource = pci_resource_start(pdev, 1);
> -	len = pci_resource_len(pdev, 1);
> +	resource = pci_resource_start(pdev, dev->bar);
> +	len = pci_resource_len(pdev, dev->bar);
> 
>  	if (!request_mem_region(resource, len, KBUILD_MODNAME)) {
>  		dev_err(&pdev->dev, "%s: pci device used already\n", __func__); @@ 
> -3212,6 +3222,12 @@ finished:
> 
>  static const struct pci_device_id pch_udc_pcidev_id[] = {
>  	{
> +		PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> +			   PCI_DEVICE_ID_INTEL_QUARK_X1000_UDC),
> +		.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
> +		.class_mask = 0xffffffff,
> +	},
> +	{
>  		PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_EG20T_UDC),
>  		.class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe,
>  		.class_mask = 0xffffffff,
> --
> 1.7.9.5


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-20 16:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 17:22 [PATCH] USB: pch_udc: USB gadget device support for Intel Quark X1000 Chen, Alvin
2014-08-19 14:15 ` Felipe Balbi
2014-08-20  0:46   ` Chen, Alvin
2014-08-20  3:19     ` Felipe Balbi
2014-08-20 14:54 ` Felipe Balbi
2014-08-20 16:15   ` Greg KH
2014-08-20 16:20     ` Felipe Balbi
2014-08-20 16:55       ` Greg KH
2014-08-11  5:21 Chen, Alvin
2014-08-11  5:36 ` Greg KH

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.