- 11 Dec, 2012 13 commits
-
-
Lee Jones authored
Let's rename the Device Tree node which contains information about an attached battery to something more easily readable. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Now that we always pass platform specific battery management data through platform_data instead of obtaining it via different means depending the way be boot the system (DT or ATAGs); we need to re-jiggle the way we acquire it in the driver start-up functions. Now it is wrong for it to be missing, but we still allow Device Tree code to fiddle with it once we've confirmed it's there. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Now that we always pass platform specific battery management data through platform_data instead of obtaining it via different means depending the way be boot the system (DT or ATAGs); we need to re-jiggle the way we acquire it in the driver start-up functions. Now it is wrong for it to be missing, but we still allow Device Tree code to fiddle with it once we've confirmed it's there. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Now that we always pass platform specific battery management data through platform_data instead of obtaining it via different means depending the way be boot the system (DT or ATAGs); we need to re-jiggle the way we acquire it in the driver start-up functions. Now it is wrong for it to be missing, but we still allow Device Tree code to fiddle with it once we've confirmed it's there. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Now that we always pass platform specific battery management data through platform_data instead of obtaining it via different means depending the way be boot the system (DT or ATAGs); we need to re-jiggle the way we acquire it in the driver start-up functions. Now it is wrong for it to be missing, but we still allow Device Tree code to fiddle with it once we've confirmed it's there. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Currently the AB8500 battery management subsystem receives platform specific information via two different means depending on how the platform is booted. If DT is not enabled, a reference to a *_bm_data data structure containing each platform specific attribute is passed though platform_data. However, if DT is enabled, then platform_data is empty and the reference is gained though a DT specific probe function. There are two issues here 1) the same reference is being collected each time and 2) the DT way doesn't allow any provisions to select different platform specific attributes, which kind of defeats the object. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
The platform specific battery management configuration data structure is currently called 'bat' short for 'battery'; however, it contains information for all components of the battery management group, rather than information pertaining to the battery itself - there are other structures for that. So, in keeping with its structure namesake 'abx500_bm_data', we rename it to 'bm' here. Using similar logic, we're also renaming 'bmdevs_of_probe' to the more device specific 'ab8500_bm_of_probe'. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
We can actually write bmdevs_of_probe to be easier to follow, use less lines of code and we can even render a variable unused so that we can remove it completely. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Lee Jones authored
Simple patch to rectify incorrect tabbing. Also adds some coding style clean-ups to make it easier to read. Signed-off-by:
Lee Jones <lee.jones@linaro.org>
-
Jonas Aaberg authored
Detect battery type in work queue instead of probe. This reduces the system boot time with 1.5s. Signed-off-by:
Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by:
Lee Jones <lee.jones@linaro.org> Reviewed-by:
Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
-
Kalle Komierowski authored
The CCMuxOffset bit is not kept set. This will force the columb counter of the AB8500 to use the measure offset calibration. This should increase the accuracy of the fuel gauge. Signed-off-by:
Kalle Komierowski <karl.komierowski@stericsson.com> Signed-off-by:
Marcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by:
Lee Jones <lee.jones@linaro.org> Reviewed-by:
Jonas ABERG <jonas.aberg@stericsson.com>
-
Johan Bjornstedt authored
There is no state machine in the AB to step up/down the charger current to avoid dips and spikes on VBUS and VBAT when charging is started. Instead this is implemented in SW. Signed-off-by:
Johan Bjornstedt <johan.bjornstedt@stericsson.com> Signed-off-by:
Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by:
Lee Jones <lee.jones@linaro.org> Reviewed-by:
Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
-
Rajanikanth H.V authored
property, battery-type shall be one of supported technology type instead blank - refer: Documentation/devicetree/bindings/power_supply/ab8500/fg.txt for the list supported types - this patch appends to ab8500 bm devs DT binding patch set ref: commit-id e0f1abeb git://git.infradead.org/battery-2.6.git - promote ab8500_fg probe to happen before ab8500_btemp probe as btemp driver depends on fuelgauge list, ref: ab8500_fg_get(...) Signed-off-by:
Rajanikanth H.V <rajanikanth.hv@stericsson.com>
-
- 19 Nov, 2012 9 commits
-
-
Qing Xu authored
This patch adds support for initializing platform data from the device-tree description. Signed-off-by:
Qing Xu <qingx@marvell.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Rajanikanth H.V authored
This patch adds device tree support for charging algorithm driver Signed-off-by:
Rajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Rajanikanth H.V authored
This patch adds device tree support for ab8500-charger driver Signed-off-by:
Rajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Rajanikanth H.V authored
This patch adds device tree support for battery-temperature-monitor driver Signed-off-by:
Rajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Rajanikanth H.V authored
- This patch adds device tree support for fuelgauge driver - optimize bm devices platform_data usage and of_probe(...) Note: of_probe() routine for battery managed devices is made common across all bm drivers. - test status: - interrupt numbers assigned differs between legacy and FDT mode. Signed-off-by:
Rajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Peter Ujfalusi authored
To facilitate upcoming cleanup in twl stack. No functional changes. Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Marcos Paulo de Souza authored
No functional changes. Just a cleanup. Signed-off-by:
Marcos Paulo de Souza <marcos.souza.org@gmail.com> Acked-by:
Lars-Peter Clausen <lars@metafoo.de> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Marcos Paulo de Souza authored
This is just a small cleanup, makes a logic a little bit more simplier. Signed-off-by:
Marcos Paulo de Souza <marcos.souza.org@gmail.com> Acked-by:
Lars-Peter Clausen <lars@metafoo.de> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Pali Rohár authored
We should not not report nominal available capacity if battery is not calibrated, as we don't want to represent bogus values in the sysfs and confuse userland. Signed-off-by:
Pali Rohár <pali.rohar@gmail.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
- 18 Nov, 2012 11 commits
-
-
Anton Vorontsov authored
I hate doing these style fixups myself, but I also hate inconsitent code. Normally I just ask to resubmit the patch with the issues fixed, but N900 is special: I have a selfish interest in it. :) Signed-off-by:
Anton Vorontsov <cbouatmailru@gmail.com>
-
Anton Vorontsov authored
This commit adds Kconfig and Makefile entries so that we could actually build the driver. Signed-off-by:
Anton Vorontsov <cbouatmailru@gmail.com>
-
Pali Rohár authored
The bq2415x charger driver is needed for example on Nokia N900 for charging battery. Driver is part of open source project to replace proprietary battery management. Signed-off-by:
Pali Rohár <pali.rohar@gmail.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Pali Rohár authored
This driver exporting battery design capacity, temperature and voltage for battery in Nokia RX-51. This driver is needed for open source battery management on Nokia RX-51 (N900). Signed-off-by:
Pali Rohár <pali.rohar@gmail.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Alan Cox authored
The second error check is unreachable because the lock function isn't assigned to ret. Signed-off-by:
Alan Cox <alan@linux.intel.com> Acked-by:
Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Dan Carpenter authored
We need to check for negative values before doing the swab16() for the error handling to work. Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Kim, Milo authored
The name of ADC channel is configurable in the platform side. This name is referenced in the IIO consumer driver. To get the IIO channel, specific name in the platform data is used as an parameter of the iio_channel_get(). Thus, lp8788_adc_id platform data are replaced with specific names. Signed-off-by:
Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Kim, Milo authored
To get the battery voltage and temperature, IIO ADC functions are used. LP8788 ADC driver provides RAW and SCALE channel information. This patch fixes wrong ADC result. Signed-off-by:
Milo(Woogyom) Kim <milo.kim@ti.com> Reviewed-by Lars-Peter Clausen <lars@metafoo.de> Acked-by:
Jonathan Cameron <jic23@kernel.org> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Kim, Milo authored
To get the ADC value for the battery voltage and temperature, LP8788 ADC driver is used. LP8788 charger driver is the consumer of LP8788 ADC driver. Thus, specific ADC driver name is required on getting the channel using iio_channel_get(). Signed-off-by:
Milo(Woogyom) Kim <milo.kim@ti.com> Acked-by:
Jonathan Cameron <jic23@kernel.org> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Ramakrishna Pallala authored
This patch registers the power supply as a cooling device if the power supply has support for charge throttling. Now with this change low level drivers need not register with thermal framework as it is automatically done by power supply framework. Signed-off-by:
Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
Ramakrishna Pallala authored
Add support for power supply attributes CHARGE_CONTROL_LIMIT and CHARGE_CONTROL_LIMIT_MAX. These new attributes will enable the user space to implement custom charging algorithms based on platform state. Signed-off-by:
Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
- 17 Nov, 2012 1 commit
-
-
Dan Carpenter authored
psy->properties is an enum (32 bit type) so adding sizeof() puts us four times further along than we intended. It should be cast to a char pointer before doing the math. Signed-off-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
- 16 Nov, 2012 1 commit
-
-
Axel Lin authored
On failure, request_any_context_irq() returns a negative value. On success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED. Signed-off-by:
Axel Lin <axel.lin@ingics.com> Signed-off-by:
Anton Vorontsov <anton.vorontsov@linaro.org>
-
- 11 Nov, 2012 1 commit
-
-
Linus Torvalds authored
-
- 10 Nov, 2012 4 commits
-
-
git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds authored
Pull networking fixes from David Miller: "Bug fixes galore, mostly in drivers as is often the case: 1) USB gadget and cdc_eem drivers need adjustments to their frame size lengths in order to handle VLANs correctly. From Ian Coolidge. 2) TIPC and several network drivers erroneously call tasklet_disable before tasklet_kill, fix from Xiaotian Feng. 3) r8169 driver needs to apply the WOL suspend quirk to more chipsets, fix from Cyril Brulebois. 4) Fix multicast filters on RTL_GIGA_MAC_VER_35 r8169 chips, from Nathan Walp. 5) FDB netlink dumps should use RTM_NEWNEIGH as the message type, not zero. From John Fastabend. 6) Fix smsc95xx tx checksum offload on big-endian, from Steve Glendinning. 7) __inet_diag_dump() needs to repsect and report the error value returned from inet_diag_lock_handler() rather than ignore it. Otherwise if an inet diag handler is not available for a particular protocol, we essentially report success instead of giving an error indication. Fix from Cyrill Gorcunov. 8) When the QFQ packet scheduler sees TSO/GSO packets it does not handle things properly, and in fact ends up corrupting it's datastructures as well as mis-schedule packets. Fix from Paolo Valente. 9) Fix oopser in skb_loop_sk(), from Eric Leblond. 10) CXGB4 passes partially uninitialized datastructures in to FW commands, fix from Vipul Pandya. 11) When we send unsolicited ipv6 neighbour advertisements, we should send them to the link-local allnodes multicast address, as per RFC4861. Fix from Hannes Frederic Sowa. 12) There is some kind of bug in the usbnet's kevent deferral mechanism, but more immediately when it triggers an uncontrolled stream of kernel messages spam the log. Rate limit the error log message triggered when this problem occurs, as sending thousands of error messages into the kernel log doesn't help matters at all, and in fact makes further diagnosis more difficult. From Steve Glendinning. 13) Fix gianfar restore from hibernation, from Wang Dongsheng. 14) The netlink message attribute sizes are wrong in the ipv6 GRE driver, it was using the size of ipv4 addresses instead of ipv6 ones :-) Fix from Nicolas Dichtel." * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: gre6: fix rtnl dump messages gianfar: ethernet vanishes after restoring from hibernation usbnet: ratelimit kevent may have been dropped warnings ipv6: send unsolicited neighbour advertisements to all-nodes net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs usb: gadget: g_ether: fix frame size check for 802.1Q cxgb4: Fix initialization of SGE_CONTROL register isdn: Make CONFIG_ISDN depend on CONFIG_NETDEVICES cxgb4: Initialize data structures before using. af-packet: fix oops when socket is not present pkt_sched: enable QFQ to support TSO/GSO net: inet_diag -- Return error code if protocol handler is missed net: bnx2x: Fix typo in bnx2x driver smsc95xx: fix tx checksum offload for big endian rtnetlink: Use nlmsg type RTM_NEWNEIGH from dflt fdb dump ptp: update adjfreq callback description r8169: allow multicast packets on sub-8168f chipset. r8169: Fix WoL on RTL8168d/8111d. drivers/net: use tasklet_kill in device remove/close process tipc: do not use tasklet_disable before tasklet_kill
-
git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparcLinus Torvalds authored
Pull sparc fixes from David Miller: "Several build/bug fixes for sparc, including: 1) Configuring a mix of static vs. modular sparc64 crypto modules didn't work, remove an ill-conceived attempt to only have to build the device match table for these drivers once to fix the problem. Reported by Meelis Roos. 2) Make the montgomery multiple/square and mpmul instructions actually usable in 32-bit tasks. Essentially this involves providing 32-bit userspace with a way to use a 64-bit stack when it needs to. 3) Our sparc64 atomic backoffs don't yield cpu strands properly on Niagara chips. Use pause instruction when available to achieve this, otherwise use a benign instruction we know blocks the strand for some time. 4) Wire up kcmp 5) Fix the build of various drivers by removing the unnecessary blocking of OF_GPIO when SPARC. 6) Fix unintended regression wherein of_address_to_resource stopped being provided. Fix from Andreas Larsson. 7) Fix NULL dereference in leon_handle_ext_irq(), also from Andreas Larsson." * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Fix build with mix of modular vs. non-modular crypto drivers. sparc: Support atomic64_dec_if_positive properly. of/address: sparc: Declare of_address_to_resource() as an extern function for sparc again sparc32, leon: Check for existent irq_map entry in leon_handle_ext_irq sparc: Add sparc support for platform_get_irq() sparc: Allow OF_GPIO on sparc. qlogicpti: Fix build warning. sparc: Wire up sys_kcmp. sparc64: Improvde documentation and readability of atomic backoff code. sparc64: Use pause instruction when available. sparc64: Fix cpu strand yielding. sparc64: Make montmul/montsqr/mpmul usable in 32-bit threads.
-
git://git.samba.org/sfrench/cifs-2.6Linus Torvalds authored
Pull cifs fixes from Jeff Layton. * 'for-linus' of git://git.samba.org/sfrench/cifs-2.6: cifs: Do not lookup hashed negative dentry in cifs_atomic_open cifs: fix potential buffer overrun in cifs.idmap handling code
-
git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64Linus Torvalds authored
Pull arm64 fixes from Catalin Marinas: - correct argument type (pgprot_t) when calling __ioremap() - PCI_IOBASE virtual address change - use architected event for CPU cycle counter - fix ELF core dumping - select CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION - missing completion for secondary CPU boot - booting on systems with all memory beyond 4GB * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64: arm64: mm: fix booting on systems with no memory below 4GB arm64: smp: add missing completion for secondary boot arm64: compat: select CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION arm64: elf: fix core dumping definitions for GP and FP registers arm64: perf: use architected event for CPU cycle counter arm64: Move PCI_IOBASE closer to MODULES_VADDR arm64: Use pgprot_t as the last argument when invoking __ioremap()
-