From: Alexander Aring <alex.aring@gmail.com>
To: Stefan Schmidt <s.schmidt@samsung.com>
Cc: linux-wpan@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH bluetooth-next 2/5] at86rf230: make at86rf230_async_error inline
Date: Mon, 15 Dec 2014 10:04:19 +0100 [thread overview]
Message-ID: <20141215090417.GA7616@omega> (raw)
In-Reply-To: <250c01d01845$b0e9b260$12bd1720$@samsung.com>
On Mon, Dec 15, 2014 at 09:01:18AM +0000, Stefan Schmidt wrote:
> Hello.
>
> On 15/12/14 09:39, Alexander Aring wrote:
> >On Mon, Dec 15, 2014 at 08:29:26AM +0000, Stefan Schmidt wrote:
> >>Hello.
> >>
> >>On 15/12/14 00:20, Alexander Aring wrote:
> >>>This patch makes the at86rf230_async_error inline. This function is
> >>>small enough to handle inline.
> >>>
> >>>Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> >>>---
> >>> drivers/net/ieee802154/at86rf230.c | 2 +-
> >>> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>>diff --git a/drivers/net/ieee802154/at86rf230.c
> >>>b/drivers/net/ieee802154/at86rf230.c
> >>>index 4e983b3..430d3bd 100644
> >>>--- a/drivers/net/ieee802154/at86rf230.c
> >>>+++ b/drivers/net/ieee802154/at86rf230.c
> >>>@@ -450,7 +450,7 @@ at86rf230_async_error_recover(void *context)
> >>> ieee802154_wake_queue(lp->hw);
> >>> }
> >>>
> >>>-static void
> >>>+static inline void
> >>> at86rf230_async_error(struct at86rf230_local *lp,
> >>> struct at86rf230_state_change *ctx, int rc)
> >>> {
> >>
> >>Hopefully we would not need this error function often enough to have a
> >>real
> >>benefit for inline but with only two function calls it should be small
> >>enough anyway for inline.
> >
> >With Werner Almesberger words "If this fails something goes really wrong
> >with your spi controller and you can only save that the kernel doesn't
> >run amok" or something like that.
> >
> >I also heard that we don't need to check errors for the spi calls.
> >
> >For now I don't know what happens if an error occurs here, I activate
> >the irq again (if disabled before) and try to run some TRX_OFF to
> >RX_AACK_ON recover, so we can receive some frames again.
> >
> >But I think it depends on "error case" if this mechanism really helps.
> >
> >Nevertheless, still better than doing nothing.
>
> Sure, handling the case is good. Just wondered about the need for inline
> here but as I wrote with two calls this functions is small enough I would
> say.
>
ok. :-)
- Alex
next prev parent reply other threads:[~2014-12-15 9:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-14 23:20 [PATCH bluetooth-next 0/5] at86rf230: cleanups Alexander Aring
2014-12-14 23:20 ` [PATCH bluetooth-next 1/5] at86rf230: remove if branch Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-15 8:45 ` Alexander Aring
2014-12-15 8:49 ` Alexander Aring
2014-12-14 23:20 ` [PATCH bluetooth-next 2/5] at86rf230: make at86rf230_async_error inline Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-15 8:39 ` Alexander Aring
2014-12-15 9:01 ` Stefan Schmidt
2014-12-15 9:04 ` Alexander Aring [this message]
2014-12-14 23:20 ` [PATCH bluetooth-next 3/5] at86rf230: fix context pointer handling Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-14 23:20 ` [PATCH bluetooth-next 4/5] at86rf230: cleanup check on trac status Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
2014-12-14 23:20 ` [PATCH bluetooth-next 5/5] at86rf230: remove unnecessary assign Alexander Aring
2014-12-15 8:29 ` Stefan Schmidt
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=20141215090417.GA7616@omega \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-wpan@vger.kernel.org \
--cc=s.schmidt@samsung.com \
/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).