when I plug in joystick no change in “dmseg --follow” command . but for other device plug in like mouse there is change in output data for “dmesg --follow” command.
This suggests a failure of the joystick. To not even detect a plugin is quite odd. Do you have another Linux computer you can monitor “dmesg --follow” on, and then plug in the joystick to see if anything shows up? Also, tell me about any USB HUB that might be related, especially if that HUB is powered externally, or instead it is powered by the USB plug.
Whenever you want to debug this be sure to post the complete log of the dmesg from the plugin. You might also want to include a copy of “/proc/config.gz” (attach to the forum).
Btw, GPIO is unrelated to the joystick (I am assuming USB).
No idea, I don’t have one. Is it a USB dongle you plug in? If so, then you’d need the log messages which occur as the result of plugging that in. This would tell us if USB has assigned a driver, and that’s the first step.