From: Jukka Rissanen <jukka.rissanen@linux.intel.com>
To: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Cc: lukasz.duda@nordicsemi.no, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 3/5] Bluetooth: 6lowpan: Move netdev sysfs device reference
Date: Thu, 18 Jun 2015 09:35:17 +0300 [thread overview]
Message-ID: <1434609317.2794.18.camel@linux.intel.com> (raw)
In-Reply-To: <1434551547-11210-4-git-send-email-glenn.ruben.bakke@nordicsemi.no>
Hi Glenn,
On ke, 2015-06-17 at 07:32 -0700, Glenn Ruben Bakke wrote:
> This patch moves the sysfs device used by the netdev from the device of
> the first connected peer to the hci sysfs device. Using the sysfs device
> of hci instead of the first connected device fixes this issue such that
> the sysfs group of tx-0 and bt0 kobject are still present after the last
> peer has been deleted and all sysfs entries can be removed.
>
> Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no>
> Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
> ---
> net/bluetooth/6lowpan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
> index 7ee591a..bc105a9 100644
> --- a/net/bluetooth/6lowpan.c
> +++ b/net/bluetooth/6lowpan.c
> @@ -856,7 +856,7 @@ static int setup_netdev(struct l2cap_chan *chan, struct lowpan_dev **dev)
> set_dev_addr(netdev, &chan->src, chan->src_type);
>
> netdev->netdev_ops = &netdev_ops;
> - SET_NETDEV_DEV(netdev, &chan->conn->hcon->dev);
> + SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev);
> SET_NETDEV_DEVTYPE(netdev, &bt_type);
>
> err = register_netdev(netdev);
you had a very nice analysis of the patches in the cover letter.
I have seen the sysfs_remove_group error myself but did never had time
to investigate this fully. Thanks for your hard efforts to nail this
bug!
Cheers,
Jukka
next prev parent reply other threads:[~2015-06-18 6:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 14:32 [PATCH 0/5] Improving bluetooth 6lowpan cleanup & module unloading Glenn Ruben Bakke
2015-06-17 14:32 ` [PATCH 1/5] Bluetooth: 6lowpan: Enable delete_netdev to be scheduled when last peer is deleted Glenn Ruben Bakke
2015-06-17 14:32 ` [PATCH 2/5] Bluetooth: 6lowpan: Rename ambiguous variable Glenn Ruben Bakke
2015-06-17 14:32 ` [PATCH 3/5] Bluetooth: 6lowpan: Move netdev sysfs device reference Glenn Ruben Bakke
2015-06-18 6:35 ` Jukka Rissanen [this message]
2015-06-17 14:32 ` [PATCH 4/5] Bluetooth: 6lowpan: Fix double kfree of netdev priv Glenn Ruben Bakke
2015-06-17 14:32 ` [PATCH 5/5] Bluetooth: 6lowpan: Fix module refcount Glenn Ruben Bakke
2015-06-17 17:20 ` [PATCH 0/5] Improving bluetooth 6lowpan cleanup & module unloading 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=1434609317.2794.18.camel@linux.intel.com \
--to=jukka.rissanen@linux.intel.com \
--cc=glenn.ruben.bakke@nordicsemi.no \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lukasz.duda@nordicsemi.no \
/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.