summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-23fs: partitions: Fix warnings in fs/partitions/check.cColin Cross
Change-Id: I4398ace0c55d4833b1fcbb7a4e71ab8f0b1b044a Signed-off-by: Colin Cross <ccross@android.com>
2010-05-23Bluetooth: Hack: Don't dereference null pointer.Nick Pelly
This avoids the S305 panic during incoming connection. S305 sends PSM 25 L2CAP connection request before the L2CAP info response. When we receive that info response we crash on null pointer here. Bug: 2127637 Change-Id: Ib637516251f46fa9a9c87ac015dc2f27df5a27fd Signed-off-by: Nick Pelly <npelly@google.com>
2010-05-23procfs: add tegra bootarg directory treeMin-wuk Lee
add a procfs directory to reflect tegra ATAGs to user-space, so that user-space components which require information originating from the bootloader(e.g., display parameters for seamless display transitions) can be supported. bug 645228 Change-Id: I1abd9eeeed8a82b0d387fc7a7ed4d481a7b96adb
2010-05-21[ARM] tegra: i2c: Fix i2c driver behavior on timeout/nackColin Cross
Change-Id: Ib7c22898783fdc66fa626e06360bd5ca9637067e
2010-05-21[ARM] tegra: add manual reset to NvRM-based clock driverGary King
Change-Id: Ib28874b60ac83449649ef08da252eaea4e36805c
2010-05-21[ARM] tegra: add manual reset flag to clocksErik Gilling
Change-Id: I4d6e62904e716d883c2844bc687be32277c791c5
2010-05-21[ARM] tegra: clock: Let clock dividers pick next lower possible frequencyColin Cross
Change-Id: If3b5616f61fa9964d21a21878923c06b53d2ba59
2010-05-21[ARM] harmony: enable errata 647541 work around, enable MMC_SDHCI_TEGRAGary King
Change-Id: Id35c6cfe7af3b329dc89c23da16e077c4842cee1
2010-05-21[ARM/tegra] nvrm: implement RmDma APIs on tegra system DMA driverGary King
Change-Id: I8bb150efaac60cae7ff1a879a9cd7e2051392e18
2010-05-21[ARM/tegra] dma: add transfer count query, correct spelling of CONTINUOUSGary King
add an API to return the completed transfer count of a pending, active or finished DMA request CONTINUOUS was misspelled CONTINOUS; fix this in the hsuart and dma drivers Change-Id: I732396f60f876c92fe3b74ad1d2fc02d00868d24
2010-05-21[ARM/tegra] nvrm_dfs: remove mutex lock when querying DFS frequencyGary King
Change-Id: I7aa12d51d526eff977c7569ee3059ee627b25824
2010-05-21[ARM/tegra] board-nvodm: register SDHCI platform devicesGary King
use a common dma_mask variable for all devices Change-Id: I786fedd94b51d20b168c5628163ca9a93f19f6dd
2010-05-21[ARM/tegra] clock: add SDMMC clocks to PERIPH_CLK listGary King
extend the clock structure to store range tolerances and/or minimum/maximum ranges to allow soft matching of the requested frequency, as the RM fails most exact requests Change-Id: I17b661b345f9fb1f654153bd15514d12f06b9bc1
2010-05-21sdhci: add support for Tegra SDHCI controllerGary King
Change-Id: Id0f80affea2ab309d7160049ec9c6976a92c2f0f
2010-05-21sdhci: add callback for non-polled, broken card detectionGary King
some platforms support alternative means of detecting card presence (e.g., GPIOs). add a callback function for these hosts to allow card detection without polling and without relying on the PRESENT_STATE register Change-Id: Ic024d7c2f39b7089a4f4683ffe36ed367756941d
2010-05-21mmc: support csd_struct version 3 for certain eMMC 4.4 devicesVenkata(Muni) Anda
extend the csd_struct version check to allow version 3, since some eMMC devices report this. Change-Id: I23e592044223c7b98e21616000306ddc5f244f86
2010-05-21sdhci: move card detection interrupt logic into a callback functionGary King
enables platforms which do not support the standard card detection interrupt to trigger the card detection using a platform-specific handler Change-Id: I2bc3f7538f55a6b169b0b2a477ca1ff44bf936ed
2010-05-21sdhci: add support for 8 bit data transfersGary King
Change-Id: I1c92ac85cc27f6c9181593029705f1e2fef3f89c
2010-05-21sdhci: add Tegra 2 quirksGary King
add BROKEN_WRITE_PROTECT quirk which calls a get_ro callback function to detect the card read-only status for hosts which do not detect the write protect flag correctly add ENABLE_INTERRUPT_AT_BLOCK_GAP quick for hosts which do not detect SDIO card interrupts unless INTERRUPT_AT_BLOCK_GAP is enabled add BROKEN_CTRL_HISPD quirk for hosts which should not have CTRL_HISPD bit set after switching to high-speed mode add NO_64KB_ADMA quirk for hosts which need to split a 64KB (max) ADMA transfer into 2 smaller transfers add BROKEN_SPEC_VERSION quirk to bypass reading the HOST_VERSION register for controllers which report incorrect values from this register add NO_SDIO_IRQ quirk, for controllers which should use SDIO IRQs Change-Id: I0f09f5a25c0d4048d8c7139a3d68ee3705f95589
2010-05-21mmc: add detection for MMC 4.4 boot sectorsGary King
properly unpacks the boot sector extension in MMC 4.4 CID responses
2010-05-21mmc: Add CONFIG_EMBEDDED_MMC_START_OFFSET configurationGary King
enables platforms to specify a non-zero offset for the MBR and kernel-visible file systems, for embedded systems which store proprietary data at the start of the eMMC device. Change-Id: Id58abaffddda7d7aeded8573f4aba6cc0c903a24
2010-05-20[arm] implement TLS register workaround for Tegra errata 657451Gary King
tegra 2 systems have a hardware errata which causes bit 20 of the TLS register (CP15 c13, operations 2-4) to be unreliable. in common user space threading libraries (glibc pthreads, bionic pthreads), the value stored in this register is guaranteed to be at least word-aligned, leaving bit 0 free. the work-around for this hardware errata is storing bit 20 of the user space-provided TLS value into bit 0 of the register inside __set_tls, and restoring it in the get_tls helper.
2010-05-20Revert "HACK stay compatible with the emulated TLS register HACK"Gary King
This reverts commit 197d3f06e732a0428701c4f3550b91f9fc1297ab.
2010-05-19[ARM] harmony_defconfig: enable NVEC, TEGRA_FB, RTC and USB KconfigsGary King
Change-Id: Ifdb35b62268f0c651c3b1052f61f379748329661
2010-05-19framebuffer: add tegra framebuffer driverGary King
Change-Id: I44a22bead5c7e93259fdd5f47e4878d09b1b5a12
2010-05-19[ARM/tegra] board-nvodm: open global GPIO handle for EC keyboardsGary King
Change-Id: Ib19d746e3e3a9f3b6c70d6563444fad176f5b088
2010-05-19input: keyboard: add keyboard driver for tegra NvEcGary King
Change-Id: I87b0263b80103faa428b9507fa0ca3603cfc8d7d
2010-05-19[ARM/tegra] board-nvodm: register tegra_battery driver if enabledGary King
Change-Id: I2659ea84b580be8671628b69316ef0c92e67f815
2010-05-19power: battery: add battery driver for tegra NvEc busGary King
Change-Id: I4df4a971ddb63459e739806d0b7820ea43016994
2010-05-19[ARM/tegra] board-nvodm: register nvec device when config enabledGary King
Change-Id: I28c25b24a02d2416e29bd791cd66d6478798a6fc
2010-05-19[ARM/tegra] add nvec embedded-controller transportGary King
Change-Id: I8471465a765f07b76cfb41e79a746d86145095c3
2010-05-19[ARM/tegra] board-nvodm: register OTG deviceGary King
Change-Id: Id929395b48813bad3476e7730ca40ce37bdda6c4
2010-05-18[ARM/tegra] board-nvodm: register a tegra_rtc device if it is enabledGary King
Change-Id: I5565b2cb0885accca7c05860b65862ca1c33eddb
2010-05-18rtc: add rtc-tegra-odm driverGary King
add an RTC driver using the NVIDIA PMU adaptation ODM kit interface Change-Id: I15665165ec4c175c2b140639bb01be7ebce6e6a1
2010-05-18[ARM/tegra] board-nvodm: register high-speed serial portsGary King
register a tegra_uart high-speed serial port for every UART on the system except for the debug console. for every connected UART, pass the pinmux configuration from the ODM query to the serial driver to support changing the tristate when transitioning into or out of suspend Change-Id: Ic15a1b16945ca685b23b50356eaae56925b60f5e
2010-05-18serial: tegra_hsuart: create custom platform data with pinmuxGary King
to allow the tegra serial driver to put the UART pins into tristate when the UART is suspended, pass a custom platform data structure to the driver which contains the list of pingroups to toggle when transitioning between power states Change-Id: I184d53ffe710d0ec2d4e0079d7767a218d328bae
2010-05-18serial: tegra_hsuart: set the clock rate when setting baud rateGary King
Change-Id: I87744c61c8dd48e6d6abef2945940e76ecd61cea
2010-05-18[ARM/tegra] board-nvodm: register EHCI controllersGary King
Change-Id: I378486aa5254e6300c055475505c4f6e762277c2
2010-05-18[ARM/tegra] initialize debug console based on ODM query valuesGary King
add a new board file for initialization of platform data and registration of platform devices based on ODM-queried values, rather than compile- time constants. add debug console (UART) initialization to it. Change-Id: I592cea3b714b03d3e122ad46d12305c43c9e382f
2010-05-18[ARM/tegra] remove debug uart from soc device initGary King
debug UART init will be based on the values reported by the ODM query, not compile-time based on a Kconfig option Change-Id: I4bac044a55fc973a144400a9b65be5b3ce1a1c51
2010-05-18nvmap: fix unpin/pin race condition with RECLAIM_UNPINNED_VMGary King
_nvmap_handle_unpin needs to acquire the mru_vma_lock before decrementing the pin count, to ensure that a decrement to zero and insertion on the MRU VMA list appears atomic with respect to a second client calling _nvmap_handle_pin on the same handle; otherwise, the two clients race and the pin operation may trigger a BUG because the handle has a valid IOVMM area but is not located on any MRU VMA list. also, clean up some additional allocation-inside-spinlock issues; release the MRU VMA lock before calling tegra_iovmm_create_vm, and reacquire the lock after returning. Change-Id: I6703d21266124b3084f10f5b94a12cdeaf43a330
2010-05-17[nvmap] restructure allocations to avoid allocation inside spinlocksGary King
statically allocate a maximally-sized block array at heap init time, rather than dynamically doubling the array size when spare blocks are unavailable. allocate new handle ref objects prior to locking the file's ref lock Change-Id: I193210e059ed38c67287650fc4b578e85097ec12
2010-05-17[ARM] l2x0: make l2x0_shutdown atomicGary King
if a standard cache maintenance operation is performed during the cache shutdown procedure (either in an interrupt, or as a typical DMA maintenance operation executed by a different processor in an SMP system), the cache controller can return an imprecise external abort. to avoid this, disable interrupts while the shutdown code is executing, and bug if the code is ever called while more than one processor is online Change-Id: Ib17e7e437a81663846316696ab2eaf3dcc3481cf
2010-05-17[ARM/tegra] iovmm: move split-block kzalloc out of spinlockGary King
when attempting to split a newly-allocated block, release the spinlock before attempting to kzalloc heap space for the new block structure, then reacquire the spinlock, to avoid sleeping inside an atomic section Change-Id: Iae69bca23d0c356fedf0de7e8f9360c4fd32f861
2010-05-17tegra power: suspend the AVP from the kernel, not the daemontkasivajhula
Put the AVP suspend operation in the kernel. It appears that someone in userspace is still active after nvrm_graphics has suspended.
2010-05-17tegra:Power Good Timer value change for HarmonyNarendra Damahe
Bug 679959 Change-Id: I60f183280f650bf5238bfdb944d5dd112832ad4d Reviewed-on: http://git-master/r/1403 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Tested-by: Trivikram Kasivajhula <tkasivajhula@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
2010-05-17[ARM/tegra] usbphy: partial revert of assignment != comparisonGary King
the assignment to hDdkUsbPhy->IsHostMode was intentional; rewrite the code to make this clearer Change-Id: Ifc881397c240049b7c0a4300ae3267be397bfda5 Reviewed-on: http://git-master/r/1420 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
2010-05-17[ARM/tegra] suspend: move initialization into a dedicated functionGary King
perform resource acquisition in a dedicated init-time function, to eliminate sleeping-inside-spinlock problems. Change-Id: If0b54a329c316314e78a6f7aa2c678a45dc298c3
2010-05-17nohz: Allow 32-bit machines to sleep for more than 2.15 secondsJon Hunter
In the dynamic tick code, "max_delta_ns" (member of the "clock_event_device" structure) represents the maximum sleep time that can occur between timer events in nanoseconds. The variable, "max_delta_ns", is defined as an unsigned long which is a 32-bit integer for 32-bit machines and a 64-bit integer for 64-bit machines (if -m64 option is used for gcc). The value of max_delta_ns is set by calling the function "clockevent_delta2ns()" which returns a maximum value of LONG_MAX. For a 32-bit machine LONG_MAX is equal to 0x7fffffff and in nanoseconds this equates to ~2.15 seconds. Hence, the maximum sleep time for a 32-bit machine is ~2.15 seconds, where as for a 64-bit machine it will be many years. This patch changes the type of max_delta_ns to be "u64" instead of "unsigned long" so that this variable is a 64-bit type for both 32-bit and 64-bit machines. It also changes the maximum value returned by clockevent_delta2ns() to KTIME_MAX. Hence this allows a 32-bit machine to sleep for longer than ~2.15 seconds. Please note that this patch also changes "min_delta_ns" to be "u64" too and although this is unnecessary, it makes the patch simpler as it avoids to fixup all callers of clockevent_delta2ns(). [ tglx: changed "unsigned long long" to u64 as we use this data type through out the time code ] Signed-off-by: Jon Hunter <jon-hunter@ti.com> Cc: John Stultz <johnstul@us.ibm.com> LKML-Reference: <1250617512-23567-3-git-send-email-jon-hunter@ti.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2010-05-17clockevents: Use u32 for mult and shift factorsThomas Gleixner
The mult and shift factors of clock events differ in their data type from those of clock sources for no reason. u32 is sufficient for both. shift is always <= 32 and mult is limited to 2^32-1 to avoid 64bit multiplication overflows in the conversion. Preparatory patch for a generic mult/shift factor calculation function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Mikael Pettersson <mikpe@it.uu.se> Acked-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Cc: John Stultz <johnstul@us.ibm.com> LKML-Reference: <20091111134229.725664788@linutronix.de>