On Thu, Nov 1, 2012 at 5:23 PM, Felipe Balbi <balbi@xxxxxx> wrote: > Hi, > > On Thu, Nov 01, 2012 at 06:04:20AM -0700, Greg KH wrote: >> On Thu, Nov 01, 2012 at 12:50:34PM +0200, Felipe Balbi wrote: >> > On Thu, Nov 01, 2012 at 12:33:39PM +0200, Felipe Balbi wrote: >> > > Hi, >> > > >> > > On Thu, Nov 01, 2012 at 06:29:30PM +0800, kbuild test robot wrote: >> > > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git xceiv >> > > > head: 1789e52acc90c87484a109d6349eefe63cabb257 >> > > > commit: 1789e52acc90c87484a109d6349eefe63cabb257 [3/3] usb: phy: add R-Car USB phy driver >> > > > config: make ARCH=cris allyesconfig >> > > > >> > > > All error/warnings: >> > > > >> > > > drivers/usb/phy/rcar-phy.c: In function 'rcar_usb_phy_init': >> > > > drivers/usb/phy/rcar-phy.c:75:3: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration] >> > > > drivers/usb/phy/rcar-phy.c:83:4: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration] >> > > > cc1: some warnings being treated as errors >> > > >> > > too bad that it compiles fine on x86 and ARM :-( >> > > >> > > Kuninori, care to send me a fixup patch ? I guess using writel()/readl() >> > > should do it ?!? >> > >> > looks like this isn't enough. We have 6 arches which don't provide >> > writel()/readl(), namely blackfin, c6x, openrisc, s390, score, and um. >> > >> > Should those arches be fixed instead ? Don't we have a single >> > memory-mapped access set of APIs which are supposed to be provided by >> > all arches ? >> > >> > Greg, you've been doing this for much more time then I have. Should all >> > arches provide writeb/w/l/q and readb/w/l/q ?? >> >> I would think so, but I really don't know. >> >> linux-arch people, what do we do about architectures that don't provide >> these functions? Just disable building the drivers for them, or do we >> fix them somehow? > > btw, only alpha and x86 seem to be providing all of those, but if you > look into our documentation, it's said that drivers are supposed to use > write/read{b,w,l,q} for all memory-mapped io. I'd expect all platforms > to provide those even if just to allow compilation of drivers. Strange, AFAICS architectures that use asm-generic/io.h (blackfin, openrisc, score, unicore32 and xtensa) also provide those functions. -- Thanks. -- Max -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html