Commit Graph

211377 Commits

Author SHA1 Message Date
Gary King
f0b0e4bec1 mmc: subtract boot sectors from disk size for eMMC 4.3+ devices
the csd sector count reported by eMMC 4.3+ cards includes the boot
partition size; subtract this from the size reported to the disk
since the boot partition is inaccessible

Change-Id: I601b83aa0159b7aa446409ea8c945b256dd0b5b1
Signed-off-by: Gary King <gking@nvidia.com>
2010-09-29 17:49:48 -07:00
Colin Cross
057ac3a83f mmc_block: Allow more than 8 partitions per card
Set the GENHD_FL_EXT_DEVT flag, which will allocate minor numbers
in major 259 for partitions past disk->minors.

Also remove the use of disk_devt to determine devidx from md->disk.
md->disk->first_minor is always initialized from devidx and can
always be used to recover it.

Signed-off-by: Colin Cross <ccross@android.com>
2010-09-29 17:49:47 -07:00
Todd Poynor
315d5003ed EFI/GPT: Register named partitions.
Change-Id: If318512de67d3d152192aa66b074427f4e5b5c2e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-09-29 17:49:47 -07:00
Colin Cross
4cc08cf96b fs: partitions: Add support for named partitions
Adds a new file in /sys/block/<block>/<partition> called partition_name
that contains the name of the partition, if specified by the partition
handler.

Change-Id: I6648ed95eabefd1d00edbfdfd99eeb971d15f4b3
Signed-off-by: Colin Cross <ccross@android.com>
2010-09-29 17:49:47 -07:00
Greg Goldman
ba58353286 net: wireless: bcm4329: Fix roaming failure case
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:47 -07:00
Colin Cross
3d46a3cb10 PM: Prevent waiting forever on asynchronous resume after abort
Only wait on a parent device during resume if the parent device is
suspended.

Consider three drivers, A, B, and C.  The parent of A is C, and C
has async_suspend set.  On boot, C->power.completion is initialized
to 0.

During the first suspend:
suspend_devices_and_enter(...)
 dpm_resume(...)
  device_suspend(A)
  device_suspend(B) returns error, aborts suspend
 dpm_resume_end(...)
   dpm_resume(...)
    device_resume(A)
     dpm_wait(A->parent == C)
      wait_for_completion(C->power.completion)

The wait_for_completion will never complete, because
complete_all(C->power.completion) will only be called from
device_suspend(C) or device_resume(C), neither of which is called
if suspend is aborted before C.

After a successful suspend->resume cycle, where B doesn't abort
suspend, C->power.completion is left in the completed state by the
call to device_resume(C), and the same call path will work if B
aborts suspend.

