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] [PATCH v3 2/5] sunxi: add USB EHCI driver
Date: Fri, 25 Jul 2014 17:01:33 +0200	[thread overview]
Message-ID: <201407251701.33751.marex@denx.de> (raw)
In-Reply-To: <f4b90cf6a65a83e92ae1c6204f57402d395c1a67.1405895188.git.rbyshko@gmail.com>

On Thursday, July 24, 2014 at 10:54:21 PM, Roman Byshko wrote:
> The Allwinner aka sunxi SoCs have one or more USB host controllers.
> This adds a driver for their EHCI.
> 
> Signed-off-by: Roman Byshko <rbyshko@gmail.com>

Did you verify the patches to be checkpatch clean please ? Also, they don't 
apply to u-boot-usb/master , so I will wait for V4 with this cleanup and rebase 
on top of u-boot-usb. Otherwise they are good, thanks !

CHECK: No space is necessary after a cast
#170: FILE: drivers/usb/host/ehci-sunxi.c:43:
+               .gpio_vbus = CONFIG_SUNXI_USB_VBUS0_GPIO,
+               .csr = (void*) SUNXI_USB_CSR,

ERROR: "(foo*)" should be "(foo *)"
#170: FILE: drivers/usb/host/ehci-sunxi.c:43:
+               .csr = (void*) SUNXI_USB_CSR,

CHECK: No space is necessary after a cast
#179: FILE: drivers/usb/host/ehci-sunxi.c:52:
+               .gpio_vbus = CONFIG_SUNXI_USB_VBUS1_GPIO,
+               .csr = (void*) SUNXI_USB_CSR,

ERROR: "(foo*)" should be "(foo *)"
#179: FILE: drivers/usb/host/ehci-sunxi.c:52:
+               .csr = (void*) SUNXI_USB_CSR,

ERROR: do not initialise statics to 0 or NULL
#186: FILE: drivers/usb/host/ehci-sunxi.c:59:
+static int enabled_hcd_count = 0;

ERROR: "foo* bar" should be "foo *bar"
#188: FILE: drivers/usb/host/ehci-sunxi.c:61:
+static void* get_io_base(int hcd_id)

CHECK: No space is necessary after a cast
#191: FILE: drivers/usb/host/ehci-sunxi.c:64:
+       if (hcd_id == 1)
+               return (void*) SUNXI_USB1_IO_BASE;

ERROR: "(foo*)" should be "(foo *)"
#191: FILE: drivers/usb/host/ehci-sunxi.c:64:
+               return (void*) SUNXI_USB1_IO_BASE;

CHECK: No space is necessary after a cast
#193: FILE: drivers/usb/host/ehci-sunxi.c:66:
+       else if (hcd_id == 2)
+               return (void*) SUNXI_USB2_IO_BASE;

ERROR: "(foo*)" should be "(foo *)"
#193: FILE: drivers/usb/host/ehci-sunxi.c:66:
+               return (void*) SUNXI_USB2_IO_BASE;

ERROR: trailing statements should be on next line
#194: FILE: drivers/usb/host/ehci-sunxi.c:67:
+       else return NULL;

ERROR: trailing whitespace
#195: FILE: drivers/usb/host/ehci-sunxi.c:68:
+}^I$

CHECK: Alignment should match open parenthesis
#301: FILE: drivers/usb/host/ehci-sunxi.c:174:
+       debug("sunxi-ehci: init hccr %x and hcor %x hc_length %d\n",
+               (uint32_t)*hccr, (uint32_t)*hcor,

total: 8 errors, 0 warnings, 5 checks, 203 lines checked

NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
      scripts/cleanfile

NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX 
MULTISTATEMENT_MACRO_USE_DO_WHILE NETWORKING_BLOCK_COMMENT_STYLE USLEEP_RANGE

/tmp/[U-Boot] [PATCH v3 2_5] sunxi_add USB EHCI driver.mbox has style problems, 
please review.

Best regards,
Marek Vasut

  reply	other threads:[~2014-07-25 15:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 20:54 [U-Boot] [PATCH v3 0/5] ARM: Allwinner sunxi USB Host EHCI support Roman Byshko
2014-07-24 20:54 ` [U-Boot] [PATCH v3 1/5] sunxi: add defines to control USB Host clocks/resets Roman Byshko
2014-07-24 20:54 ` [U-Boot] [PATCH v3 2/5] sunxi: add USB EHCI driver Roman Byshko
2014-07-25 15:01   ` Marek Vasut [this message]
2014-07-25 15:38     ` Ian Campbell
2014-07-25 15:41       ` Marek Vasut
2014-07-25 16:06         ` Ian Campbell
2014-07-25 16:31           ` Marek Vasut
2014-07-25 16:36             ` Ian Campbell
2014-07-26 16:25   ` Hans de Goede
2014-07-26 22:22   ` Hans de Goede
2014-07-27  0:55     ` Marek Vasut
2014-07-27  8:29       ` Ian Campbell
2014-07-27 10:03         ` Hans de Goede
2014-07-27 15:35           ` Marek Vasut
2014-07-27 17:32           ` [U-Boot] [PATCH v4 " Roman Byshko
2014-07-27 17:57             ` Marek Vasut
2014-07-27 20:14               ` Hans de Goede
2014-07-27 20:41                 ` Marek Vasut
2014-07-24 20:54 ` [U-Boot] [PATCH v3 3/5] sunxi: add general USB settings Roman Byshko
2014-07-24 20:54 ` [U-Boot] [PATCH v3 4/5] sun7i: add USB EHCI settings Roman Byshko
2014-07-24 20:54 ` [U-Boot] [PATCH v3 5/5] sun7i: cubietruck: enable USB EHCI Roman Byshko
2014-07-25 20:33   ` Ian Campbell
2014-07-26 22:34     ` Hans de Goede
2014-07-25  9:31 ` [U-Boot] [PATCH v3 0/5] ARM: Allwinner sunxi USB Host EHCI support Roman B.

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=201407251701.33751.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