- 14 10月, 2015 1 次提交
-
-
由 Luis de Bethencourt 提交于
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: NLuis de Bethencourt <luisbg@osg.samsung.com> Reviewed-by: NHeiko Stuebner <heiko@sntech.de> Acked-by: NKevin Hilman <khilman@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
-
- 11 9月, 2015 2 次提交
-
-
由 Grazvydas Ignotas 提交于
When CONFIG_CHARGER_TWL4030=y and CONFIG_TWL4030_MADC=m we get a compile error: drivers/built-in.o: In function `twl4030_charger_update_current': twl4030_charger.c:(.text+0x504681): undefined reference to `twl4030_get_madc_conversion' Use IS_REACHABLE to fix it. Cc: NeilBrown <neil@brown.name> Reported-by: NRandy Dunlap <rdunlap@infradead.org> Signed-off-by: NGrazvydas Ignotas <notasas@gmail.com> Acked-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Sebastian Reichel 提交于
Revert commit 3fc3895e, since it introduced a boot failure on some OMAP platforms. Reported-by: NKevin Hilman <khilman@kernel.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 21 8月, 2015 1 次提交
-
-
由 Pali Rohár 提交于
Driver bq2415x_charger works also without notify power supply device for charger detection. But when charger detection is specified in DT, then bq2415x_charger refused to loaded with -EPROBE_DEFER. This patch rewrites code so that notify device for charger detection is checked when power supply event is received and not when registering power supply device. So this patch allows to use bq2415x_charger driver also when kernel is compiled without driver for notify power supply device. Now after this patch scheduled workqueue is called after INIT_DELAYED_WORK, so it also fix problem when scheduled workqueue was called before init. Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 08 8月, 2015 2 次提交
-
-
由 Heiko Stuebner 提交于
This adds the necessary data for handling io voltage domains on the rk3368. As interesting tidbit, the rk3368 contains two separate iodomain areas. One in the regular General Register Files (GRF) and one in PMUGRF in the pmu power domain. Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Acked-by: NKevin Hilman <khilman@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
-
由 Heiko Stuebner 提交于
The rockchip io-domain driver currently only depends on ARCH_ROCKCHIP itself. This makes it possible to select the power-domain driver, but not the POWER_AVS class and results in the iodomain-driver not getting build in this case. So add the additional dependency, which also results in the driver config option now being placed nicely into the AVS submenu. Fixes: 662a9586 ("PM / AVS: rockchip-io: add driver handling Rockchip io domains") Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Acked-by: NKevin Hilman <khilman@linaro.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
-
- 07 8月, 2015 1 次提交
-
-
由 NeilBrown 提交于
We can only use the madc to check for 'ac' availability if the madc has been compiled in. If not: assume always using USB. Reported-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NNeilBrown <neil@brown.name> Acked-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 05 8月, 2015 15 次提交
-
-
由 Andreas Dannenberg 提交于
Access to the BQ24190's configurable charge type property (none, trickle, fast) is being masked by an incorrect power_supply_property entry. After applying this patch a new 'charge_type' property will appear in the bq24190-charger sysfs folder backed up by getters/setters already present in the driver. Signed-off-by: NAndreas Dannenberg <dannenberg@ti.com> Acked-by: NDan Murphy <dmurphy@ti.com> Acked-by: NAndrew F. Davis <afd@ti.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Geert Uytterhoeven 提交于
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate. Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Javier Martinez Canillas 提交于
The I2C core always reports the MODALIAS uevent as "i2c:<client name" regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct module when the device is added. Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
The USB Battery Charging spec (BC1.2) suggests a dedicated charging port can deliver from 0.5 to 5.0A at between 4.75 and 5.25 volts. To choose the "correct" current voltage setting requires a trial and error approach: try to draw current and see if the voltage drops too low. Even with a configured Standard Downstream Port, it may not be possible to reliably pull 500mA - depending on cable quality and source quality I have reports of charging failure due to the voltage dropping too low. To address both these concerns, this patch introduce incremental current setting. The current pull from VBUS is increased in steps of 20mA every 100ms until the target is reached or until the measure voltage drops below 4.75V. If the voltage does go too low, the target current is reduced by 20mA and kept there. This applies to currents selected automatically, or to values set via sysfs. So setting a large value will cause the maximum available to be used - up to the limit of 1.7A imposed by the hardware. Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
This allows AC charging to be turned off, much like usb charging. "continuous" mode is not available though. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
Add a 'continuous' option for usb charging which enables the "linear" charging mode of the twl4030. Linear charging does a good job with not-so-reliable power sources. Auto mode does not work well as it switches off when voltage drops momentarily. Care must be taken not to over-charge. It was used with a bike hub dynamo since a year or so. In that case there are automatically charging stops when the cyclist needs a break. Original-by: NAndreas Kemnade <andreas@kemnade.info> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
'off' or 'auto' to /sys/class/power/twl4030_usb/mode will now enable or disable charging from USB port. Normally this is enabled on 'plug' and disabled on 'unplug'. Unplug will still disable charging. 'plug' will only enable it if 'auto' if selected. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
'max_current' sysfs attributes are created which allow the max to be set. Whenever a current source changes, the default is restored. This will be followed by a uevent, so user-space can decide to update again. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
The twl4030 charger has two current sources, 'USB' and 'AC' (presumably "Accessory Charger" because it isn't Alternating Current). If 'AC' is providing current, we should set the current limit differently to when it isn't (and so USB is used). So split 'cur' into 'usb_cur' and 'ac_cur' and use accordingly. Now we must review the current setting on any interrupt or USB event which might indicate that the charger-source has changed. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
The twl4030 allows control of the incoming current. Part of this control is a 'CGAIN' setting which doubles the range for half the precision. This control affects several different current setting, so all need to be updated at once when CGAIN is changed. With this patch, all of these current setting are managed by the driver, but most are left at their default settings. The current drawn is set to 500mA if the allow_usb module parameter is set, and to 100mA otherwise. More fine control will appear in later patches. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
We will need this calculation in other places, so create functions to map between register value and uA value. Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
The usb phy driver already determines when VBUS is available, so repeating the test in the charger driver is pointless duplication. On probe, process the last event from the phy, and from then on, do whatever the phy tells us without double-checking. Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
Now that twl4030_bci_probe can safely return -EPROBE_DEFER, do so when devm_usb_get_phy_by_node returns that error. Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Pavel Machek 提交于
Drivers using module_platform_driver_probe cannot return EPROBE_DEFER from the probe function, which makes them rather useless these days... Convert to module_platform_driver() so EPROBE_DEFER can be used. Signed-off-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
The twl4030 usb phy needs to be active while we are using the USB VBUS as a current source for charging. In particular, the usb3v1 regulator must be enabled and the PHY_PWR_PHYPWD bit must be set to keep the phy powered. commit ab37813f twl4030_charger: Allow charger to control the regulator that feeds it gave the charger control over the regulator, but didn't resolve the PHY_PWR_PHYPWD issue. Now that both of these are controlled by runtime_pm in phy-twl4030-usb, we can simply take a runtime_pm reference to the USB phy whenever the charger wants to use it as a current source. So this patch reverts the above commit, and adds the necessary runtime_pm calls. Acked-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NNeilBrown <neil@brown.name> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 03 8月, 2015 2 次提交
-
-
由 Sascha Hauer 提交于
The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. Also several drivers currently will report temperatures near UINT_MAX for temperatures below 0°C. This will probably immediately shut the machine down due to overtemperature if started below 0°C. 'long' is 64bit on several architectures. This is not needed since INT_MAX °mC is above the melting point of all known materials. Consistently use a plain 'int' for temperatures throughout the thermal code and the drivers. This only changes the places in the drivers where the temperature is passed around as pointer, when drivers internally use another type this is not changed. Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de> Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: NJean Delvare <jdelvare@suse.de> Reviewed-by: NLukasz Majewski <l.majewski@samsung.com> Reviewed-by: NDarren Hart <dvhart@linux.intel.com> Reviewed-by: NHeiko Stuebner <heiko@sntech.de> Reviewed-by: NPeter Feuerer <peter@piie.net> Cc: Punit Agrawal <punit.agrawal@arm.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Jean Delvare <jdelvare@suse.de> Cc: Peter Feuerer <peter@piie.net> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: linux-acpi@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-omap@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org Cc: Guenter Roeck <linux@roeck-us.net> Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Darren Hart <dvhart@infradead.org> Cc: lm-sensors@lm-sensors.org Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Pali Rohár 提交于
For compatibility between board code and DT, set battery name to same value. Signed-off-by: NPali Rohár <pali.rohar@gmail.com> Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 27 7月, 2015 5 次提交
-
-
由 Vladimir Zapolskiy 提交于
The change removes redundant sysfs binary file boundary check while reading eeprom content from userspace, the check is done on caller side in fs/sysfs/file.c, if binary attribute size is not zero. Signed-off-by: NVladimir Zapolskiy <vz@mleia.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Vladimir Zapolskiy 提交于
The change removes redundant calculation of left space on eeprom while reading or writing "param_eeprom" or "user_eeprom", the checks are not needed, since this task is done on caller side in fs/sysfs/file.c Signed-off-by: NVladimir Zapolskiy <vz@mleia.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Vladimir Zapolskiy 提交于
The change removes redundant sysfs binary file boundary checks while reading or writing "param_eeprom" or "user_eeprom", the checks are not needed, since this task is done on caller side in fs/sysfs/file.c Signed-off-by: NVladimir Zapolskiy <vz@mleia.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Vaishali Thakkar 提交于
Use managed resource functions like devm_kasprintf and devm_power_supply_register in bq24735_charger_probe. To be compatible with the change, replace various gotos by direct returns and drop unneeded labels. Also, remove bq24735_charger_remove as it is now redundant. Signed-off-by: NVaishali Thakkar <vthakkar1994@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Jun Nie 提交于
Including ARM related header file cause build failure in i386 build because COMILE_TEST also involve building zx driver. Remove the unnecessary include file. Signed-off-by: NJun Nie <jun.nie@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 24 7月, 2015 8 次提交
-
-
由 Andrew F. Davis 提交于
Remove space before tab. Remove unnecessary line continuations. Add braces to else statement. Remove unnecessary parentheses. Remove unneeded blank lines. Remove unnecessary 'out of memory' message. Add missing line after declarations. Change use of printk to pr_err. Signed-off-by: NAndrew F. Davis <afd@ti.com> Acked-by: NPali Rohár <pali.rohar@gmail.com> Acked-by: NDan Murphy <dmurphy@ti.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Andrew F. Davis 提交于
Fix the alignment of function parameters on new lines. Signed-off-by: NAndrew F. Davis <afd@ti.com> Acked-by: NPali Rohár <pali.rohar@gmail.com> Acked-by: NDan Murphy <dmurphy@ti.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Andrew F. Davis 提交于
Shorted lines over 80 characters long by reducing tab count. Signed-off-by: NAndrew F. Davis <afd@ti.com> Acked-by: NPali Rohár <pali.rohar@gmail.com> Acked-by: NDan Murphy <dmurphy@ti.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Andrew F. Davis 提交于
Add the manufacturer property to the bq27x00 driver. Signed-off-by: NAndrew F. Davis <afd@ti.com> Acked-by: NDan Murphy <dmurphy@ti.com> Acked-by: NPali Rohár <pali.rohar@gmail.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Jun Nie 提交于
Register with kernel restart handler instead of setting arm_pm_restart directly. Signed-off-by: NJun Nie <jun.nie@linaro.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 Mike Looijmans 提交于
Make it possible to set the name of the supply from the devicetree. Like other power supply drivers just use the node name. This makes the code smaller as well, as it doesn't need to allocate memory to hold the name and allocate a unique ID. Signed-off-by: NMike Looijmans <mike.looijmans@topic.nl> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
Final allocations/registrations are now managed by devres. Signed-off-by: NNeilBrown <neilb@suse.de> Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
由 NeilBrown 提交于
This simplifies the error paths. Signed-off-by: NNeilBrown <neilb@suse.de> Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 21 7月, 2015 1 次提交
-
-
由 Josh Wu 提交于
This patch introduces a new compatible string: "atmel,sama5d3-rstc" and new reset function for sama5d3 and later chips. As in sama5d3 or later chips, we don't have to shutdown the DDR controller before reset. Shutdown the DDR controller before reset is a workaround to avoid DDR signal driving the bus, but since sama5d3 and later chips there is no such a conflict. So in this patch: 1. the sama5d3 reset function only need to write the rstc register and return. 2. we can remove the code related with sama5d3 DDR controller as we don't use it at all. Signed-off-by: NJosh Wu <josh.wu@atmel.com> Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com> Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 17 7月, 2015 1 次提交
-
-
由 Krzysztof Kozlowski 提交于
This prepares for merging some of the drivers between max77693 and max77843 so the child MFD driver can be attached to any parent MFD main driver. Move the state container to common header file. Additionally add consistent 'i2c' prefixes to its members (of 'struct i2c_client' type). Signed-off-by: NKrzysztof Kozlowski <k.kozlowski.k@gmail.com> Acked-by: NSebastian Reichel <sre@kernel.org> Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: NLee Jones <lee.jones@linaro.org> Acked-by: NChanwoo Choi <cw00.choi@samsung.com> Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 13 7月, 2015 1 次提交
-
-
由 Krzysztof Kozlowski 提交于
i2c_driver does not need to set an owner because i2c_register_driver() will set it. Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-