platform_driver_probe return error code -19

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

platform_driver_probe return error code -19

969 Views
wangvictor
Contributor III

Hi, i'm porting wifi/BT on my board.

The OS system is Linux+QT.

I'm using Yocto project of meta-fsl-arm layers and based on SABRE SD i.MX 6.

This is my config file.

https://gist.github.com/victorwangwinmate/a87f0a8a0cb0fb9185fd689031001f51

And here is the place i add my pcie.

arch/arm/boot/dts/imx6qdl-fa30-210.dtsi

&pcie {

      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_pcie>;
      reset-gpio = <&gpio2 2 1>;
      power-on-gpio = <&gpio4 5 1>;
      status = "okay";
};

I defined my pinctrl_pcie in arch/arm/boot/dts/imx6qdl-fa3.dtsi

pinctrl_pcie: pciegrp {
fsl,pins = <
MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0 /*wifi_EN*/
MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0 /*PCIE_RST*/
>;
};

And now when i send `lspci` i can't see anything.

When i check my syslog it returns -19 from function "platform_driver_probe()" for me.

Error code -19 means "No such device".

How can i fix this?

By the way, i can identify my module through commend "lspci" on OS Android 6.0.

Labels (4)
Tags (2)
0 Kudos
2 Replies

701 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wang

one can try to debug function "platform_driver_probe()" using attached

Linux Manual Chapter 40 PCI Express Root Complex Driver and

AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

701 Views
wangvictor
Contributor III

igorpadykov

Actually i found that my clock from cpu is not working.

CLK1_N and CLK1_P have no signal out.

IS that any possible that my dts file is not write in the right way?

0 Kudos