Signed-off-by: Colin Cross <ccross@android.com>
2010-09-29 17:49:47 -07:00
Erik Gilling
43e1b91e2f power: wakelock: call __get_wall_to_monotonic() instead of using wall_to_monotonic
Change-Id: I9e9c3b923bf9a22ffd48f80a72050289496e57d8
2010-09-29 17:49:47 -07:00
Dmitry Shmidt
edf0c3e535 net: Fix CONFIG_RPS option to be turned off
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:46 -07:00
Dmitry Shmidt
18f98d725e net: wireless: bcm4329: Fix HW_OOB interrupt processing
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:46 -07:00
Rebecca Schultz Zavin
b4a89b9b9a Revert "net: wireless: bcm4329: Fix HW_OOB interrupt processing"
This reverts commit 8bd035daa820dc5612ae311262c71dc133871046.
2010-09-29 17:49:46 -07:00
Rebecca Schultz Zavin
b8fc65dc90 Revert "net: wireless: bcm4329: Fix interrupt enabling for level interrupt"
This reverts commit 261d21bbfffef6261696d0d13672d2e4f9d76f05.
2010-09-29 17:49:46 -07:00
Dmitry Shmidt
d0a7955ffa net: wireless: bcm4329: Fix interrupt enabling for level interrupt
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:46 -07:00
Dmitry Shmidt
be801727f0 net: wireless: bcm4329: Fix HW_OOB interrupt processing
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:46 -07:00
Mike Lockwood
399bd7a333 USB: gadget: android: Disable MTP when RNDIS function is enabled.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-09-29 17:49:45 -07:00
Greg Goldman
f81a97ad60 net: wireless: bcm4329: Update to Version 4.218.248
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:45 -07:00
Colin Cross
eb31fe8d3c wakelock: Fix operator precedence bug
Change-Id: I21366ace371d1b8f4684ddbe4ea8d555a926ac21
Signed-off-by: Colin Cross <ccross@google.com>
2010-09-29 17:49:45 -07:00
Colin Cross
43d0a32b39 ashmem: Update arguments of shrinker for 2.6.35
Change-Id: Ie527d18f3352ede06d565826c8d35ded1638203a
Signed-off-by: Colin Cross <ccross@google.com>
2010-09-29 17:49:45 -07:00
Colin Cross
e18365ec30 lowmemorykiller: Update arguments of shrinker for 2.6.35
Change-Id: I6bb09b36639527f91c48704118acad5e50c4163f
Signed-off-by: Colin Cross <ccross@google.com>
2010-09-29 17:49:45 -07:00
Dmitry Shmidt
70eeb9a8f2 net: wireless: bcm4329: Send "HANG" message only once
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:45 -07:00
Jamie Gennis
2d799633c9 Allow multiple pmem master mmap()s.
Signed-off-by: Jamie Gennis <jgennis@google.com>
Change-Id: Icbe619c92e0ebb391f0a93f81937705452a67d87
2010-09-29 17:49:44 -07:00
Howard Harte
ec623f1655 net: wireless: bcm4329: Disable packet filtering
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:44 -07:00
Dmitry Shmidt
4048669447 net: wireless: bcm4329: Turn OFF packet filtering during DHCP session
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:44 -07:00
Dmitry Shmidt
04326661cc net: wireless: bcm4329: Increase PMU_MAX_TRANSITION_DLY to 1 sec
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:44 -07:00
Dmitry Shmidt
f2a4bf82ad net: wireless: bcm4329: Fix "setsuspend" behavior
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:44 -07:00
Dmitry Shmidt
73d6c2a868 net: wireless: bcm4329: Add memory barriers to wait functions
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Dmitry Shmidt
493833c3cf net: wireless: bcm4329: Fix unregister_early_suspend() in dhd_detach()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Greg Goldman
3a36e1fb80 net: wireless: bcm4329: Fix dhd_bus_watchdog() race conditions
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Greg Goldman
95f265ce59 net: wireless: bcm4329: Fix scan timeout for abg case
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Greg Goldman
6785d406dc net: wireless: bcm4329: Force scan when driver is loaded
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Dmitry Shmidt
5aba5f0f78 net: wireless: bcm4329: Add wakelock processing to WEXT requests
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:43 -07:00
Greg Goldman
c97fa2daa8 net: wireless: bcm4329: Update to Version 4.218.246 and setband fix
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:42 -07:00
Howard Harte
d3bf457b29 net: wireless: bcm4329: Update to 4.218.245 (combo scan)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:42 -07:00
Mike Lockwood
b4ff5d8efe USB: g_mass_storage: Always allow disabling mass storage by writing to lun file
For android builds we disable the check for curlun->prevent_medium_removal.
Instead we let the framework manage unmounting policy, as we sometimes need
to unmount after the media has been removed.
This also helps support hosts that do not inform the device when the media
has been unmounted.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-09-29 17:49:42 -07:00
Arve Hjønnevåg
88af8fe00c yaffs: Use init_timer_on_stack for timer on stack
Change-Id: I517b94a1ca22c1690fd6421cf9892a05039a3def
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2010-09-29 17:49:42 -07:00
Dima Zavin
b5a327cd78 input: gpio_event: make driver be more robust against incorrectly configured lvl trigger irqs
Change-Id: Ie378600668500dcffeaaddeaba3628e5c2141aa4
Signed-off-by: Dima Zavin <dima@android.com>
2010-09-29 17:49:42 -07:00
Arve Hjønnevåg
77598e8316 Input: gpio_event: Don't call gpio_cansleep before gpio_request.
If the gpio did not exist it would crash in gpiolib.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
2010-09-29 17:49:41 -07:00
Dmitry Shmidt
325c547f8b net: wireless: bcm4329: Add wakelock processing in ioctl and messaging
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:41 -07:00
Howard Harte
29b41d7cc4 net: wireless: bcm4329: Fix packet filter to only filter out non-unicast frames
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:41 -07:00
Arve Hjønnevåg
a231637f32 ashmem: Fix ASHMEM_SET_PROT_MASK.
Change-Id: I1412cc9560de8c4feb1162fc30922f0e3362a476
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2010-09-29 17:49:41 -07:00
Mike Chan
9237de98d1 scheduler: cpuacct: Enable platform callbacks for cpuacct power tracking
Platform must register cpu power function that return power in
milliWatt seconds.

