ARM kirkwood: how to run kirkwood_pcie_init() from kernel module
Hi all,
sorry for disturbing and also sorry for my - maybe strange - question ;)
I've got the following problem:
I want to boot my fpga before I start the pci layer.
To achieve this it is necessary to start the pci layer somewhat after flashing my fpga.
So what I need is to run kirkwood_pcie_init() from inside my (flashing) driver. Do you know a way how to realize this?
The header common.h isn't meant to include it from anywhere else than from kirkwood *_setup.c files, right?
Is it possible to do a EXPORT_SYMBOL(kirkwood_pcie_init) somehow?
I've tried it allready but get linker warnings and function isn't called...
Do you have an idea how I can do that?
Many many thanks in advance,
Dieter
please note that this function linked into the init section.
Quoted 28 lines · Dieter Kiermaier
Hi all,
sorry for disturbing and also sorry for my - maybe strange - question ;)
I've got the following problem:
I want to boot my fpga before I start the pci layer.
To achieve this it is necessary to start the pci layer somewhat after flashing my fpga.So what I need is to run
kirkwood_pcie_init()from inside my (flashing) driver. Do you know a way how to realize this?The header
common.hisn't meant to include it from anywhere else than from kirkwood *_setup.c files, right?Is it possible to do a
EXPORT_SYMBOL(kirkwood_pcie_init)somehow?I've tried it allready but get linker warnings and function isn't called...
Do you have an idea how I can do that?
Many many thanks in advance,
Dieter_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 1 line
please note that this function linked into the init section.
I was not able to call the kirkwood_pcie_init. Is there a way?
My idea after fighting a few hours with this issue was that
I couldn't call init functions because init code is freed from kernel after bootup, isn't it?
But finally I got it working with fakephp by doing:
#disconnect my fpga
echo 0 > /sys/bus/pci/slots/0000:01:08.0/power
#disconnect my bridge
echo 0 > /sys/bus/pci/slots/0000:00:01.0/power
#
flashing my fpga.......
#initiate bus rescan
echo 1 > /sys/bus/pci/rescan
I have no idea why it doesn't work without fakephp (because pci subsystem also allows disabling the devices via sysfs) but if I did it without fakephp
echo 1 > /sys/bus/pci/rescan
has absolutely no effect.
But now it works as expected.
Many thanks,
Dieter
Quoted 36 lines · Dieter Kiermaier
Quoted 20 lines
Hi all,
sorry for disturbing and also sorry for my - maybe strange - question ;)
I've got the following problem:
I want to boot my fpga before I start the pci layer.
To achieve this it is necessary to start the pci layer somewhat after flashing my fpga.So what I need is to run
kirkwood_pcie_init()from inside my (flashing) driver. Do you know a way how to realize this?The header
common.hisn't meant to include it from anywhere else than from kirkwood *_setup.c files, right?Is it possible to do a
EXPORT_SYMBOL(kirkwood_pcie_init)somehow?I've tried it allready but get linker warnings and function isn't called...
Do you have an idea how I can do that?
Quoted 8 lines
Many many thanks in advance,
Dieter_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel