Re: [Ocf-linux-users] OCF for Marvell Kirkwood; probe function not called; does not init CESA
Brought to you by:
david-m
From: <ana...@wi...> - 2011-10-26 08:55:49
|
Hi David, I'm using 2.6.31.8 kernel on Marvell Prestera platform. The machine architecture chosen for the platform in /arch/arm is mach-feroceon-kw (/arch/arm/mach-feroceon-kw). I suppose this was provided by Marvell. Like in /arch/arm/Kirkwood/common.c where "mv_crypto" device is defined and registered, it is not done for mach-feroceon-kw. I copied the mv_crypto device from Kirkwood (not the best thing to do) and installed the mv_cesa.ko and mv_cesa_ocf_init() was called but also crashed. Have to figure out the correct device registers, sram and IRQ now. Thanks Ananth -----Original Message----- From: David McCullough [mailto:dav...@mc...] Sent: Wednesday, October 26, 2011 6:57 AM To: Anantharam V (WT01 - GMT-Telecom Equipment) Cc: ocf...@li... Subject: Re: [Ocf-linux-users] OCF for Marvell Kirkwood; probe function not called; does not init CESA Jivin ana...@wi... lays it down ... > Hi, > > I'm trying to use OCF for Marvell's CESA. I have built ocf.ko, cryptodev.ko and mv_cesa.ko. I've used insmod to load them and all the loading works fine except for mv_cesa.ko. The function mv_cesa_ocf_init() does not get called. In the following code from OCF kirkwood's cesa_ocf_drv.c, > > static struct platform_driver marvell_cesa = { > .probe = mv_cesa_ocf_init, > .remove = mv_cesa_ocf_exit, > .driver = { > .owner = THIS_MODULE, > .name = "mv_crypto", > }, > }; > > MODULE_ALIAS("platform:mv_crypto"); > > static int __init mv_cesa_init(void) > { > return platform_driver_register(&marvell_cesa); > } > > module_init(mv_cesa_init); > > With insmod, the mv_cesa_init() is called but the debug in mv_cesa_ocf_init() is not printed. Is platform_driver_register() internally supposed to call the .probe function? Or when is the probe function supposed to be called? What can be done to call the probe function of marvell_cesa? I am not sure, what kernel version are you using and what platform are you building for ? Have you created a custom platform of your own ? I had a look at our marvel based platform where I know this was working (haven't used it for quite a while) and it all looks similar. You may just need to work though the platform driver code until you figure out why it isn't called :-( Cheers, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |