Skip to content
  1. Sep 27, 2016
  2. Sep 07, 2016
  3. Aug 30, 2016
  4. Aug 11, 2016
    • Dan Carpenter's avatar
      video: fbdev: pxafb: potential NULL dereference on error · e0299908
      Dan Carpenter authored
      If we "goto out;" then it calls display_timings_release(timings);
      Since "timings" is NULL, that's going to oops.  Just return directly.
      
      Fixes: 420a4882
      
       ('video: fbdev: pxafb: initial devicetree conversion')
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      e0299908
    • Javier Martinez Canillas's avatar
      fb: adv7393: Use IS_ENABLED() instead of checking for built-in or module · 53d73a0a
      Javier Martinez Canillas authored
      
      
      The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
      built-in or as a module, use that macro instead of open coding the same.
      
      Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      53d73a0a
    • Max Staudt's avatar
      fbdev/efifb: Fix 16 color palette entry calculation · d50b3f43
      Max Staudt authored
      When using efifb with a 16-bit (5:6:5) visual, fbcon's text is rendered
      in the wrong colors - e.g. text gray (#aaaaaa) is rendered as green
      (#50bc50) and neighboring pixels have slightly different values
      (such as #50bc78).
      
      The reason is that fbcon loads its 16 color palette through
      efifb_setcolreg(), which in turn calculates a 32-bit value to write
      into memory for each palette index.
      Until now, this code could only handle 8-bit visuals and didn't mask
      overlapping values when ORing them.
      
      With this patch, fbcon displays the correct colors when a qemu VM is
      booted in 16-bit mode (in GRUB: "set gfxpayload=800x600x16").
      
      Fixes: 7c83172b
      
       ("x86_64 EFI boot support: EFI frame buffer driver")  # v2.6.24+
      Signed-off-by: default avatarMax Staudt <mstaudt@suse.de>
      Acked-By: default avatarPeter Jones <pjones@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      d50b3f43
    • Bhaktipriya Shridhar's avatar
      fbdev: Remove deprecated create_singlethread_workqueue · 71668292
      Bhaktipriya Shridhar authored
      
      
      The workqueue "esd_wq" has only a single workitem(&md->esd_work)
      and hence doesn't require ordering. Also, it is not being used on a
      memory reclaim path. Hence, the singlethreaded workqueue has been
      replaced with the use of system_wq.
      
      System workqueues have been able to handle high level of concurrency
      for a long time now and hence it's not required to have a singlethreaded
      workqueue just to gain concurrency. Unlike a dedicated per-cpu workqueue
      created with create_singlethread_workqueue(), system_wq allows multiple
      work items to overlap executions even on the same CPU; however, a
      per-cpu workqueue doesn't have any CPU locality or global ordering
      guarantee unless the target CPU is explicitly specified and thus the
      increase of local concurrency shouldn't make any difference.
      
      mipid_esd_stop_check () calls cancel_delayed_work() in mipid_cleanup()
      to ensure that there are no pending tasks while disconnecting the driver.
      
      Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
      Acked-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      71668292
    • Bhaktipriya Shridhar's avatar
      omapfb: panel-dsi-cm: Remove deprecated create_singlethread_workqueue · b59ac9a3
      Bhaktipriya Shridhar authored
      
      
      The workqueue "workqueue" has only a single workitem(&ddata->ulps_work)
      and hence doesn't require ordering. Also, it is not being used on a
      memory reclaim path. Hence, the singlethreaded workqueue has been
      replaced with the use of system_wq.
      
      System workqueues have been able to handle high level of concurrency
      for a long time now and hence it's not required to have a singlethreaded
      workqueue just to gain concurrency. Unlike a dedicated per-cpu workqueue
      created with create_singlethread_workqueue(), system_wq allows multiple
      work items to overlap executions even on the same CPU; however, a
      per-cpu workqueue doesn't have any CPU locality or global ordering
      guarantee unless the target CPU is explicitly specified and thus the
      increase of local concurrency shouldn't make any difference.
      
      dsicm_remove() calls dsicm_cancel_ulps_work which uses
      cancel_delayed_work() to ensure that there are no pending tasks while
      disconnecting the driver.
      
      Signed-off-by: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
      Acked-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      b59ac9a3
    • Krzysztof Kozlowski's avatar
      video: s3c2410fb: Register cpufreq notifier only on S3C24xx · 7d4a8088
      Krzysztof Kozlowski authored
      
      
      The driver registered for CPU frequency transitions to recalculate its
      clock when ARM clock frequency changes (ratio between frequencies of
      ARM's parent clock (fclk) and clock for peripherals remains fixed).
      
      This is needed only on S3C24xx platform when cpufreq driver is enabled
      so limit the ifdef to respective cpufreq Kconfig.
      
      Suggested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      7d4a8088
    • Wolfram Sang's avatar
      video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding adapter fails · 6b610e00
      Wolfram Sang authored
      
      
      Don't print error when adding adapter fails. The core will do this for
      us now.
      
      Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
      [tomi.valkeinen@ti.com: fixed the description]
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      6b610e00
    • Nicholas Mc Guire's avatar
      omapfb/dss: wait_for_completion_interruptible_timeout expects long · 23658356
      Nicholas Mc Guire authored
      
      
      wait_for_completion_timeout_interruptible returns long not unsigned long.
      an appropriately typed variable is introduced and assignments fixed up.
      
      Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      23658356
    • Linus Walleij's avatar
      video: ARM CLCD: add special panel hook for Versatiles · 25348160
      Linus Walleij authored
      
      
      This adds a special panel init hook for the ARM reference designs
      Integrator (IM-PD1), Versatile and RealView, so we can configure
      a DPI panel from device tree and have it working without
      boardfiles for these machines.
      
      Basically this is the same code as from the board files, just
      moved over to look up the syscon DT node and manipulate the
      special CLCD register from their regmap.
      
      Tested on RealView PB11MPcore.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      25348160
    • Linus Walleij's avatar
      video: ARM CLCD: add special board and panel hooks for Nomadik · 1d3f0cbe
      Linus Walleij authored
      
      
      In the .board_init() callback will set up a mux register in
      the Nomadik system controller. It so happens that the platform
      has two display output engines, and we have to poke a bit in
      a special register to make sure the right engine is muxed in
      as they are mutually exclusive.
      
      The Nomadik CLCD variant is instantiated on a platform where
      it is combined with a 800x480 TPO WVGA display. In the
      .panel_init() hook we will detect this display from the
      compatible string and set it up. We also add .enable() and
      .disable() callbacks for it as the sleep state is software
      controlled.
      
      The display is connected with a special 3-wire serial bus
      (this is sadly neither I2C or SPI) using three GPIO lines that
      we bitbang to detect the display and enable/disable sleep
      state.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      1d3f0cbe
    • Linus Walleij's avatar
      video: ARM CLCD: support Nomadik variant · 046ad6cd
      Linus Walleij authored
      
      
      The Nomadik variant has a few special quirks that need to be respected
      to make the driver work:
      
      - The block need to be clocked during writing of the TIMn registers
        or the bus will stall.
      - Special bits in the control register select how many of the output
        display lines get activated.
      - Special bits in the control register select how to manage the
        different 565 and 5551 modes.
      - There is a packed 24bit graphics mode, i.e 888 pixels can be stored
        in memory is three consecutive bytes, not evenly aligned to a 32bit
        word.
      
      This patch uses the vendor data pointer from the AMBA matching mechanism
      to track the quirks for this variant, and adds two hooks that variants
      can use to initialize boards and panels during start-up. These will
      later be used to adopt a Nomadik board profile.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      046ad6cd
    • Linus Walleij's avatar
      video: ARM CLCD: support pads connected in reverse order · 03d14c36
      Linus Walleij authored
      
      
      There are CLCDs connected with the pads in BGR rather than RGB
      order. It really doesn't matter since the CLCD has a flag and
      a bit to switch the position of the RGB and BGR components.
      This is needed to put something logical into the
      arm,pl11x,tft-r0g0b0-pads property of the device tree on the
      Nomadik which will then be <16 8 0>.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      03d14c36
    • Linus Walleij's avatar
      video: ARM CLCD: support DT signal inversion flags · af29897f
      Linus Walleij authored
      
      
      The device tree bindings from display-timing.txt allows us to
      specify if data enable, hsync, vsync or the pixed clock should be
      inverted on the way to the display. The driver does not currently
      handle this so add support for those flags as it is needed for
      the Versatile Sanyo LCD display.
      
      Note that the previous behaviour was to invert the pixel clock
      for all displays, so unless the pixel clock polarity is
      explicitly defined in the device tree (i.e. the timings node
      has the "pixelclk-active" property) we fall back to inverting
      the pixel clock. This needs some extra compatibility code.
      
      Since the timing flags have to be set up inside the struct
      clcd_panel, we need to refactor the code a bit to pass around
      the panel rather than just the mode.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      af29897f
    • Linus Walleij's avatar
      video: ARM CLCD: backlight support for OF · c38162be
      Linus Walleij authored
      
      
      If the device is probed from device tree, we can support
      backlight. This is used with some systems such as the
      ST Microelectronics Nomadik.
      
      We have to add HAS_IOMEM to the dependencies of CLCD since
      the backlight class device will now be selected, and if it
      gets selected on an arch that does not have IOMEM,
      compilation will fail.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      c38162be
    • Mark Brown's avatar
      omapfb: Fix regulator API abuse in dss.c and hdmi4/5.c · 1d1e56f4
      Mark Brown authored
      
      
      The voltage changing code in this driver is broken and should be
      removed.  The driver sets a single, exact voltage on probe.  Unless
      there is a very good reason for this (which should be documented in
      comments) constraints like this need to be set via the machine
      constraints, voltage setting in a driver is expected to be used in cases
      where the voltage varies at runtime.
      
      In addition client drivers should almost never be calling
      regulator_can_set_voltage(), if the device needs to set a voltage it
      needs to set the voltage and the regulator core will handle the case
      where the regulator is fixed voltage.  If the driver can skip setting
      the voltage it should just never set the voltage.
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      [tomi.valkeinen@ti.com: fix abuse in hdmi5.c too]
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      1d1e56f4
  5. Aug 08, 2016