Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258183

Re: [RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu remove function

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Neil Armstrong <narmstrong@baylibre.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu remove function
Date Wed, 28 Oct 2015 15:40:02 +0100
Message-ID <qoA3o-3Pi-9@gated-at.bofh.it> (permalink)
References <qozK3-3GM-65@gated-at.bofh.it> <qoA3o-3Pi-11@gated-at.bofh.it>
X-Original-To Andrew Lunn <andrew@lunn.ch>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre_com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=R4rwGFayXFjYiBX1t3pAsrlxdumwezYQJVMkwlzYCK0=; b=SAcsmIVypH9vc16Q9k6VCf6U5hhtAza9DF+doxEKI5VaPwVFQuRz+9KhJ2/ko9Mj90 TTNzCTL0PHvPQDKQL2E4buf51BCCVgO5toRNpe2cx2tZETEqak5kNs5iYjs5DvmUWkkx 9tXzVVp8MDumFr954BpcHTA3ZDWAwp4FOOB+mNzJZ59p+X2A2+zTCrJCX7G7dzrfdQwt i4+QMFGSxOjOEIaLDFkF2Qs9SIDsucUXfSqNUwVYisyw2dgdZAeM5hNTAh5jVPGqukvo YLoz9Hn8T/foQFutNcE5Yr5TlKiyLCe3UtG6Ho6Jp4MRWX1sxLrRi3HUowJrn18rYdzZ qklA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=R4rwGFayXFjYiBX1t3pAsrlxdumwezYQJVMkwlzYCK0=; b=ANvR5YFbyyzlI+C0Qo4i3ake2UkvytJZ3S/GR06CSJguOSFjRSA+TLwFn2jcY8IMGr p9tMGf90gFEE3vUHgLuL92GigwJg+2yiWrG/wDJex31Ig/+41de8/+BQkYlLi/RkRU4U bQmInFTw3q56DXKUZrBtWrbipeZPpE1g/lOUyOuLLSB4HgksIPH14zCvdFYtpbiUb3zV +t+uMBFTow6PnMyEVRjLXZhxtwE+8eWiFdy98KMWzO5L1Vo375Ci+NEQXe1fqrLBmWEE B7jsCECNCdJYSJTREBB5eFuJ4O/peNx9h6jMdhfY4K5whc22W2HRMJPoZPJf6Ik8EHfG fRMQ==
X-Gm-Message-State ALoCoQlneJCQqXMBNU60DKMWv4KKzOiYiRrDQQvy1NZrRtspJknyE5TKtYkG9tllhHu6HwEzVxVa
X-Received by 10.28.12.142 with SMTP id 136mr1653423wmm.19.1446043027235; Wed, 28 Oct 2015 07:37:07 -0700 (PDT)
Organization Baylibre
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
X-Original-Cc "David S. Miller" <davem@davemloft.net>, Florian Fainelli <f.fainelli@gmail.com>, Guenter Roeck <linux@roeck-us.net>, vivien.didelot@savoirfairelinux.com, Fabian Frederick <fabf@skynet.be>, Pavel Nakonechny <pavel.nakonechny@skitlab.ru>, Joe Perches <joe@perches.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Wed, 28 Oct 2015 15:37:02 +0100
X-Original-Message-ID <5630DD8E.4000404@baylibre.com>
X-Original-References <5630D7FC.4010509@baylibre.com> <20151028143524.GF2307@lunn.ch>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1258183

Show key headers only | View raw


Hi Andrew,

On 10/28/2015 03:35 PM, Andrew Lunn wrote:
> On Wed, Oct 28, 2015 at 03:13:16PM +0100, Neil Armstrong wrote:
>> diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c
>> index b1b14f5..6287096 100644
>> --- a/drivers/net/dsa/mv88e6xxx.c
>> +++ b/drivers/net/dsa/mv88e6xxx.c
>> @@ -331,6 +331,16 @@ void mv88e6xxx_ppu_state_init(struct dsa_switch *ds)
>>  	ps->ppu_timer.function = mv88e6xxx_ppu_reenable_timer;
>>  }
>>
>> +void mv88e6xxx_ppu_state_remove(struct dsa_switch *ds)
>> +{
>> +	struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
>> +	
>> +	del_timer_sync(&ps->ppu_timer);
>> +
>> +	cancel_work_sync(&ps->bridge_work);
>> +	flush_work(&ps->bridge_work);
>> +}
>> +
> 
> You add this function, but you don't use it anywhere?  Also, why
> cancel bridge work, not ppu_work? Or has that been consolidated
> in some patch i'm missing?
> 
>    Andrew
> 

It's called in the next patch, in mv88e6131_remove for mv88e6131.

Neil
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu remove  function Neil Armstrong <narmstrong@baylibre.com> - 2015-10-28 15:20 +0100
  Re: [RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu remove  function Neil Armstrong <narmstrong@baylibre.com> - 2015-10-28 15:40 +0100
    Re: [RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu  remove function Andrew Lunn <andrew@lunn.ch> - 2015-10-28 15:50 +0100
  Re: [RFC PATCH v2 3/4] net: dsa: mv88e6xxx: add common and ppu  remove function Andrew Lunn <andrew@lunn.ch> - 2015-10-28 15:40 +0100

csiph-web