From: Simon Kagstrom Date: Fri, 21 Aug 2009 10:52:11 +0200 Subject: [U-Boot] [PATCH 1/3]: arm:kirkwood Define kirkwood phy address magic number In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202E3915B19@SC-VEXCH1.marvell.com> References: <20090820134707.7ab2dbbb@marrow.netinsight.se> <73173D32E9439E4ABB5151606C3E19E202E3915B19@SC-VEXCH1.marvell.com> Message-ID: <20090821105211.65e0702a@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 20 Aug 2009 20:20:08 -0700 Prafulla Wadaskar wrote: > > > > +#define KIRKWOOD_PHY_ADR_REQUEST 0xee > > > define this in header file > > > > > > Basically this is needed in drivers/net/phy/mv88e61xx.c for > > multi chip support > > > in this case we need to define this in include/miiphy.h. > > > which conflicts with other phy address definition, that's > > why not done earlier > > > > > > It makes more sense to add APIs miiphy_read/write_phyadr to miiutils > > > > But is this really general functionality? miiphy.h is something I > > suppose should be generic between phys and not contain device-specific > > things like this. > Agreed, > Current PHY support need to be re-architected to support switches in generic ways > This is old pending issue, may be we should re-trigger it again after scheduled release Right. But for now, perhaps it's OK to merge the patch as-is and then correct the location of the define when the restructuring is done? In the same way, I guess we should postspone moving out PHY initialization from sheevaplug and keep it duplicated until it's clear what to do there? // Simon