Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244AbdGaNcm (ORCPT ); Mon, 31 Jul 2017 09:32:42 -0400 Received: from aibo.runbox.com ([91.220.196.211]:33072 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbdGaNck (ORCPT ); Mon, 31 Jul 2017 09:32:40 -0400 Subject: Re: [PATCH net-next 0/2] Refactor lan9303_xxx_packet_processing To: Andrew Lunn Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de References: <20170731113355.4284-1-privat@egil-hjelmeland.no> <20170731132236.GB24562@lunn.ch> From: Egil Hjelmeland Message-ID: <7885564f-2e67-c034-20e6-0377101ff4a7@egil-hjelmeland.no> Date: Mon, 31 Jul 2017 15:32:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170731132236.GB24562@lunn.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 771 Lines: 26 On 31. juli 2017 15:22, Andrew Lunn wrote: > On Mon, Jul 31, 2017 at 01:33:53PM +0200, Egil Hjelmeland wrote: >> First patch: >> Change lan9303_enable_packet_processing, >> lan9303_disable_packet_processing(): >> Pass port number (0,1,2) as parameter instead of port offset. >> Plus replaced a constant 0x400 with LAN9303_SWITCH_PORT_REG() > > Hi Egil > > The cover note and the commit message should concentrate on the Why, > not the What. I can see the What by reading the patch. > > Why do you want to pass port numbers? > Because other functions in the module pass port numbers. And to enable the simplifications. > Note that for netdev, the cover note also ends up in git as part of > the history. > OK, I did not know that netdev does that. > Andrew >