summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* arm: msm: smd: remove unneeded predefinesDaniel Walker2010-05-121-41/+36
| | | | | | | | | This just removed some unneeded predefines. One needed a whole function moved down further. The others could just be deleted. No functional changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: smd: msm7x30 a2m clean upDaniel Walker2010-05-122-12/+16
| | | | | | | | This moves the msm_a2m_int() function into the header, and does a small macro clean up to be more inline with Linux norms. No functional changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: smd: convert unsigned addr to unsigned longDaniel Walker2010-05-121-1/+1
| | | | | | | | | | "unsigned" translates to "unsigned int", but this value holds an address. We always want to use unsigned long for addresses since it will change size to fit the machine. This just convert the one address holder to unsigned long. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: smd: use either package v3 or v4 not bothDaniel Walker2010-05-123-48/+78
| | | | | | | | | | | | | | | | | | | | This modifies SMD to use either the package v3 or package v4, but not both. The current code tries to allocate as v4 on all system which can produce a scary looking error message on boot up, smem_find(16, 40): wrong size 16424 smd_alloc_channel() cid=02 size=08192 'SMD_RPCCALL' With this error the code then falls back on the package v3 allocation method. This method is inefficient because it causes a slow down on some systems even when the allocation method can be determined at compile time. It also causes a kernel size increase that effects all system and is not needed. This change corrects the allocation to use one method or the other and not both. Signed-off-by: Daniel Walker <c_dwalke@quicinc.com>
* arm: msm: smd: checkpatch clean up of smd/proc_commDaniel Walker2010-05-124-24/+17
| | | | | | This cleans up coding style. There are no run time changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: smd: Force the half_channel struct aligmnent to 4Dima Zavin2010-05-121-1/+1
| | | | | | | | | Forcing the alignment prevents gcc from generating byte reads for word member variables. Lack of this caused issues when the app processor modified struct members and the modem saw a partial word write. Signed-off-by: Dima Zavin <dima@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: correctly signal the apps-to-modem irq in smd/proc_commDima Zavin2010-05-124-7/+31
| | | | | Signed-off-by: Dima Zavin <dima@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* msm: smd: provide atomic channel writesBrian Swetland2010-05-122-0/+11
| | | | | | | | | | Some smd clients may write from multiple threads, in which case it's not safe to call smd_write without holding a lock. smd_write_atomic() provides the same functionality as smd_write() but obtains the smd lock first. Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: add /proc/last_radio_log when supported by the modem.Iliyan Malchev2010-05-123-0/+87
| | | | | Signed-off-by: Iliyan Malchev <malchev@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* msm/qsd: smd: avoid race condition in smd channel allocationBrian Swetland2010-05-121-6/+7
| | | | | | | | Don't mark a channel as allocated if we failed to allocate it (perhaps the modem updated one table but not the other, etc) Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: smd: Update the correct fTAIL pointer after reading from fifoHaley Teng2010-05-121-1/+1
| | | | | | | | | When we read data out of the sender's fifo, we need to advance the sender's tail pointer, not the receiver's. Signed-off-by: Haley Teng <Haley_Teng@htc.com> Acked-by: Dima Zavin <dima@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: smd: add support for DSP SMD channelsBrian Swetland2010-05-123-50/+76
| | | | | | | | | - QSD8250 has a DSP that speaks SMD, in addition to the modem - handle a separate list of modem vs dsp channels - install dsp smd irq handler as necessary Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: cleanup smd, separate debugfs supportBrian Swetland2010-05-124-405/+433
| | | | | | | | | - pull debug code into smd_debug.c - move necessary structures and defines into smd_private.h - fix some comment formatting, etc Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: Add 8k power collapse support to smdArve Hjønnevåg2010-05-122-24/+57
| | | | | Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: Add item argument to smsm_change_state and smsm_get_stateArve Hjønnevåg2010-05-122-38/+50
| | | | | | | | The new protocol require writing to two state fields, and reading several fields. Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* msm: smd: initial support for smd v2Brian Swetland2010-05-122-189/+313
| | | | | | | | | | | - support both v2 and v1 style smd channels - support both v2 and v1 smsm shared state - update smsm state defines and smem item enum - prep work for dealing with smd to qdsp6 - simplify some smem access to minimize use of smem_alloc() at runtime Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: smd: don't crash if the smd channel table doesn't existBrian Swetland2010-05-121-1/+4
| | | | | Signed-off-by: Brian Swetland <swetland@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: shared memory interface for baseband processor ipcBrian Swetland2010-05-126-1/+1625
| | | | | | | | | This code provides the low level interface to the "shared memory state machine" (smsm), and the virtual serial channels (smd), used to communicate with the baseband processor. Higher level transports (rpc, ethernet, AT command channel, etc) ride on top of this. Signed-off-by: Brian Swetland <swetland@google.com>
* [ARM] msm: sdcc: Make slot status irq be a resourceDima Zavin2010-05-121-1/+57
| | | | | | | | Also, convert all SDCC IRQ resources to be named. No longer pass status_irq in the platform_data Signed-off-by: Dima Zavin <dima@android.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: common: Add SDC device runtime registrationSan Mehat2010-05-121-0/+22
| | | | | Signed-off-by: San Mehat <san@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* MAINTAINERS: add MSM mailing listDaniel Walker2010-05-121-0/+1
| | | | | | Just adds a mailing list to the MSM maintainer entry. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: add board file for Nexus One (ie. mahimahi)Daniel Walker2010-05-121-0/+87
| | | | | | This adds a basic board file without Kconfig changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* [ARM] msm: add new vreg IDs for MSM7X30Willie Ruan2010-05-121-0/+17
| | | | Signed-off-by: Willie Ruan <wruan@quicinc.com>
* arm: msm: add vreg reference countMatt Wilson2010-05-121-36/+79
| | | | | | | | | | Support independent enable and disable by clients for common vreg. First enable switches on and last disable switches off. This change has no check for voltage level so clients must agree on level for common vreg. Signed-off-by: Matthew Wilson <mtwilson@quicinc.com>
* arm: msm: warning fix in acpuclock.cDaniel Walker2010-05-121-0/+3
| | | | | | | | | | Fixes the following warning, arch/arm/mach-msm/acpuclock-arm11.c:138: warning: 'freq_table' defined but not used when CONFIG_CPU_FREQ_TABLE is not enabled. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: status for vregSteve Muckle2010-05-122-38/+54
| | | | | | | Keep track of the success/failure of the last vreg proc comm command, and return that on debugfs reads. Signed-off-by: Steve Muckle <smuckle@quicinc.com>
* arm: msm: return error pointer in vreg_get if vreg not foundSteve Muckle2010-05-121-1/+1
| | | | Signed-off-by: Steve Muckle <smuckle@quicinc.com>
* arm: msm: move board-dream.c to board-trout.cDaniel Walker2010-05-123-3/+3
| | | | | | Move the naming of this board file back to the original Google naming. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: add cpu frequency controlsDaniel Walker2010-05-124-0/+567
| | | | | | | | | | This adds acpuclock-arm11.c from Google. This provides control over the cpu frequency for arm11 cpu's. This has shared authorship between Google, and Qualcomm. Most of it was written by Mike Chan at Google. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* msm: add dsb() syncronization to datamover driverBrian Swetland2010-05-121-0/+4
| | | | | | Avoids problems on the scorpion core. Signed-off-by: Brian Swetland <swetland@google.com>
* [ARM] msm: dma: Enable dma clock while dma is activeArve Hjønnevåg2010-05-121-1/+16
| | | | Signed-off-by: Arve Hjønnevåg <arve@android.com>
* [ARM] msm: dma: disable_irq -> disable_irq_nosyncArve Hjønnevåg2010-05-121-1/+1
| | | | Signed-off-by: Arve Hjønnevåg <arve@android.com>
* [ARM] msm: Update list of proc_comm enums.Dima Zavin2010-05-121-6/+96
| | | | Signed-off-by: Dima Zavin <dima@android.com>
* [ARM] msm: irq: fix lockdep issuesArve Hjønnevåg2010-05-121-2/+2
| | | | Signed-off-by: Brian Swetland <swetland@google.com>
* [ARM] msm: Add MSM_DEBUG_UART option.Arve Hjønnevåg2010-05-121-0/+4
| | | | Signed-off-by: Arve Hjønnevåg <arve@android.com>
* [ARM] msm: halibut: Add memory configuration.Arve Hjønnevåg2010-05-121-0/+11
|
* arm: msm: add board file for QSD8x50 SURF and FFADaniel Walker2010-05-121-0/+176
| | | | | | This adds a basic board file without Kconfig changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: add board file for MSM7x30 SURF and FFADaniel Walker2010-05-121-0/+196
| | | | | | This adds a basic board file without Kconfig changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: add board file for MSM7x25/MSM7x27 SURF and FFADaniel Walker2010-05-121-0/+179
| | | | | | This adds a basic board file without Kconfig changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: add board file for the HTC Sapphire deviceDaniel Walker2010-05-121-0/+118
| | | | | | This adds a basic board file without Kconfig changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* Revert "arm: msm: add oprofile pmu support"Daniel Walker2010-05-071-2/+0
| | | | | | | | This reverts commit ee3c454b8da04815c1884ed85fe89d2d131c0e51. As request by Russell King. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: mm: qsd8x50: Fix incorrect permission faultsDave Estes2010-05-032-0/+23
| | | | | | | | | Handle incorrectly reported permission faults for qsd8650. On permission faults, retry MVA to PA conversion. If retry detects translation fault. Report as translation fault. Cc: Jamie Lokier <jamie@shareable.org> Signed-off-by: Dave Estes <cestes@quicinc.com>
* arm: msm: add oprofile pmu supportDaniel Walker2010-05-031-0/+2
| | | | | | add oprofile pmu support for msm. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* arm: msm: define HAVE_CLK for ARCH_MSMSteve Muckle2010-05-031-0/+1
| | | | | | | MSM supports the <linux/clk.h> interface. Acked-by: David Brown <davidb@quicinc.com> Signed-off-by: Steve Muckle <smuckle@quicinc.com>
* arm: msm: allow ARCH_MSM to have v7 cpusDaniel Walker2010-05-032-5/+7
| | | | | | | | | ARCH_MSM supports armv7 cpus, so we're pushed the CPU_V6/CPU_V7 selection down into the arch/arm/mach-msm/Kconfig. Also update the description to be a bit more accurate. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6Linus Torvalds2010-04-3014-9/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: Staging: vme: Re-introduce necessary brackets Staging: iio: fix up the iio_get_new_idr_val comment Staging: add Add Sitecom WL-349 to rtl8192su Staging: rt2860: add Belkin F5D8055 Wireless-N USB Dongle device id staging: rtl8192su: add Support for Belkin F5D8053 v6 Staging: dt3155: fix 50Hz configuration staging: usbip: Fix deadlock Staging: rtl8192su: add USB ID for 0bda:8171 Staging: hv: name network device ethX rather than sethX Staging: hv: Fix up memory leak on HvCleanup Staging: hv: Fix a bug affecting IPv6 staging: iio: ring_sw: Fix incorrect test on successful read of last value, causes infinite loop staging: iio: Function iio_get_new_idr_val() return negative value if fails. Staging: iio: adc: fix dangling pointers Staging: iio: light: fix dangling pointers Staging: iio: test for failed allocation staging: iio: lis3l02dq - incorrect ws used in container of call.
| * Staging: vme: Re-introduce necessary bracketsMartyn Welch2010-04-301-1/+2
| | | | | | | | | | | | | | | | | | Somehow I managed to remove a set of rather necessary brackets in commit 29848ac9f3b33bf171439ae2d66d40e6a71446c4. Put them back. Signed-off-by: Martyn Welch <martyn.welch@ge.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: iio: fix up the iio_get_new_idr_val commentAndrew Morton2010-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | improve the comment a bit Cc: Greg KH <greg@kroah.com> Cc: Jonathan Cameron <jic23@cam.ac.uk> Cc: Sonic Zhang <sonic.adi@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: add Add Sitecom WL-349 to rtl8192suRodrigo Linfati2010-04-301-0/+1
| | | | | | | | | | | | | | | | Add usb id of Sitecom WL-349 to rtl8192su Signed-off-by: Rodrigo Linfati <rodrigo@linfati.cl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: rt2860: add Belkin F5D8055 Wireless-N USB Dongle device idChris Largret2010-04-301-0/+1
| | | | | | | | | | | | | | | | | | Add Belkin F5D8055 Wireless-N USB support to the rt2870 staging driver. Signed-off-by: Chris Largret <largret@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>