1. 04 3月, 2014 1 次提交
  2. 03 3月, 2014 13 次提交
  3. 28 2月, 2014 3 次提交
  4. 27 2月, 2014 4 次提交
    • T
      drm/dp: Allow registering AUX channels as I2C busses · 88759686
      Thierry Reding 提交于
      Implements an I2C-over-AUX I2C adapter on top of the generic drm_dp_aux
      infrastructure. It extracts the retry logic from existing drivers, which
      should help in porting those drivers to this new helper.
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      ---
      Changes in v5:
      - move comments partially to to header file
      - keep MOT set between I2C messages
      - return -EPROTO on short reads
      
      Changes in v4:
      - fix typo "bitrate" -> "bit rate"
      
      Changes in v3:
      - add back DRM_DEBUG_KMS and DRM_ERROR messages
      - embed i2c_adapter within struct drm_dp_aux
      - fix typo in comment
      88759686
    • T
      drm/dp: Add DisplayPort link helpers · 516c0f7c
      Thierry Reding 提交于
      Add a helper to probe a DP link (read out the supported DPCD revision,
      maximum rate, link count and capabilities) as well as power up the DP
      link and configure it accordingly.
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      ---
      Changes in v5:
      - export helpers
      
      Changes in v4:
      - fix a couple of typos in comments as pointed out by Alex Deucher
      
      Changes in v3:
      - split into drm_dp_link_power_up() and drm_dp_link_configure()
      - do not change sink state for DPCD versions earlier than 1.1
      - sleep for 1-2 ms after setting local sink to D0 state
      - read and write consecutive registers where possible
      - read DPCD revision when link is probed
      - remove duplicate kerneldoc
      516c0f7c
    • T
      drm/dp: Add drm_dp_dpcd_read_link_status() · 8d4adc6a
      Thierry Reding 提交于
      The function reads the link status (6 bytes starting at offset 0x202)
      from the DPCD so that it can be conveniently passed to other DPCD
      helpers.
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      8d4adc6a
    • T
      drm/dp: Add AUX channel infrastructure · c197db75
      Thierry Reding 提交于
      This is a superset of the current i2c_dp_aux bus functionality and can
      be used to transfer native AUX in addition to I2C-over-AUX messages.
      
      Helpers are provided to read and write the DPCD, either blockwise or
      byte-wise. Many of the existing helpers for DisplayPort take a copy of a
      portion of the DPCD and operate on that, without a way to write data
      back to the DPCD (e.g. for configuration of the link).
      
      Subsequent patches will build upon this infrastructure to provide common
      functionality in a generic way.
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      ---
      Changes in v5:
      - move comments partially to struct drm_dp_aux_msg in header file
      - return -EPROTO on short reads in DPCD helpers
      
      Changes in v4:
      - fix a typo in a comment
      
      Changes in v3:
      - reorder drm_dp_dpcd_writeb() arguments to be more intuitive
      - return number of bytes transferred in drm_dp_dpcd_write()
      - factor out drm_dp_dpcd_access()
      - describe error codes
      c197db75
  5. 23 2月, 2014 1 次提交
  6. 22 2月, 2014 5 次提交
  7. 21 2月, 2014 5 次提交
  8. 20 2月, 2014 8 次提交
    • D
      usb: musb: correct use of schedule_delayed_work() · 9ccfaf74
      Daniel Mack 提交于
      schedule_delayed_work() takes the delay in jiffies, not msecs.
      
      This bug slipped in with the recent reset logic cleanup
      (8ed1fb79: "usb: musb: finish suspend/reset work independently from
      musb_hub_control()").
      Signed-off-by: NDaniel Mack <daniel@zonque.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9ccfaf74
    • J
      usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP · e7d613d1
      Josh Cartwright 提交于
      Both the PM_RUNTIME and PM_SLEEP callbacks call into the common
      msm_otg_{suspend,resume} routines, however these routines are only being
      built when CONFIG_PM_SLEEP.  In addition, msm_otg_{suspend,resume} also
      depends on msm_hsusb_config_vddcx(), which is only built when
      CONFIG_PM_SLEEP.
      
      Fix the CONFIG_PM_RUNTIME, !CONFIG_PM_SLEEP case by changing the
      preprocessor conditional, and moving msm_hsusb_config_vddcx().
      
      While we're here, eliminate the CONFIG_PM conditional for setting
      up the dev_pm_ops.
      
      This address the following errors Russell King has hit doing randconfig
      builds:
      
      drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_runtime_suspend':
      drivers/usb/phy/phy-msm-usb.c:1691:2: error: implicit declaration of function 'msm_otg_suspend'
      drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_runtime_resume':
      drivers/usb/phy/phy-msm-usb.c:1699:2: error: implicit declaration of function 'msm_otg_resume'
      
      Cc: Ivan T. Ivanov <iivanov@mm-sol.com>
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NJosh Cartwright <joshc@codeaurora.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e7d613d1
    • A
      usb: gadget: fix NULL pointer dereference · f0f42204
      Andrzej Pietrasiewicz 提交于
      Fix possible NULL pointer dereference introduced in
      commit 219580e6 (usb: f_fs: check quirk to pad epout
      buf size when not aligned to maxpacketsize)
      
      In cases we do wait with:
      
      wait_event_interruptible(epfile->wait, (ep = epfile->ep));
      
      for endpoint to be enabled, functionfs_bind() has not been called yet
      and epfile->ffs->gadget is still NULL and the automatic variable 'gadget'
      has been initialized with NULL at the point of its definition.
      Later on it is used as a parameter to:
      
      usb_ep_align_maybe(gadget, ep->ep, len)
      
      which in turn dereferences it.
      
      This patch fixes it by moving the actual assignment to the local 'gadget'
      variable after the potential waiting has completed.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Acked-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      f0f42204
    • P
      usb: gadget: printer: using gadget_is_otg to check otg support at runtime · 8679059e
      Peter Chen 提交于
      We need to use gadget_is_otg to check if the gadget is really
      otg support at runtime, other composite gadget drivers have already
      followed this method.
      Signed-off-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      8679059e
    • J
      arm/smmu: Use irqsafe spinlock for domain lock · 972157ca
      Joerg Roedel 提交于
      As the lock might be used through DMA-API which is allowed
      in interrupt context.
      Signed-off-by: NJoerg Roedel <joro@8bytes.org>
      Acked-by: NWill Deacon <will.deacon@arm.com>
      972157ca
    • G
      of: Add self test for of_match_node() · 1f42e5dd
      Grant Likely 提交于
      Adds a selftest function for the of_match_node function. of_match_node
      is supposed to handle precedence for the compatible property as well as
      the name and device_type values. This patch adds some test case data and
      a function that makes sure each test node matches against the correct
      entry of an of_device_id table.
      
      This code was written to verify the new of_match_node() implementation
      that is an earlier part of this series.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Kevin Hao <haokexin@gmail.com>
      1f42e5dd
    • G
      of: Move testcase FDT data into drivers/of · b5190516
      Grant Likely 提交于
      The testcase data is usable by any platform. This patch moves it into
      the drivers/of directory so it can be included by any architecture.
      
      Using the test cases requires manually adding #include <testcases.dtsi>
      to the end of the boards .dtsi file and enabling CONFIG_OF_SELFTEST. Not
      pretty though. A useful project would be to make the testcase code
      easier to execute.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      b5190516
    • K
      of: reimplement the matching method for __of_match_node() · 215a14cf
      Kevin Hao 提交于
      In the current implementation of __of_match_node(), it will compare
      each given match entry against all the node's compatible strings
      with of_device_is_compatible().
      
      To achieve multiple compatible strings per node with ordering from
      specific to generic, this requires given matches to be ordered from
      specific to generic. For most of the drivers this is not true and
      also an alphabetical ordering is more sane there.
      
      Therefore, we define a following priority order for the match, and
      then scan all the entries to find the best match.
        1. specific compatible && type && name
        2. specific compatible && type
        3. specific compatible && name
        4. specific compatible
        5. general compatible && type && name
        6. general compatible && type
        7. general compatible && name
        8. general compatible
        9. type && name
        10. type
        11. name
      
      v5: Fix nested locking bug
      v4: Short-circuit failure cases instead of mucking with score, and
          remove extra __of_device_is_compatible() wrapper stub.
          Move scoring logic directly into __of_device_is_compatible()
      v3: Also need to bail out when there does have a compatible member in match
          entry, but it doesn't match with the device node's compatible.
      v2: Fix the bug such as we get the same score for the following two match
          entries with the empty node 'name2 { };'
      	struct of_device_id matches[] = {
      		{.name = "name2", },
      		{.name = "name2", .type = "type1", },
      		{}
      	};
      Signed-off-by: NKevin Hao <haokexin@gmail.com>
      [grant.likely: added v4 changes]
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Tested-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Tested-by: NStephen Chivers <schivers@csc.com>
      Tested-by: NSachin Kamat <sachin.kamat@linaro.org>
      215a14cf