Re: [PATCH] fix GENERIC_PHY match nothing

2012-12-09 Thread 张忠山
In message <20121208123830.gm24...@pengutronix.de> Sascha Hauer wrote: > On Sat, Dec 08, 2012 at 12:15:03PM +0100, Sascha Hauer wrote: > > On Sat, Dec 08, 2012 at 09:58:52AM +0800, 张忠山 wrote: > > > According the match logic in function mdio_bus_match > > > generic phy driver matchs nothing. > > > >

Re: [RFC 10/10] commands: add ubiformat

2012-12-09 Thread Wolfram Sang
Hi Sascha, Fixed all the issues you mentioned. > Please try and ubiformat nonexisting files and non mtd devices and see > what happens. I have the feeling these are untested right now. All cases bail out: barebox@Phytec phyCORE-i.MX35:/ ubiformat /dev/ram0 libmtd: error!: MEMGETINFO ioctl reque

Re: [RFC 09/10] lib: add barebox version of libmtd

2012-12-09 Thread Wolfram Sang
On Sat, Oct 27, 2012 at 10:11:48PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 12:16 Fri 26 Oct , Wolfram Sang wrote: > > Based on mtd-utils and stripped down to needed functionality and > > reworked to barebox interfaces. > based on which verison of libmtd? 1.4.5 since this is the ne

Re: [RFC 04/10] devfs & mtd: add MEMERASE ioctl support

2012-12-09 Thread Wolfram Sang
> > @@ -137,6 +168,9 @@ int mtd_ioctl(struct cdev *cdev, int request, void *buf) > > dev_dbg(cdev->dev, "MEMSETBADBLOCK: 0x%08llx\n", *offset); > > ret = mtd->block_markbad(mtd, *offset); > > break; > > + case MEMERASE: > > + ret = mtd_erase(cdev, ei