Commit Graph

214054 Commits

Author SHA1 Message Date
Mike Lockwood
99b7fdff26 USB: gadget: f_accessory: Add string for accessory's unique serial number
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-14 19:48:33 -04:00
James Wylder
4b2d0d6672 [ARM] tegra: stingray: change display EMC clock rate
With the nVidia recommended clock rates of 300, 150,
and 50, the current value (400000000 internal rate or
200 MHz external clock rate) will round up to full speed
rather than use the intended middle rate(300000000 or
150 MHz external memory).

This saves 10 mA at the battery, when the display is
on but during low work loads.

Change-Id: I291d758166a0e3747163c1831933da01fadb8e69
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-03-14 13:54:56 -07:00
Mike Lockwood
2fc14f8dab USB: gadget: f_accessory: Clear disconnected flag when driver file is opened
Fixes a race condition that can occur when entering accessory mode.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-12 21:35:28 -05:00
Mike Lockwood
30e18b848c USB: gadget: f_accessory: Clear previous strings on ACCESSORY_GET_PROTOCOL
Clearing strings on disconnect does not work since we may receive
a disconnect on some devices when transitioning into accessory mode.
We require an accessory to send ACCESSORY_GET_PROTOCOL before
sending any strings, so any strings from a previous session will be cleared.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-12 20:19:25 -05:00
Mike Lockwood
6c77858765 USB: gadget: f_accessory: Clear accessory strings when USB is disconnected
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-10 16:48:34 -05:00
Mike Lockwood
5dcd55b2e9 USB: gadget: f_accessory: Misc improvements and cleanup:
- Add URI string

- Replace type string with a description string

- Add a control call to retrieve accessory protocol version (currently 1)

- Driver read() and write() calls now fail after USB disconnect until
  driver file is closed and reopened.

- Misc cleanup work

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-03-10 10:07:27 -05:00
makarand.karvekar
68c3ec37af [ARM]: tegra: enable gyro interrupts
initial ODR set at 100Hz
enable DRDY (data ready) interrupt in gyro
enable Block Data Update (BDU)

Change-Id: I5cd5762644aeb90db4fe66259fe0edb8324d941b
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-09 13:19:55 -08:00
makarand.karvekar
80013113a0 misc: gyro: interrupt based gyro data read and report
gyro ODR set at 100/200/400/800 Hz
closest to requested delay.
gyro data read and reported at every interrupt.
Reported rate matches the gyro ODR rate

Change-Id: I754ea31054d73863b0512607abe81f1f1dcea367
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-09 13:19:55 -08:00
Benoit Goby
e023adab35 net: usb: qcusbnet: Radio not supports SetControlLineState
Change-Id: I68a751798236be0e7f7ddd54509eeac1005d953e
Signed-off-by: Srinivas Gowrishetty <srinivas.gowrishetty@motorola.com>
2011-03-09 12:46:18 -08:00
Jeff Brown
d060167f63 ARM: tegra: stingray: Add CONFIG_JOYSTICK_XPAD 2011-03-08 12:28:43 -08:00
Rebecca Schultz Zavin
7abdb5ddd6 Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36 2011-03-08 12:26:45 -08:00
Rebecca Schultz Zavin
fe7c356123 Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36 2011-03-08 12:22:31 -08:00
Rebecca Schultz Zavin
be7b9ce20d Revert "Revert "tegra: host: move stale wait checking into the kernel""
This reverts commit b3cc1d84d0.
2011-03-08 12:15:30 -08:00
Benoit Goby
d1d818cf4c mdm6600: Fix possible use after free
If a disconnect happens while the ril runs a tiocmset ioctl, the usb
interface will get freed. Then before returning, autopm_put_interface
will access the interface struct after it has been freed. Get an
interface reference to prevent it from being freed before the tty
has been released.

Change-Id: Ia009995c3fcdfa2e590b36e0c413433ea5f97b59
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-04 15:06:11 -08:00
Kazuhiro Ondo
14a13cbc5e ARM: tegra: stingray: usbnet: sysfs attribute to identify BLAN
This is to help user spece modules to identify Motorola BLAN
networking device. Work around the issue of getting semi-random
interface number depending on the boot-up configuration.

Change-Id: Ib2b16699239a16da960c33ef98bbee84bde71dec
Signed-off-by: Kazuhiro Ondo <kazuhiro.ondo@motorola.com>
2011-03-04 14:10:32 -08:00
makarand.karvekar
3e8bebdeaa [ARM]: tegra: stingray: set backlight scaling factor
set backlight scaling factor based on display panel.
AUO scaling at 726 makes it bit more brighter

