Skip to content

fix auto-sense in lirc_rpi driver - #1581

Merged
pelwell merged 1 commit into
raspberrypi:rpi-4.4.yfrom
IngoKresse:rpi-4.4.y-lirc_rpi-robustness
Aug 6, 2016
Merged

pelwell merged 1 commit into
raspberrypi:rpi-4.4.yfrom
IngoKresse:rpi-4.4.y-lirc_rpi-robustness

Conversation

@IngoKresse

Copy link
Copy Markdown

Hope this is the right branch - anyway, the lirc_rpi driver didn't change too much recently.
This reliably fixed my problems with infrared remote controls.


On a Raspberry Pi 2, the lirc_rpi driver might receive spurious
interrupts and change it's low-active / high-active setting.
When this happens, the IR remote control stops working.

This patch disables this auto-detection if the 'sense' parameter
was set in the device tree, making the driver robust to such
spurious interrupts.

On a Raspberry Pi 2, the lirc_rpi driver might receive spurious
interrupts and change it's low-active / high-active setting.
When this happens, the IR remote control stops working.

This patch disables this auto-detection if the 'sense' parameter
was set in the device tree, making the driver robust to such
spurious interrupts.
@popcornmix

Copy link
Copy Markdown
Collaborator

Looks okay to me. @pelwell okay with you?

@pelwell

pelwell commented Aug 6, 2016 •

Copy link
Copy Markdown
Contributor

I don't understand the failure mechanism - if a spuriously long pulse is interpreted as an inverted space, causing the sense to be inverted, the following real space (which is seen as a long pulse) should cause the sense to flip back again, unless in normal use you never see a long space - but I see no problem with the patch.

@IngoKresse

Copy link
Copy Markdown
Author

Hmm, occasionally the sense bit did flip back after a while - probably at the first signal after 15 seconds of complete 'silence'. I'm not 100% sure if that explained all error cases that I encountered, but with this fix my remote control worked very reliably.

@pelwell
pelwell merged commit e146e33 into raspberrypi:rpi-4.4.y Aug 6, 2016
@IngoKresse
IngoKresse deleted the rpi-4.4.y-lirc_rpi-robustness branch August 7, 2016 20:47
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Aug 10, 2016
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: #637

firmware: arm_display: Allow source aspect ratio to be configured
See: #638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Aug 10, 2016
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: raspberrypi/firmware#637

firmware: arm_display: Allow source aspect ratio to be configured
See: raspberrypi/firmware#638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
mkreisl added a commit to xbianonpi/xbian-package-firmware that referenced this pull request Aug 12, 2016
- kernel: fix auto-sense in lirc_rpi driver

  See: raspberrypi/linux#1581

- kernel: enable gembird joypad support
  See: raspberrypi/linux#1589

- kernel: Added HiFiBerry Digi+ Pro driver
  See: raspberrypi/linux#1583

- kernel: overlays: Add assert_falling_edge to pps-gpio overlay
  See: raspberrypi/linux#1590

- kernel: Experimental graphics driver DSI support
  See: raspberrypi/linux#1556

- firmware: Add customisation project board type
- firmware: platform: Enable Bluetooth on custom

- firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
  See: #637

- firmware: arm_display: Allow source aspect ratio to be configured
  See: #638

- firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this pull request Feb 27, 2017
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: raspberrypi#637

firmware: arm_display: Allow source aspect ratio to be configured
See: raspberrypi#638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants