Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423476Ab3FURZL (ORCPT ); Fri, 21 Jun 2013 13:25:11 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:38870 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423122Ab3FURZJ (ORCPT ); Fri, 21 Jun 2013 13:25:09 -0400 Message-ID: <1371835508.19215.50.camel@joe-AO722> Subject: Re: [PATCH] net: fec: Fix multicast list setup in fec_restart(). From: Joe Perches To: Christoph =?ISO-8859-1?Q?M=FCllner?= Cc: linux-kernel@vger.kernel.org, Grant Likely , Rob Herring , "David S. Miller" , Fabio Estevam , netdev@vger.kernel.org Date: Fri, 21 Jun 2013 10:25:08 -0700 In-Reply-To: <61455.62.178.124.14.1371832855.squirrel@mail.theobroma-systems.com> References: <61455.62.178.124.14.1371832855.squirrel@mail.theobroma-systems.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 30 On Fri, 2013-06-21 at 18:40 +0200, Christoph M?llner wrote: > Setup the multicast list of the net_device instead of > clearing it blindly. This restores the multicast groups > in case of a link down/up event. > > Signed-off-by: Christoph Muellner Theobroma? food of the gods or does your company just like chocolate? > diff --git a/drivers/net/ethernet/freescale/fec_main.c [] > +static void set_multicast_list(struct net_device *ndev); [] > @@ -472,8 +474,7 @@ fec_restart(struct net_device *ndev, int duplex) > writel(0xffc00000, fep->hwp + FEC_IEVENT); > > /* Reset all multicast. */ > - writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); > - writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); > + set_multicast_list(ndev); maybe dev_set_rx_mode(ndev) ? -- 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/