initcall question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi All,

I've been porting the powermac zilog driver to 68k macs. It works, but I 
can't figure out how to get the device initialisation right.

I've used platform devices for the serial ports. The serial controller 
base address is passed in by the bootloader.

If the platform devices are statically defined, they get no release method 
which can result in the driver core carping, "Device 'scc.0' does not have 
a release() function, it is broken and must be fixed", and then dumping a 
backtrace.

The alternative to statically defined devices is platform_device_alloc(), 
which does provide a release method, but I can't call it at arch_initcall 
time because the console_initcall has already happened. And I can't use it 
at setup_arch() time (when the boot info is parsed) because there's no 
kmalloc() yet.

What to do? I don't want to export the bootinfo data to the pmac_zilog 
driver for console initialisation. And I'd really like to avoid a bunch of 
hard coded SCC base addresses.

Any suggestions?

Perhaps there is some other kind of initcall that runs after memory 
management becomes available but before console initialisation?

Finn
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux