Skip to contentSkip to conversation

No hotplug event for PCA9685 PWM output device

DISCUSSION Philip Munts 1 participant 1 message Apr 12, 2017 PWM

lore
Share & tools
lore
#0 lore raw

I am using a PCA9685 I2C PWM controller on a Raspberry Pi 2. When I instantiate the PCA9685 device with "echo pca9685 0x40 >new_device" in the I2C bus device directory, I get a hotplug event for pwmchip0, as expected. When I manually initiate a hotplug event with "echo add >uevent" from the pwmchip0 device directory, I get another hotplug event for pwmchip0, also as expected.

However, when I create a PWM output device with "echo 0 >export" from the pwmchip0 device directory, the PWM output device subdirectory pwm0 is created, including the uevent file, but no hotplug event is generated for pwm0.

Furthermore, when I attempt to manually initiate a hotplug event for pwm0 by running "echo add >uevent" from the pwm0 subdirectory, no hotplug event is generated.

I am using a custom 4.9.21 kernel. I have reported this at bugzilla.kernel.org: #195335.

Philip Munts
[email protected]