1. 23 8月, 2012 1 次提交
    • P
      char/tpm: Add new driver for Infineon I2C TIS TPM · aad628c1
      Peter Huewe 提交于
      This patch adds a driver to support Infineon's SLB 9635 TT 1.2 Soft I2C TPMs
      which follow the TGC TIS 1.2 TPM specification[1] and Infineon's I2C Protocol
      Stack Specification 0.20.
      The I2C Protocol Stack Specification is a simple adaption of the LPC TIS
      Protocol to the I2C Bus.
      The I2C TPMs can be used when LPC Bus is not available (i.e. non x86
      architectures like ARM).
      
      The driver is based on the tpm_tis.c driver by Leendert van Dorn and Kyleen
      Hall and has quite similar functionality.
      
      Tested on Nvidia ARM Tegra2 Development Platform and Beagleboard (ARM OMAP)
      Tested with the Trousers[2] TSS API Testsuite v 0.3 [3]
      Compile-tested on x86 (32/64-bit)
      
      Updates since version 2.1.4:
      - included "Lock the I2C adapter for a sequence of requests", by Bryan Freed
      - use __i2c_transfer instead of own implementation of unlocked i2c_transfer
      - use struct dev_pm_ops for power management via SIMPLE_DEV_PM_OPS
      
      Updates since version 2.1.3:
      - use proper probing mechanism
      * either add the tpm using I2C_BOARD_INFO to your board file or probe it
      * during runtime e.g on BeagleBoard using :
      * "echo tpm_i2c_infineon 0x20 > /sys/bus/i2c/devices/i2c-2/new_device"
      - fix possible endless loop if hardware misbehaves
      - improved return codes
      - consistent spelling i2c/tpm -> I2C/TPM
      - remove hardcoded sleep values and msleep usage
      - removed debug statements
      - added check for I2C functionality
      - renaming to tpm_i2c_infineon
      
      Updates since version 2.1.2:
      - added sysfs entries for duration and timeouts
      - updated to new tpm_do_selftest
      
      Updates since version 2.1.0:
      - improved error handling
      - implemented workarounds needed by the tpm
      - fixed typos
      
      References:
      [1]
      http://www.trustedcomputinggroup.org/resources/pc_client_work_group_pc_client_
      specific_tpm_interface_specification_tis_version_12/
      [2] http://trousers.sourceforge.net/
      [3]
      http://sourceforge.net/projects/trousers/files/TSS%20API%20test%20suite/0.3/Reviewed-by: NAndi Shyti <andi.shyti@gmail.com>
      Acked-by: NMarcel Selhorst <tpmdd@selhorst.net>
      Signed-off-by: NPeter Huewe <peter.huewe@infineon.com>
      Signed-off-by: NBryan Freed <bfreed@chromium.org>
      Signed-off-by: NKent Yoder <key@linux.vnet.ibm.com>
      aad628c1
  2. 14 8月, 2012 9 次提交
  3. 13 8月, 2012 20 次提交
  4. 12 8月, 2012 2 次提交
    • D
      drm/i915: ignore eDP bpc settings from vbt · 4344b813
      Daniel Vetter 提交于
      This has originally been introduced to not oversubscribe the dp links
      in
      
      commit 885a5fb5
      Author: Zhenyu Wang <zhenyuw@linux.intel.com>
      Date:   Tue Jan 12 05:38:31 2010 +0800
      
          drm/i915: fix pixel color depth setting on eDP
      
      Since then we've fixed up the dp link bandwidth calculation code and
      should now automatically fall back to 6bpc dithering. So this is
      unnecessary.
      
      Furthermore it seems to break the new MacbookPro with retina display,
      hence let's just rip this out.
      Reported-by: NBenoit Gschwind <gschwind@gnu-log.net>
      Cc: Benoit Gschwind <gschwind@gnu-log.net>
      Cc: Francois Rigaut <frigaut@gmail.com>
      Cc: Greg KH <gregkh@linuxfoundation.org>
      Cc: stable@vger.kernel.org
      Tested-by: NBenoit Gschwind <gschwind@gnu-log.net>
      Tested-by: Bernhard Froemel <froemel at vmars tuwien.ac.at>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      
      --
      
      Testing feedback highgly welcome, and thanks for Benoit for finding
      out that the bpc computations are busted.
      -Daniel
      4344b813
    • T
      drm/i915: Fix blank panel at reopening lid · 770c1231
      Takashi Iwai 提交于
      When you reopen the lid on a laptop with PCH, the panel suddenly goes
      blank sometimes.  It seems because BLC_PWM_CPU_CTL register is cleared
      to zero when BLC_PWM_CPU_CTL2 and BLC_PWM_PCH_CTL1 registers are
      enabled.
      
      This patch fixes the problem by moving the call of the function setting
      BLC_PWM_CPU_CTL after enabling other two registers.
      Reported-and-tested-by: NHugh Dickins <hughd@google.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      770c1231
  5. 11 8月, 2012 1 次提交
  6. 10 8月, 2012 7 次提交