All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: Harry Morris <harrymorris12@gmail.com>, linux-wpan@vger.kernel.org
Cc: aar@pengutronix.de, marcel@holtmann.org,
	Harry Morris <h.morris@cascoda.com>
Subject: Re: [PATCH v7 1/3] ieee802154: Add CA8210 IEEE 802.15.4 device driver
Date: Fri, 13 Jan 2017 13:59:55 +0100	[thread overview]
Message-ID: <b4b9b993-4e8b-8099-7217-72799f7f0aec@osg.samsung.com> (raw)
In-Reply-To: <20170110154122.6724-2-h.morris@cascoda.com>

Hello.

On 10/01/17 16:41, Harry Morris wrote:
> Add driver source and config for softMAC implementation of Cascoda's CA8210
> IEEE 802.15.4 transceiver device. The driver mimics a common PHY-only
> implementation despite the CA8210 being a hardMAC device which exposes a SAP
> interface to the fully integrated MAC.
>
> The chip is a modem-only device with an integrated processor which runs the
> 802.15.4 MAC. The chip communicates via full-duplex SPI with additional pins
> for NIRQ and NRESET. The chip can also output its 16MHz clock to a GPIO with a
> configurable divider.
>
> The driver can be configured to implement a debugfs node that provides access
> to the SAP-based API to drive mechanisms not currently supported by the
> standard kernel interface.
>
> Signed-off-by: Harry Morris <h.morris@cascoda.com>
> ---
>  drivers/net/ieee802154/Kconfig  |   21 +
>  drivers/net/ieee802154/Makefile |    1 +
>  drivers/net/ieee802154/ca8210.c | 3273 +++++++++++++++++++++++++++++++++++++++

Great to that your latest rework got rid of around 500 lines of code. 
Reduced by this the mail does made its way to the list finally. :)

As I expressed before I'm ok with this driver even if it has some short 
comings. Something we should work on over this year. We on adding better 
hardMAC transceiver support to the stack and you adapting the driver and 
telling us whats missing :)

I did give it another run and make C=1 pointed the following out to me:

drivers/net/ieee802154/ca8210.c:1840:27: warning: incorrect type in 
assignment (different base types)
drivers/net/ieee802154/ca8210.c:1840:27:    expected restricted __le16 
[assigned] [usertype] pan_id
drivers/net/ieee802154/ca8210.c:1840:27:    got unsigned short 
[unsigned] [short] [usertype] <noident>
drivers/net/ieee802154/ca8210.c:1845:25: warning: incorrect type in 
assignment (different base types)
drivers/net/ieee802154/ca8210.c:1845:25:    expected restricted __le16 
[assigned] [usertype] pan_id
drivers/net/ieee802154/ca8210.c:1845:25:    got unsigned short 
[unsigned] [short] [usertype] <noident>
drivers/net/ieee802154/ca8210.c:1951:42: warning: missing braces around 
initializer
drivers/net/ieee802154/ca8210.c:1974:28: warning: incorrect type in 
argument 3 (different base types)
drivers/net/ieee802154/ca8210.c:1974:28:    expected unsigned short 
[unsigned] [usertype] dst_pan_id
drivers/net/ieee802154/ca8210.c:1974:28:    got restricted __le16 
[addressable] [usertype] pan_id

Maybe the code checker just got confused and these are false positives 
but please have a look at them.

I'm offline for the next two weeks. Will let this version sit here and 
if nothing problematic comes up we can get this applied when I'm back.

regards
Stefan Schmidt

  reply	other threads:[~2017-01-13 12:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-10 15:41 [PATCH v7 0/3] ieee802154: Add support for Cascoda CA8210 Harry Morris
2017-01-10 15:41 ` [PATCH v7 1/3] ieee802154: Add CA8210 IEEE 802.15.4 device driver Harry Morris
2017-01-13 12:59   ` Stefan Schmidt [this message]
     [not found]   ` <84e02f0a-9b85-888e-be2a-d9d72fd7b7a0@pengutronix.de>
2017-01-16 11:47     ` Harry Morris
2017-01-17 10:08       ` Marcel Holtmann
2017-01-18  9:27       ` Alexander Aring
2017-01-10 15:41 ` [PATCH v7 2/3] ieee802154: Add device tree documentation for CA8210 Harry Morris
     [not found]   ` <20170110154122.6724-3-h.morris-viW/wkEPc65BDgjK7y7TUQ@public.gmane.org>
2017-01-13 12:47     ` Stefan Schmidt
2017-01-13 12:47       ` Stefan Schmidt
2017-01-10 15:41 ` [PATCH v7 3/3] ieee802154: Add entry in MAINTAINTERS for CA8210 driver Harry Morris

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=b4b9b993-4e8b-8099-7217-72799f7f0aec@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=aar@pengutronix.de \
    --cc=h.morris@cascoda.com \
    --cc=harrymorris12@gmail.com \
    --cc=linux-wpan@vger.kernel.org \
    --cc=marcel@holtmann.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.