Change-Id: I1caa0335e316c352eee3b1ddf326fcd4942bcbe8
Signed-off-by: Mike Chan <mike@android.com>
2010-09-29 17:49:41 -07:00
Mike Chan
8d8e56b794 scheduler: cpuacct: Enable platform hooks to track cpuusage for CPU frequencies
Introduce new platform callback hooks for cpuacct for tracking CPU frequencies

Not all platforms / architectures have a set CPU_FREQ_TABLE defined
for CPU transition speeds. In order to track time spent in at various
CPU frequencies, we enable platform callbacks from cpuacct for this accounting.

Architectures that support overclock boosting, or don't have pre-defined
frequency tables can implement their own bucketing system that makes sense
given their cpufreq scaling abilities.

New file:
cpuacct.cpufreq reports the CPU time (in nanoseconds) spent at each CPU
frequency.

Change-Id: I10a80b3162e6fff3a8a2f74dd6bb37e88b12ba96
Signed-off-by: Mike Chan <mike@android.com>
2010-09-29 17:49:41 -07:00
Mike Lockwood
73b1c8a4ea USB: gadget: f_mtp: Add ioctl for sending events via the interrupt endpoint
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-09-29 17:49:40 -07:00
Colin Cross
f69c4142c1 misc: add akm8975 compass driver
Originally written by HTC. Contributions by Motorola and AKM.
  misc: Import akm8975 from Motorola

Major style and code cleanups by Praveen Bharathi <pbharathi@motorola.com>
  misc: akm8975: clean up code violations in akm8975.c
  misc: akm8975: Clean up coding style, add suspend and resume

Change-Id: I4196913f15aec2dfbed47506d3dc085aada8e92d
Signed-off-by: Dima Zavin <dima@android.com>
2010-09-29 17:49:40 -07:00
Dmitry Shmidt
d046c853ab drivers: usb: gadget: rndis: Fix section mismatch warning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:40 -07:00
Dmitry Shmidt
a9459724d5 drivers: usb: gadget: mass_storage: Fix section mismatch warning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:40 -07:00
Dmitry Shmidt
c51e3dc98e drivers: input: misc: Fix section mismatch warning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:40 -07:00
Dmitry Shmidt
53847ce6d7 drivers: usb: gadget: Fix section mismatch warning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:40 -07:00
Dmitry Shmidt
11d4919b98 network: wireless: bcm4329: Add driver SETSUSPEND command
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:39 -07:00
Greg Goldman
0631793701 network: wireless: bcm4329: Fix BUS DOWN in IOCTL
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-09-29 17:49:39 -07:00
Mike Lockwood
35ee07a4df USB: composite: Add usb_composite_force_reset utility to force enumeration
Use this rather than calling usb_gadget_disconnect and usb_gadget_connect
directly to avoid sending USB disconnect events to userspace when resetting
the bus.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-09-29 17:49:39 -07:00