public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] [UBOOT] [PATCH v2 2/4] USB: Adapt the usb-compat.h to uboot and fix compiler errors
Date: Mon, 1 Jul 2013 12:56:55 +0200	[thread overview]
Message-ID: <201307011256.55976.marex@denx.de> (raw)
In-Reply-To: <1372092235-15163-3-git-send-email-dmurphy@ti.com>

Dear Dan Murphy,

> Adapt the usb-compat.h to uBoot.
> 
> Use #ifndef __UBOOT__ for code that is not applicable to uBoot.
> Use #ifdef __UBOOT__ to add code that is uBoot specific.
> 
> Create linux-compat.h - Linux kernel compatibility definitions that do not
> exist in the uBoot.  Moved the compatibility definitions from
> lin_gadget_compat.h to this file as well.
> 
> Create usb-mod-devicetable.h - Is a partial back port of mod_devicetable.h
> in the linux kernel only taking the portion needed for USB
> 
> Already existing header files were modified to pick up the new header
> files.
> 
> Currently musb will not compile.
> 
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
>  drivers/usb/musb-new/musb_host.h        |    1 +
>  drivers/usb/musb-new/usb-compat.h       |   30 ----
>  include/linux/usb/gadget.h              |  184 +++++++++++++++++++-----
>  include/linux/usb/linux-compat.h        |  234
> +++++++++++++++++++++++++++++++ include/linux/usb/usb-compat.h          | 
> 186 +++++++++++++++++++++--- include/linux/usb/usb-mod-devicetable.h | 
> 131 +++++++++++++++++
>  include/usb.h                           |  119 +---------------
>  include/usb/lin_gadget_compat.h         |   29 +---
>  8 files changed, 685 insertions(+), 229 deletions(-)
>  create mode 100644 include/linux/usb/linux-compat.h
>  create mode 100644 include/linux/usb/usb-mod-devicetable.h

Did you actually compile-test this so it doesn't break any USB gadgets?

Best regards,
Marek Vasut

  parent reply	other threads:[~2013-07-01 10:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24 16:43 [U-Boot] [RFC] [UBOOT] [PATCH v2 0/4] DWC back port from Linux kernel Dan Murphy
2013-06-24 16:43 ` [U-Boot] [RFC] [UBOOT] [PATCH v2 1/4] USB: Backport kernel usb header file Dan Murphy
2013-06-24 16:43 ` [U-Boot] [RFC] [UBOOT] [PATCH v2 2/4] USB: Adapt the usb-compat.h to uboot and fix compiler errors Dan Murphy
2013-06-24 20:16   ` Tom Rini
2013-07-01 10:56   ` Marek Vasut [this message]
2013-06-24 16:43 ` [U-Boot] [RFC] [UBOOT] [PATCH v2 3/4] USB: dwc3: Initial back port of dwc3 code Dan Murphy
2013-06-25 11:19   ` Roger Quadros
2013-06-24 16:43 ` [U-Boot] [RFC] [UBOOT] [PATCH v2 4/4] omap5: usb: Add usb otg clocks and enable Dan Murphy
2013-07-01 11:04 ` [U-Boot] [RFC] [UBOOT] [PATCH v2 0/4] DWC back port from Linux kernel Marek Vasut

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=201307011256.55976.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox