Skip to content
  1. Jul 10, 2021
  2. Jul 09, 2021
  3. Jul 08, 2021
  4. Jul 06, 2021
    • Maxime Ripard's avatar
      drm/vc4: hdmi: Only call into DRM framework if registered · 20dcc461
      Maxime Ripard authored
      Our hotplug handler will currently call the drm_kms_helper_hotplug_event
      every time a hotplug interrupt is called.
      
      However, since the device is registered after all the drivers have
      finished their bind callback, we have a window between when we install
      our interrupt handler and when drm_dev_register() is eventually called
      where our handler can run and call drm_kms_helper_hotplug_event but the
      device hasn't been registered yet, causing a null pointer dereference.
      
      Fix this by making sure we only call drm_kms_helper_hotplug_event if our
      device has been properly registered.
      
      Fixes: f4790083
      
       ("drm/vc4: hdmi: Rely on interrupts to handle hotplug")
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      20dcc461
    • Maxime Ripard's avatar
      drm/vc4: hdmi: Drop devm interrupt handler for hotplug interrupts · c6fa884e
      Maxime Ripard authored
      The hotplugs interrupt handlers are registered through the
      devm_request_threaded_irq function. However, while free_irq is indeed
      called properly when the device is unbound or bind fails, it's called
      after unbind or bind is done.
      
      In our particular case, it means that on failure it creates a window
      where our interrupt handler can be called, but we're freeing every
      resource (CEC adapter, DRM objects, etc.) it might need.
      
      In order to address this, let's switch to the non-devm variant to
      control better when the handler will be unregistered and allow us to
      make it safe.
      
      Fixes: f4790083
      
       ("drm/vc4: hdmi: Rely on interrupts to handle hotplug")
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      c6fa884e
    • Maxime Ripard's avatar
      drm/vc4: hdmi: Drop devm interrupt handler for CEC interrupts · e6fa19ad
      Maxime Ripard authored
      The CEC interrupt handlers are registered through the
      devm_request_threaded_irq function. However, while free_irq is indeed
      called properly when the device is unbound or bind fails, it's called
      after unbind or bind is done.
      
      In our particular case, it means that on failure it creates a window
      where our interrupt handler can be called, but we're freeing every
      resource (CEC adapter, DRM objects, etc.) it might need.
      
      In order to address this, let's switch to the non-devm variant to
      control better when the handler will be unregistered and allow us to
      make it safe.
      
      Fixes: 15b4511a
      
       ("drm/vc4: add HDMI CEC support")
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      e6fa19ad
    • Phil Elwell's avatar
      dwc_otg: Update NetBSD usb.h header licence · 94f7ac6e
      Phil Elwell authored
      NetBSD have changed their licensing requirements such that the 2-clause
      licence is preferred. Update usb.h in the downstream dwc_otg code
      accordingly.
      
      See https://www.netbsd.org/about/redistribution.html
      
       for more
      information.
      
      Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
      94f7ac6e
  5. Jul 05, 2021
  6. Jul 03, 2021
  7. Jul 02, 2021
  8. Jul 01, 2021
  9. Jun 30, 2021
  10. Jun 29, 2021