linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Maxime Bizon <mbizon@freebox.fr>
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>,
	Florian Fainelli <florian@openwrt.org>
Subject: Re: [PATCH 10/10] bcm63xx: clarify meaning of the magical value in ehci-bcm63xx.c
Date: Mon, 01 Jun 2009 21:57:56 +0400	[thread overview]
Message-ID: <4A2416A4.4070902@ru.mvista.com> (raw)
In-Reply-To: <1243876918-9905-11-git-send-email-mbizon@freebox.fr>

Hello.

Maxime Bizon wrote:

> USB maintainer asked for clarification of the magic value used during
> USB init. Be clear about the source of it.

> Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
> ---
>  drivers/usb/host/ehci-bcm63xx.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

> diff --git a/drivers/usb/host/ehci-bcm63xx.c b/drivers/usb/host/ehci-bcm63xx.c
> index 8a62c0a..5a03fdd 100644
> --- a/drivers/usb/host/ehci-bcm63xx.c
> +++ b/drivers/usb/host/ehci-bcm63xx.c
> @@ -78,7 +78,9 @@ static int __devinit ehci_hcd_bcm63xx_drv_probe(struct platform_device *pdev)
>  	reg |= USBH_PRIV_SWAP_EHCI_ENDN_MASK;
>  	bcm_rset_writel(RSET_USBH_PRIV, reg, USBH_PRIV_SWAP_REG);
>  
> -	/* don't ask... */
> +	/* the magic value comes for the original vendor BSP and is
> +	 * needed for USB to work. Datasheet does not help, so the
> +	 * magic value is used as-is. */
>  	bcm_rset_writel(RSET_USBH_PRIV, 0x1c0020, USBH_PRIV_TEST_REG);
>  
>  	hcd = usb_create_hcd(&ehci_bcm63xx_hc_driver, &pdev->dev, "bcm63xx");

    Documentation/CodingStyle, chapter 8:

The preferred style for long (multi-line) comments is:
 

         /*
          * This is the preferred style for multi-line
          * comments in the Linux kernel source code.
          * Please use it consistently.
          *
          * Description:  A column of asterisks on the left side,
          * with beginning and ending almost-blank lines.
          */

WBR, Sergei

  reply	other threads:[~2009-06-01 17:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 17:21 More updates to bcm63xx support (resend) Maxime Bizon
2009-06-01 17:21 ` [PATCH 01/10] bcm63xx: remove duplicate init fields Maxime Bizon
2009-06-01 18:07   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 02/10] bcm63xx: use napi_complete instead of __napi_complete Maxime Bizon
2009-06-01 18:09   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 03/10] bcm63xx: convert bcm63xx_enet to netdev ops Maxime Bizon
2009-06-01 18:10   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 04/10] bcm63xx: limit number of usb port to 1 Maxime Bizon
2009-06-01 18:10   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 05/10] bcm63xx: use platform_get_irq in ohci-bcm63xx.c Maxime Bizon
2009-06-01 18:11   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 06/10] bcm63xx: don't set bus type " Maxime Bizon
2009-06-01 18:11   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 07/10] bcm63xx: clarify meaning of the magical value " Maxime Bizon
2009-06-01 18:11   ` Florian Fainelli
2009-06-01 18:38   ` [PATCH 07/10 (v2)] " Maxime Bizon
2009-06-01 17:21 ` [PATCH 08/10] bcm63xx: use platform_get_irq in ehci-bcm63xx.c Maxime Bizon
2009-06-01 18:12   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 09/10] bcm63xx: don't set bus type " Maxime Bizon
2009-06-01 18:12   ` Florian Fainelli
2009-06-01 17:21 ` [PATCH 10/10] bcm63xx: clarify meaning of the magical value " Maxime Bizon
2009-06-01 17:57   ` Sergei Shtylyov [this message]
2009-06-01 18:36     ` [PATCH 10/10 (v2)] " Maxime Bizon
2009-06-01 18:12   ` [PATCH 10/10] " Florian Fainelli
2009-06-02  9:41 ` More updates to bcm63xx support (resend) Ralf Baechle

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=4A2416A4.4070902@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=florian@openwrt.org \
    --cc=linux-mips@linux-mips.org \
    --cc=mbizon@freebox.fr \
    --cc=ralf@linux-mips.org \
    /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;
as well as URLs for NNTP newsgroup(s).