[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1413445327-24862-1-git-send-email-k.kozlowski@samsung.com>
Date: Thu, 16 Oct 2014 09:42:00 +0200
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org,
Linus Walleij <linus.walleij@...aro.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Lee Jones <lee.jones@...aro.org>,
Sebastian Reichel <sre@...nel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Lv Zheng <lv.zheng@...el.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-pm@...r.kernel.org
Cc: Anton Vorontsov <anton@...msg.org>, Pavel Machek <pavel@....cz>,
Kyungmin Park <kyungmin.park@...sung.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Subject: [PATCH v2 0/7] power_supply: Decrement the device reference counter
Hi,
Changes since v1:
=================
1. Remove check for non-NULL in power_supply_put (suggested by
Pavel Machek).
2. Add Pavel Machek's ack.
Description:
============
The reference counter of device allocated for power supply was
incremented with each call to power_supply_get_by_name() and
power_supply_get_by_phandle().
Add a symmetric 'put' operation so the device could be released after
final put_device() call during supply unregistering.
Rebased on next-20141007 + mine [1] patchset.
Tested on Trats2 board (max77693 + charger manager).
Kindly asking for reviewing and testing other drivers.
Best regards,
Krzysztof
[1] power_supply: Add API for safe access of get_property-like function attrs
http://www.spinics.net/lists/arm-kernel/msg369870.html
Krzysztof Kozlowski (7):
power_supply: Add power_supply_put for decrementing device reference
counter
power: charger-manager: Decrement the power supply's device reference
counter
x86/olpc/xo1/sci: Use newly added power_supply_put API
x86/olpc/xo15/sci: Use newly added power_supply_put API
power: 88pm860x_charger: Decrement the power supply's device reference
counter
power: bq2415x_charger: Decrement the power supply's device reference
counter
mfd: ab8500: Decrement the power supply's device reference counter
arch/x86/platform/olpc/olpc-xo1-sci.c | 4 +-
arch/x86/platform/olpc/olpc-xo15-sci.c | 4 +-
drivers/mfd/ab8500-sysctrl.c | 2 +
drivers/power/88pm860x_charger.c | 11 +++++-
drivers/power/bq2415x_charger.c | 6 ++-
drivers/power/charger-manager.c | 70 +++++++++++++++++++++++-----------
drivers/power/power_supply_core.c | 38 ++++++++++++++++++
include/linux/power_supply.h | 1 +
8 files changed, 106 insertions(+), 30 deletions(-)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists