From: Valentin L. <val...@ep...> - 2009-01-23 09:31:07
|
Guennadi Liakhovetski wrote: > On Thu, 22 Jan 2009, Valentin Longchamp wrote: > >> Guennadi Liakhovetski wrote: >>> On Thu, 22 Jan 2009, Valentin Longchamp wrote: >>> >>> You need the patch 4/4 - platform bindings, which is not in that queue and >>> will only be merged in the next kernel version. You can so far pick it up >>> here: >>> >>> http://marc.info/?l=linux-arm-kernel&m=123143901514438&w=2 >>> >> I have the platform bindings, the ipu-core platform_device (from patch 4/4) is >> registered on my system. It's only the ipu-core platform_driver (from patch >> 2/4) that is not registered and I don't understand why. > > Ok, you didn't mention this in your previous mail. I don't think the > platform-driver is not registered. Can you check whether the ipu_init() > function gets called? Looks like the ipu platform device is not registered > on your system. Look at patch 4/4. In your board code you do something > like > > + mx3_register_fb(fb_modedb[0].name, fb_modedb, ARRAY_SIZE(fb_modedb)); Yes I do this in my board initialisation code. Yes I have it and it also works, see below. > > in that function > > + if (!ipu_registered) { > + int ret = platform_device_register(&mx3_ipu); Yes I also have this in my devices.c file (just as you proposed it in your 4/4 patch). And if works, see below. > > Do you have the ipu platform device under /sys/devices/platform/? > Yes I do have it. But I do not it under /sys/bus/platform/drivers. > root@mx31moboard:~# ls -al /sys/devices/platform/ > drwxr-xr-x 8 root root 0 Oct 16 14:04 . > drwxr-xr-x 4 root root 0 Oct 16 14:04 .. > drwxr-xr-x 2 root root 0 Oct 16 14:04 imx-uart.0 > drwxr-xr-x 2 root root 0 Oct 16 14:04 imx-uart.1 > drwxr-xr-x 2 root root 0 Oct 16 14:04 imx-uart.4 > drwxr-xr-x 2 root root 0 Oct 16 14:04 ipu_core > drwxr-xr-x 2 root root 0 Oct 16 14:04 mx3_sdc_fb > drwxr-xr-x 2 root root 0 Oct 16 14:04 physmap-flash.0 > -rw-r--r-- 1 root root 4096 Oct 16 14:04 uevent > root@mx31moboard:~# ls -al /sys/bus/platform/drivers > drwxr-xr-x 6 root root 0 Oct 16 13:50 . > drwxr-xr-x 4 root root 0 Jan 1 1970 .. > drwxr-xr-x 2 root root 0 Jan 1 1970 generic-bl > drwxr-xr-x 2 root root 0 Jan 1 1970 imx-uart > drwxr-xr-x 2 root root 0 Oct 16 14:05 mx3_sdc_fb > drwxr-xr-x 2 root root 0 Jan 1 1970 physmap-flash So the devices are registered fine. My problem is that the driver is not registered for me: This should be done by the subsys_initcall but ipu_init is never called. Thanks for your help. Val -- Valentin Longchamp, PhD Student, EPFL-STI-LSRO1 val...@ep..., Phone: +41216937827 http://people.epfl.ch/valentin.longchamp MEA3485, Station 9, CH-1015 Lausanne |