[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-25 07:33:00
|
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?
Thanks
Ananth
|