All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei-Ning Huang <wnhuang@google.com>
To: Linux Bluetooth <linux-bluetooth@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Amitkumar Karwar <akarwar@marvell.com>,
	Wei-Ning Huang <wnhuang@chromium.org>,
	robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	Hu Xinming <huxm@marvell.com>,
	marcel@holtmann.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] dt: bindings: fix documentation for MARVELL's bt-sd8xxx wireless device
Date: Wed, 1 Jun 2016 15:25:04 +0800	[thread overview]
Message-ID: <CABicQ-U0hHagZpnt9SONwpWOEgfP9mcgxHjJi0Y3JASso=1gzA@mail.gmail.com> (raw)
In-Reply-To: <1464750564-21027-1-git-send-email-wnhuang@chromium.org>

Please ignore this patch. I think we should make the driver parse 32
bit value instead (to be consistent with mwifiex driver).

On Wed, Jun 1, 2016 at 11:09 AM, Wei-Ning Huang <wnhuang@chromium.org> wrote:
> The property marvell,wakeup-pin and marvell,wakeup-gap-ms are read as
> u16 in the driver. Fix documentation and example accordingly.
>
> Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
> ---
>  Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt b/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> index 14aa6cf..6a9a63c 100644
> --- a/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> +++ b/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> @@ -13,10 +13,10 @@ Optional properties:
>                       initialization. This is an array of 28 values(u8).
>
>    - marvell,wakeup-pin: It represents wakeup pin number of the bluetooth chip.
> -                       firmware will use the pin to wakeup host system.
> +                       firmware will use the pin to wakeup host system (u16).
>    - marvell,wakeup-gap-ms: wakeup gap represents wakeup latency of the host
>                       platform. The value will be configured to firmware. This
> -                     is needed to work chip's sleep feature as expected.
> +                     is needed to work chip's sleep feature as expected (u16).
>    - interrupt-parent: phandle of the parent interrupt controller
>    - interrupts : interrupt pin number to the cpu. Driver will request an irq based
>                  on this interrupt number. During system suspend, the irq will be
> @@ -50,7 +50,7 @@ calibration data is also available in below example.
>                         0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02
>                         0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00
>                         0x00 0x00 0xf0 0x00>;
> -               marvell,wakeup-pin = <0x0d>;
> -               marvell,wakeup-gap-ms = <0x64>;
> +               marvell,wakeup-pin = /bits/ 16 <0x0d>;
> +               marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
>         };
>  };
> --
> 2.1.2
>



-- 
Wei-Ning Huang, 黃偉寧 | Software Engineer, Google Inc., Taiwan |
wnhuang@google.com | Cell: +886 910-380678

WARNING: multiple messages have this Message-ID (diff)
From: Wei-Ning Huang <wnhuang@google.com>
To: Linux Bluetooth <linux-bluetooth@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Amitkumar Karwar <akarwar@marvell.com>,
	Wei-Ning Huang <wnhuang@chromium.org>,
	robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	Hu Xinming <huxm@marvell.com>,
	marcel@holtmann.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] dt: bindings: fix documentation for MARVELL's bt-sd8xxx wireless device
Date: Wed, 1 Jun 2016 15:25:04 +0800	[thread overview]
Message-ID: <CABicQ-U0hHagZpnt9SONwpWOEgfP9mcgxHjJi0Y3JASso=1gzA@mail.gmail.com> (raw)
In-Reply-To: <1464750564-21027-1-git-send-email-wnhuang@chromium.org>

Please ignore this patch. I think we should make the driver parse 32
bit value instead (to be consistent with mwifiex driver).

On Wed, Jun 1, 2016 at 11:09 AM, Wei-Ning Huang <wnhuang@chromium.org> wrot=
e:
> The property marvell,wakeup-pin and marvell,wakeup-gap-ms are read as
> u16 in the driver. Fix documentation and example accordingly.
>
> Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
> ---
>  Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt =
b/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> index 14aa6cf..6a9a63c 100644
> --- a/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> +++ b/Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
> @@ -13,10 +13,10 @@ Optional properties:
>                       initialization. This is an array of 28 values(u8).
>
>    - marvell,wakeup-pin: It represents wakeup pin number of the bluetooth=
 chip.
> -                       firmware will use the pin to wakeup host system.
> +                       firmware will use the pin to wakeup host system (=
u16).
>    - marvell,wakeup-gap-ms: wakeup gap represents wakeup latency of the h=
ost
>                       platform. The value will be configured to firmware.=
 This
> -                     is needed to work chip's sleep feature as expected.
> +                     is needed to work chip's sleep feature as expected =
(u16).
>    - interrupt-parent: phandle of the parent interrupt controller
>    - interrupts : interrupt pin number to the cpu. Driver will request an=
 irq based
>                  on this interrupt number. During system suspend, the irq=
 will be
> @@ -50,7 +50,7 @@ calibration data is also available in below example.
>                         0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f=
 0x04 0x02
>                         0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00=
 0x00 0x00
>                         0x00 0x00 0xf0 0x00>;
> -               marvell,wakeup-pin =3D <0x0d>;
> -               marvell,wakeup-gap-ms =3D <0x64>;
> +               marvell,wakeup-pin =3D /bits/ 16 <0x0d>;
> +               marvell,wakeup-gap-ms =3D /bits/ 16 <0x64>;
>         };
>  };
> --
> 2.1.2
>



--=20
Wei-Ning Huang, =E9=BB=83=E5=81=89=E5=AF=A7 | Software Engineer, Google Inc=
., Taiwan |
wnhuang@google.com | Cell: +886 910-380678

  parent reply	other threads:[~2016-06-01  7:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01  3:09 [PATCH] dt: bindings: fix documentation for MARVELL's bt-sd8xxx wireless device Wei-Ning Huang
2016-06-01  6:58 ` Wei-Ning Huang
2016-06-01  7:25 ` Wei-Ning Huang [this message]
2016-06-01  7:25   ` Wei-Ning Huang

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='CABicQ-U0hHagZpnt9SONwpWOEgfP9mcgxHjJi0Y3JASso=1gzA@mail.gmail.com' \
    --to=wnhuang@google.com \
    --cc=akarwar@marvell.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=huxm@marvell.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=wnhuang@chromium.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 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.