Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162590Ab3DEVG1 (ORCPT ); Fri, 5 Apr 2013 17:06:27 -0400 Received: from mail.openmoko.org ([88.198.124.205]:50603 "EHLO mail.openmoko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162241Ab3DEVGZ (ORCPT ); Fri, 5 Apr 2013 17:06:25 -0400 Date: Fri, 5 Apr 2013 18:05:14 -0300 From: Werner Almesberger To: Alan Ott Cc: Alexander Smirnov , Dmitry Eremin-Solenikov , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-zigbee-devel@lists.sourceforge.net Subject: Re: [Linux-zigbee-devel] [PATCH] mac802154: Keep track of the channel when changed Message-ID: <20130405210514.GF28141@ws> References: <1365194201-2635-1-git-send-email-alan@signal11.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1365194201-2635-1-git-send-email-alan@signal11.us> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 21 Alan Ott wrote: > Prevent set_channel() from getting called every time a packet is sent. This > looks like it was an oversight. at86rf230.c and derivatives avoid this problem by setting phy->current_* in the *_channel function. But I'd agree that it's nicer to do this in one place, not in every driver. In case a driver had a weird failure mode in which it leaves the original channel but only makes it halfway to the new channel, it could still set phy->current_* and return an error. So there's no loss of functionality with your change. - Werner -- 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/