Change-Id: I568ff158f00260894d95c00ac1e96632e2636d58
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-04 10:54:47 -08:00
makarand.karvekar
cbdfcbc03f leds: lp8550: get backlight scaling factor from platform data
backlight scaling factor varies with display panel

Change-Id: I45ea0d76526d4297412d177481acded082ce7104
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-04 10:54:29 -08:00
Benoit Goby
047910a562 net: usb: qcusbnet: Fix kernel panic on probe/disconnect
Use list_for_each_safe since the loop kfree the current list entry.

If qc_register fails, probe calls qc_deregister. qc_deregister accesses
the cdev struct, so make sure it has been initialized before returning
from qc_register.

Fix missing spin_unlock_irqrestore

Change-Id: I56db6ffaa0c7b258d383d0a6211f63318fa9c08f
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-03 19:36:51 -08:00
James Wylder
7ca9bb05f0 ARM: tegra: stingray: Update Memory tables
Change all rates to integer multipliers, and
Add table for 40nm Elpida

Change-Id: Ie3a4e47948f541326da664537604e2c3061e3a92
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-03-03 18:57:46 -08:00
James Wylder
ae2833c5e5 ARM: tegra: stingray: use generic memory vendor matching
Initialize arrays to utilize new signature of tegra_init_emc.
Memory types are matched internally and command line
option is no longer needed.

Change-Id: Icc7d44e4a82031638c78eeac3b172b713e0ca97b
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-03-03 18:57:31 -08:00
Colin Cross
1d05dd86db Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36 2011-03-03 18:55:51 -08:00
Colin Cross
07a84a1ce6 Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36 2011-03-03 18:55:38 -08:00
James Wylder
1bc517b59d ARM: tegra: add generic memory vendor matching
Update tegra_init_emc to provide generic memory
vendor matching.  Read values from EMC_MRR_0, to
uniquely identify memory types and compare them
to table of memory passed in.

Change-Id: Ie116fa6f497076149c87ff6c0ae0621309bac65f
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-03-03 18:54:12 -08:00
Colin Cross
8e15ee8536 ARM: tegra: Use readl/writel_relaxed for reset
tegra_assert_system_reset is called after the cache is disabled.
Calling writel will cause the PL310 store buffers to be drained,
which requires taking a spinlock.  Taking a spinlock is not safe
after the caches are disabled.  Convert to readl_relaxed and
writel_relaxed.

Change-Id: I6850179b931ca865580c0fd3fe003b46bdfa43ae
Signed-off-by: Colin Cross <ccross@android.com>
2011-03-03 18:53:08 -08:00
makarand.karvekar
653b4fd76a [ARM]: tegra: stingray: update ABS x,y max/min values to 0-base
Change-Id: I40e40c843ca732980d454aba721b338ee2e78f4d
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-03 17:14:39 -08:00
makarand.karvekar
e3ef598681 [ARM]: tegra: stingray: update ALS interrupt delay to 400mS
Change-Id: Ib8ac11ed7397df1c65097a7d341c29b80c1aafeb
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-03 16:32:35 -08:00
makarand.karvekar
8357c9c3d0 misc: kxtf9: corrected cancel work sync call for delayed work
Change-Id: Iec914fd1102b8b6dba5d9b818b6eacb0d6481187
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-03 16:28:27 -08:00
makarand.karvekar
1f373314b7 misc: amk8975: correct y-axis and orientation status reporting
y-axis: REL_WHEEL
orientation status: REL_HWHEEL

Change-Id: I1268b4cffe281b8871be6a34856cab21f4ca3da3
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
2011-03-03 16:27:16 -08:00
Rebecca Schultz Zavin
e50f433beb Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36 2011-03-03 14:30:35 -08:00
Rebecca Schultz Zavin
492f2efde4 Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36 2011-03-03 14:29:26 -08:00
Rebecca Schultz Zavin
b3cc1d84d0 Revert "tegra: host: move stale wait checking into the kernel"
This reverts commit 2d49bf33f3.
2011-03-03 14:28:07 -08:00
Benoit Goby
7544916bf3 ARM: tegra: stingray: Add CONFIG_USB_NET_GOBI
Change-Id: I6e62613f3092578f62af0b87660ffd153e7b2d1e
2011-03-02 18:24:26 -08:00
Benoit Goby
e026f740c6 net: usb: qcusbnet: Add support for poll/select
Change-Id: I974c3e0337b3c4eebd821919966979e670c93b6b
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-02 18:24:26 -08:00
Benoit Goby
9933a51090 net: usb: qcusbnet: Add support for stingray modem
1. Implement reset_resume
2. Remove hardcoding of qmi to interface 0
3. Correctly assign bulk in and out endpoints
4. Change ethernet interface name from usbX to qmiX to remove conflicts with other drivers
5. Assign individual MAC address to each ethernet interface
6. Modify the usb device table to include subclass interface ids for motorola products
7. Remove any hardcoded interface, endpoint numbers

