Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: Andrey Yurovsky <andrey@snupi.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: [PATCH] at86rf230: fix register read for part version
Date: Wed, 17 Dec 2014 22:20:48 +0100	[thread overview]
Message-ID: <20141217212043.GA25328@omega> (raw)
In-Reply-To: <1418850882-4234-1-git-send-email-andrey@snupi.com>

Hi Andrey,

On Wed, Dec 17, 2014 at 01:14:42PM -0800, Andrey Yurovsky wrote:
> The driver was reading the PART_NUM register for both the part number
> (type of device) and the part version, the version is actually in
> register 0x1D, VERSION_NUM.  I believe that this was a copy-paste error.
> 
> Tested on AT86RF212B where the part is detected to be the expected part
> number (0x07) and version (0x03 on mine).
> 
> Signed-off-by: Andrey Yurovsky <andrey@snupi.com>
> ---
>  drivers/net/ieee802154/at86rf230.c | 18 +++++++-----------
>  1 file changed, 7 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
> index 1c01356..aa1005f 100644
> --- a/drivers/net/ieee802154/at86rf230.c
> +++ b/drivers/net/ieee802154/at86rf230.c
> @@ -1400,7 +1400,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
>  	if (rc)
>  		return rc;
>  
> -	rc = __at86rf230_read(lp, RG_PART_NUM, &version);
> +	rc = __at86rf230_read(lp, RG_VERSION_NUM, &version);

oops, yes this is indeed wrong here. Thanks!

Acked-by: Alexander Aring <alex.aring@gmail.com>

- Alex

  reply	other threads:[~2014-12-17 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-17 21:14 [PATCH] at86rf230: fix register read for part version Andrey Yurovsky
2014-12-17 21:20 ` Alexander Aring [this message]
2014-12-18 23:20 ` Marcel Holtmann

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=20141217212043.GA25328@omega \
    --to=alex.aring@gmail.com \
    --cc=andrey@snupi.com \
    --cc=linux-wpan@vger.kernel.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