aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
AgeCommit message (Collapse)AuthorFilesLines
2020-05-10power: bq25890: use proper CURRENT_NOW property for I_BATMichał Mirosław1-10/+10
Charge Current is more apropriately reflected by CURRENT_NOW property (measured current) than CONSTANT_CURRENT_VOLTAGE (configured CC-phase current limit). Fix the reference and make the sign reflect direction of the current. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: max17040: Correct voltage readingJonathan Bakker1-1/+1
According to the datasheet available at (1), the bottom four bits are always zero and the actual voltage is 1.25x this value in mV. Since the kernel API specifies that voltages should be in uV, it should report 1250x the shifted value. 1) https://datasheets.maximintegrated.com/en/ds/MAX17040-MAX17041.pdf Signed-off-by: Jonathan Bakker <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: olpc_battery: fix the power supply nameLubomir Rintel1-2/+2
The framework is unhappy about them, because it uses the names in sysfs attributes: power_supply olpc-ac: hwmon: 'olpc-ac' is not a valid name attribute, please fix power_supply olpc-battery: hwmon: 'olpc-battery' is not a valid name attribute, please fix See also commit 648cd48c9e56 ("hwmon: Do not accept invalid name attributes") and commit 74d3b6419772 ("hwmon: Relax name attribute validation for new APIs"). Signed-off-by: Lubomir Rintel <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: smb347-charger: Add delay before getting IRQSTATDavid Heidelberg1-0/+4
This delay-fix is picked up from downstream driver, we measured that 25 - 35 ms delay ensure that we get required data. Tested on SMB347 on Nexus 7 2012. Otherwise IRQSTAT_E fails to provide correct information. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: David Heidelberg <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: smb347-charger: IRQSTAT_D is volatileDmitry Osipenko1-0/+1
Fix failure when USB cable is connected: smb347 2-006a: reading IRQSTAT_D failed Fixes: 1502cfe19bac ("smb347-charger: Fix battery status reporting logic for charger faults") Tested-by: David Heidelberg <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: David Heidelberg <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: KConfig cleanup default nMatti Vaittinen1-2/+0
The "default n" is not needed as it is, well, default. Clean the KConfig by removing "default n". Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: Fix Kconfig help text indentiationMatti Vaittinen1-12/+12
Indent the help text as explained in Documentation/process/coding-style.rst Signed-off-by: Matti Vaittinen <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: Support ROHM bd99954 chargerMatti Vaittinen4-0/+2227
The ROHM BD99954 is a Battery Management LSI for 1-4 cell Lithium-Ion secondary battery intended to be used in space-constraint equipment such as Low profile Notebook PC, Tablets and other applications. BD99954 provides a Dual-source Battery Charger, two port BC1.2 detection and a Battery Monitor. Support ROHM BD99954 Charger IC. Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: add battery parametersMatti Vaittinen1-0/+8
Add parsing of new device-tree battery bindings. - trickle-charge-current-microamp - precharge-upper-limit-microvolt - re-charge-voltage-microvolt - over-voltage-threshold-microvolt Signed-off-by: Matti Vaittinen <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: bd70528: use linear rangesMatti Vaittinen2-89/+56
Change the bd70528 to use common linear_range code instead of implementing a copy of it in this driver. Signed-off-by: Matti Vaittinen <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10Merge tag 'tags/linear-ranges-lib' into psy-nextSebastian Reichel1-5/+5
lib: Add linear ranges helper library and start using it Series extracts a "linear ranges" helper out of the regulator framework. Linear ranges helper is intended to help converting real-world values to register values when conversion is linear. I suspect this is useful also for power subsystem and possibly for clk. Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: reset: ltc2952: remove unused variableHongbo Yao1-2/+1
Fix gcc '-Wunused-but-set-variable' warning: drivers/power/reset/ltc2952-poweroff.c:97:16: warning: variable ‘overruns’ set but not used [-Wunused-but-set-variable] unsigned long overruns; Reported-by: Hulk Robot <[email protected]> Signed-off-by: Hongbo Yao <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-10power: supply: lp8788: Fix an error handling path in 'lp8788_charger_probe()'Christophe JAILLET1-16/+2
In the probe function, in case of error, resources allocated in 'lp8788_setup_adc_channel()' must be released. This can be achieved easily by using the devm_ variant of 'iio_channel_get()'. This has the extra benefit to simplify the remove function and to axe the 'lp8788_release_adc_channel()' function which is now useless. Fixes: 98a276649358 ("power_supply: Add new lp8788 charger driver") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-09power: supply: cw2015: Make some symbols staticChenTao1-2/+2
Fix the following warning: drivers/power/supply/cw2015_battery.c:96:5: warning: 'cw_update_profile' was not declared. Should it be static? drivers/power/supply/cw2015_battery.c:712:1: warning: 'cw_bat_pm_ops' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: ChenTao <[email protected]> Acked-by: Tobias Schramm <[email protected]> Tested-by: Tobias Schramm <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-09power: bq25890: unlock on error paths in bq25890_resume()Dan Carpenter1-3/+4
We introduced some new locking here, but need to update the error paths so they unlock before returning. Fixes: 72d9cd9cdc18 ("power: bq25890: protect view of the chip's state") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-08power: supply: bd70528: rename linear_range to avoid collisionMatti Vaittinen1-5/+5
Follow-up patches in this series will add a generic struct linear_range. Rename bd70528 internal struct to avoid collision. Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/286b1ae0adc1c08e7b644cbdc1a43eb2e0644647.1588944082.git.matti.vaittinen@fi.rohmeurope.com Signed-off-by: Mark Brown <[email protected]>
2020-05-07power: supply: core: Add type property to uevent envMathew King1-24/+37
Add POWER_SUPPLY_TYPE to the uevent env for power supply. Type is a property of all power supplies and there is a sysfs entry for it but it is not included in the properties array of the power supply so explicitly add it to the udev env. Signed-off-by: Mathew King <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-07power: supply: core: Add a macro that maps enum properties to text valuesMathew King1-74/+50
Reduce the number of touch points to add a new enum property to the power_supply class by mapping the array of text values to the device attribute descriptor. A new enum property can now added by creating an array with the text values named POWER_SUPPLY_${PROPNAME}_TEXT and adding POWER_SUPPLY_ENUM_ATTR(${PROPNAME}) to the power_supply_attrs array. Signed-off-by: Mathew King <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-07power: supply: core: Use designated initializer for property text arraysMathew King1-14/+60
Use designated initializers for the sysfs power supply text values. This will help ensure that the text values are kept in sync with the enum values from power_supply.h. Signed-off-by: Mathew King <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-07power: supply: core: Cleanup power supply sysfs attribute listMathew King1-128/+132
Make the device attribute list used to create sysfs attributes more robust by decoupling the list order from order of the enum defined in power_supply.h. This is done by using a designated initializer in the POWER_SUPPLY_ATTR macro. Signed-off-by: Mathew King <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: bq25890: protect view of the chip's stateMichał Mirosław1-56/+26
Extend bq->lock over whole updating of the chip's state. Might get useful later for switching ADC modes correctly. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: bq25890: remove redundant I2C bus checkMichał Mirosław1-6/+0
regmap initialization will check I2C adapter functionality. Remove redundant check in the driver. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: bq25890: make property table constMichał Mirosław1-1/+1
Property list should not change, so mark it const. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: bq25890: simplify chip name property getterMichał Mirosław1-11/+8
Driver rejects unknown chips early in the probe(), so when bq25890_power_supply_get_property() is made reachable, bq->chip_version will already be set to correct value - there is no need to check it again. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: supply: add CellWise cw2015 fuel gauge driverTobias Schramm3-0/+761
This patch adds a driver for the CellWise cw2015 fuel gauge. The CellWise cw2015 is a shuntless, single-cell Li-Ion fuel gauge used in the pine64 Pinebook Pro laptop and some Raspberry Pi UPS HATs. Signed-off-by: Tobias Schramm <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-03power: supply: core: fix memory leak in HWMON error pathQiushi Wu1-1/+1
In function power_supply_add_hwmon_sysfs(), psyhw->props is allocated by bitmap_zalloc(). But this pointer is not deallocated when devm_add_action fail, which lead to a memory leak bug. To fix this, we replace devm_add_action with devm_add_action_or_reset. Cc: [email protected] Fixes: e67d4dfc9ff19 ("power: supply: Add HWMON compatibility layer") Signed-off-by: Qiushi Wu <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: core: tabularize HWMON temperature labelsMichał Mirosław1-1/+19
Rework power_supply_hwmon_read_string() to check it's parameters. This allows to extend it later with labels for other types of measurements. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: charger-manager: clarify num_properties starting valueMichał Mirosław1-1/+1
Initialize num_properties with length of the copied array instead of relying on previously memcpy'd value. This makes it clear how the array and the counter are related. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: core: hide unused HWMON labelsMichał Mirosław1-3/+39
Currently HWMON emulation shows all labels (temp and ambient temp) regardless if power supply supports reading the values. Check that at least one property is enabled for each label. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: core: fix HWMON temperature labelsMichał Mirosław1-1/+1
tempX_label files are swapped compared to what power_supply_hwmon_temp_to_property() uses. Make them match. Cc: [email protected] Fixes: e67d4dfc9ff1 ("power: supply: Add HWMON compatibility layer") Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: generic-adc-battery: Prepare for const propertiesSebastian Reichel1-11/+11
This prepares the driver to work with the properties entry in power_supply_desc marked as const. Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: charger-manager: Prepare for const propertiesSebastian Reichel1-18/+22
This prepares the driver to work with the properties entry in power_supply_desc marked as const. Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-05-01power: supply: core: reduce power_supply_show_usb_type() parametersMichał Mirosław1-6/+4
Reduce power_supply_show_usb_type() parameter count by folding power_supply_desc dereference into the function. This makes following patch making usb_types const easier. Signed-off-by: Michał Mirosław <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-30power: reset: introduce oxnas-restartDaniel Golle3-0/+241
Add reboot handler for Oxford OX820 chips as reboot currenly hangs on those boards. Code is based on ox820_assert_system_reset() found in https://github.com/kref/linux-oxnas.git in arch/arm/mach-oxnas/mach-ox820.c line 181. Signed-off-by: Daniel Golle <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-29power: supply: max17042_battery: Add support for the TTE_NOW propGeordan Neukum1-0/+8
The max170{42,47,50,55} family of fuel gauges all provide time-to-empty estimation. As such, let's export this as a property. Signed-off-by: Geordan Neukum <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-29power: supply: axp288_charger: Omit superfluous error messageTang Bin1-3/+2
In the axp288_charger_probe(), when get irq failed, the function platform_get_irq() logs an error message, so remove redundant message here. Signed-off-by: Tang Bin <[email protected]> Signed-off-by: Shengju Zhang <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: supply: sc27xx: Add boot voltage supportYuanjiang Yu1-0/+8
Add new property to allow to get the voltage measured during boot time. Signed-off-by: Yuanjiang Yu <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: supply: sc27xx: Add CURRENT_NOW/VOLTAGE_NOW properties supportYuanjiang Yu1-2/+58
Add new properties to get present current and voltage of the fuel gauge. Signed-off-by: Yuanjiang Yu <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: supply: sc27xx: Allow to change the battery full capacityYuanjiang Yu1-1/+7
The battery full capacity can be affected by the temperature or the servicing time or other factors, so some platforms will track the real battery full capacity in charger manager service. Thus we should allow to change the battery full capacity by setting the 'POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN' property as writeable. Signed-off-by: Yuanjiang Yu <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: supply: sc27xx: Set 'no_thermal' flag for SC27xx fuel gaugeYuanjiang Yu1-0/+1
There is no thermal zone should be created for the SC27XX FGU power supply, thus set the 'no_thermal' flag as true. Signed-off-by: Yuanjiang Yu <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: supply: ab8500_fg: remove comparison to boolJason Yan1-1/+1
Fix the following coccicheck warning: drivers/power/supply/ab8500_fg.c:2402:5-24: WARNING: Comparison to bool Signed-off-by: Jason Yan <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-28power: reset: qcom-pon: reg write mask depends on pon generationKejia Hu1-1/+2
Instead of hardcode the mask, it should be depends on which generation of pon it was. Signed-off-by: Kejia Hu <[email protected]> Fixes: fce5430f6a86 ("reset: qcom-pon: Add support for gen2 pon") Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-21drivers: Remove inclusion of vermagic headerLeon Romanovsky1-1/+1
Get rid of linux/vermagic.h includes, so that MODULE_ARCH_VERMAGIC from the arch header arch/x86/include/asm/module.h won't be redefined. In file included from ./include/linux/module.h:30, from drivers/net/ethernet/3com/3c515.c:56: ./arch/x86/include/asm/module.h:73: warning: "MODULE_ARCH_VERMAGIC" redefined 73 | # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY | In file included from drivers/net/ethernet/3com/3c515.c:25: ./include/linux/vermagic.h:28: note: this is the location of the previous definition 28 | #define MODULE_ARCH_VERMAGIC "" | Fixes: 6bba2e89a88c ("net/3com: Delete driver and module versions from 3com drivers") Co-developed-by: Borislav Petkov <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Shannon Nelson <[email protected]> # ionic Acked-by: Sebastian Reichel <[email protected]> # power Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2020-04-14power: supply: 88pm860x_battery: remove redundant dev_err messageTang Bin1-6/+2
In the pm860x_battery_probe(), when get irq failed, the function platform_get_irq() logs an dev_err message, so remove redundant message here. Signed-off-by: Tang Bin <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-14power: supply: axp288_fuel_gauge: Add the Meegopad T02 to the blacklist.Rafael Gandolfi1-0/+6
The Meegopad T02 is a PC in stick format and doesn't have a battery, it is reported with a random and constant battery charge but as discharging to userspace. Add it to the blacklist to avoid the bogus battery status reporting. Signed-off-by: Rafael Gandolfi <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-13power: supply: max14656: remove set but not used 'ret'Jason Yan1-3/+2
Fix the following gcc warning: drivers/power/supply/max14656_charger_detector.c:142:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret = 0; ^~~ Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-13power: supply: bq24257_charger: Replace depends on REGMAP_I2C with selectEnric Balletbo i Serra1-1/+1
regmap is a library function that gets selected by drivers that need it. No driver modules should depend on it. Depending on REGMAP_I2C makes this driver only build if another driver already selected REGMAP_I2C, as the symbol can't be selected through the menu kernel configuration. Fixes: 2219a935963e ("power_supply: Add TI BQ24257 charger driver") Signed-off-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
2020-04-10change email address for Pali RohárPali Rohár4-6/+6
For security reasons I stopped using gmail account and kernel address is now up-to-date alias to my personal address. People periodically send me emails to address which they found in source code of drivers, so this change reflects state where people can contact me. [ Added .mailmap entry as per Joe Perches - Linus ] Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Joe Perches <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
2020-04-08Merge tag 'tag-chrome-platform-for-v5.7' of ↵Linus Torvalds2-33/+19
git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux Pull chrome platform updates from Benson Leung: cros-usbpd-notify and cros_ec_typec: - Add a new notification driver that handles and dispatches USB PD related events to other drivers. - Add a Type C connector class driver for cros_ec CrOS EC: - Introduce a new cros_ec_cmd_xfer_status helper Sensors/iio: - A series from Gwendal that adds Cros EC sensor hub FIFO support Wilco EC: - Fix a build warning. - Platform data shouldn't include kernel.h Misc: - i2c api conversion complete, with i2c_new_client_device instead of i2c_new_device in chromeos_laptop. - Replace zero-length array with flexible-array member in cros_ec_chardev and wilco_ec - Update new structure for SPI transfer delays in cros_ec_spi * tag 'tag-chrome-platform-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux: (34 commits) platform/chrome: cros_ec_spi: Wait for USECS, not NSECS iio: cros_ec: Use Hertz as unit for sampling frequency iio: cros_ec: Report hwfifo_watermark_max iio: cros_ec: Expose hwfifo_timeout iio: cros_ec: Remove pm function iio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO iio: expose iio_device_set_clock iio: cros_ec: Move function description to .c file platform/chrome: cros_ec_sensorhub: Add median filter platform/chrome: cros_ec_sensorhub: Add code to spread timestmap platform/chrome: cros_ec_sensorhub: Add FIFO support platform/chrome: cros_ec_sensorhub: Add the number of sensors in sensorhub platform/chrome: chromeos_laptop: make I2C API conversion complete platform/chrome: wilco_ec: event: Replace zero-length array with flexible-array member platform/chrome: cros_ec_chardev: Replace zero-length array with flexible-array member platform/chrome: cros_ec_typec: Update port info from EC platform/chrome: Add Type C connector class driver platform/chrome: cros_usbpd_notify: Pull PD_HOST_EVENT status platform/chrome: cros_usbpd_notify: Amend ACPI driver to plat platform/chrome: cros_usbpd_notify: Add driver data struct ...
2020-04-05Merge tag 'for-v5.7' of ↵Linus Torvalds11-125/+210
git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply Pull power supply and reset changes from Sebastian Reichel: "Core: - Nothing Drivers: - at91-reset: cleanups, proper handling for sam9x60 - sc27xx, charger-manager: allow building as module - sc27xx: add support to read current charge capacity - axp288: more quirks for weird hardware - misc fixes" * tag 'for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (26 commits) power: reset: sc27xx: Allow the SC27XX poweroff driver building into a module power: reset: sc27xx: Change to use cpu_down() power: reset: sc27xx: Power off the external subsystems' connection power: twl4030: Use scnprintf() for avoiding potential buffer overflow power: supply: bq27xxx_battery: Silence deferred-probe error power: reset: at91-reset: handle nrst async for sam9x60 power: reset: at91-reset: get rid of at91_reset_data power: reset: at91-reset: keep only one reset function power: reset: at91-reset: make at91sam9g45_restart() generic power: reset: at91-reset: introduce ramc_lpr to struct at91_reset power: reset: at91-reset: use r4 as tmp argument power: reset: at91-reset: introduce args member in at91_reset_data power: reset: at91-reset: introduce struct at91_reset_data power: reset: at91-reset: devm_kzalloc() for at91_reset data structure power: reset: at91-reset: pass rstc base address to at91_reset_status() power: reset: at91-reset: convert reset in pointer to struct at91_reset power: reset: at91-reset: add notifier block to struct at91_reset power: reset: at91-reset: add sclk to struct at91_reset power: reset: at91-reset: add ramc_base[] to struct at91_reset power: reset: at91-reset: introduce struct at91_reset ...