Change-Id: I3b08a5b0acb841e38177cdd758a16f32913246bb
Signed-off-by: Srinivas Gowrishetty <srinivas.gowrishetty@motorola.com>
2011-03-02 18:24:26 -08:00
Rebecca Schultz Zavin
d85524233a Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36 2011-03-02 17:41:04 -08:00
Rebecca Schultz Zavin
85d34d3140 Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36 2011-03-02 17:31:34 -08:00
Prajakta Gudadhe
2d49bf33f3 tegra: host: move stale wait checking into the kernel
The kernel now receives wait tracking data (similar to gathers and
relocs) and compares the current syncpt with the threshold value.

If it's old, it gets a kernel mapping and rewrites the method data
to use a kernel reserved syncpt that is always 0 (so trivially pops
when seen by the HW).

Patch has dependency to the user-space patches

Submitted on behalf of: Chris Johnson <cjohnson@nvidia.com>
original work by: Chris Johnson <cjohnson@nvidia.com>

Change-Id: I4d4e5d3b49cab860485c4172f87247f5b4f5ea6e
2011-03-02 17:16:55 -08:00
Benoit Goby
d6b7215b95 mdm6600: Match subclass interface info during probe
Change-Id: I0c17747b51a888e53b29cef4c409da2d67733ae1
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-02 16:36:24 -08:00
James Wylder
9f0b555056 usb: serial: Add new motoflash pid for wrigley
Add the updated wrigley datacard pid to the
list of flashable devices.

Change-Id: I44c0dc1d64136003eeb50df436f20e7765f058dc
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-03-02 14:43:27 -08:00
Benoit Goby
cedfafd0e0 ARM: tegra: stingray: Change wifi-only devices product name
Change-Id: I2f3b0176115b0f52345c61c02359ee6cb62e907f
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 20:15:23 -08:00
Benoit Goby
c5ee62dc90 ARM: tegra: stingray: Moved tegra_usb.h to linux/platform_data
Change-Id: Iee9df4021ffa82eb5f8f4915072466f0ab20cb89
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:29:04 -08:00
Benoit Goby
853ee0a9a7 usb: otg: cpcap: Moved tegra_usb.h to linux/platform_data
Change-Id: Id745ee5684f079b09f5076a4453f4f925ddc1210
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:29:04 -08:00
Benoit Goby
0f5f6373e3 ARM: tegra: stingray_defconfig: Renamed CONFIG_USB_EHCI_TEGRA
Change-Id: I81e3a0221e04280155e2523e954d9b4bcd1b8066
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:29:03 -08:00
Colin Cross
11267bd7f0 Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36 2011-03-01 17:27:10 -08:00
Colin Cross
4f72bb8edd Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36 2011-03-01 17:26:56 -08:00
Benoit Goby
58570bc0c4 usb: host: Renamed USB_TEGRA_HCD -> USB_EHCI_TEGRA
Change-Id: I2eec79186d6dc258caa2f3c8f3cd071222d1c5c7
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:13:34 -08:00
Benoit Goby
e859d82480 ARM: tegra: select USB_ARCH_HAS_EHCI
usb_phy now depends on USB_ULPI_VIEWPORT

Change-Id: I5f3c996b41b50e74aa2b53eb246e100926108bff
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:13:34 -08:00
Benoit Goby
bca6fceaeb usb: do not force select has_ehci for tegra
Change-Id: If6219a3ba9671a2c4c10b35461e1cc2ffe50ab0a
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:13:33 -08:00
Benoit Goby
614d2e5a27 ARM: tegra: use generic ulpi operations
Change-Id: I5b56a8a1b10532683accfe885387afb309b26b19
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:13:33 -08:00
Benoit Goby
406248bb21 usb: otg: Add ulpi viewport access ops
Add generic access ops for controllers with a ulpi viewport register
(e.g. Chipidea based controller).

Change-Id: I53d50857d4716f8df708af199ad1def1ff9d4beb
Signed-off-by: Benoit Goby <benoit@android.com>
2011-03-01 17:13:32 -08:00