From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Sat, 26 Jul 2014 15:31:56 +0200 Subject: [U-Boot] [PATCH v3 07/10] net: Rename and cleanup sunxi (Allwinner) emac driver In-Reply-To: <53D3AB43.5020402@redhat.com> References: <1402306622-18485-1-git-send-email-hdegoede@redhat.com> <1402306622-18485-8-git-send-email-hdegoede@redhat.com> <20140723211256.56f1c05d@i7> <53D3AB43.5020402@redhat.com> Message-ID: <53D3ADCC.2030007@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 26.07.2014 15:21, Hans de Goede wrote: > Hi, > > On 07/23/2014 08:12 PM, Siarhei Siamashka wrote: >> On Mon, 9 Jun 2014 11:36:59 +0200 >> Hans de Goede wrote: >> >>> From: Stefan Roese >>> >>> There have been 3 versions of the sunxi_emac support patch during its >>> development. Somehow version 2 ended up in upstream u-boot where as >>> the u-boot-sunxi git repo got version 3. >>> >>> This bumps the version in upstream u-boot to version 3 of the patch: >>> - Initialize MII clock earlier so mii access to allow independent use >>> - Name change from WEMAC to EMAC to match mainline kernel & chip manual >>> - Cosmetic code cleanup >>> >>> Signed-off-by: Stefan Roese >>> Signed-off-by: Henrik Nordstrom >>> Signed-off-by: Oliver Schinagl >>> Signed-off-by: Hans de Goede >>> Acked-by: Ian Campbell >> >> Shouldn't the cosmetic and functional changes be normally split into >> separate patches? Indeed, it looks like the move of >> >> + /* Set MII clock */ >> + clrsetbits_le32(®s->mac_mcfg, 0xf << 2, 0xd << 2); >> >> is the only functional change in this rather large patch. >> >> And could you please elaborate on >> >>> - Initialize MII clock earlier so mii access to allow independent use >> >> was this causing any user visible problems? > > I'm not the author if the patch, so you will need to ask Stefan. Yes. Sorry, but this was so long ago and I really can't remember the details here. I suggest to improve the code with follow-up patches if needed. Thanks, Stefan