Do not insert in send queue the skb that contains unknown Packet Control Byte
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
Only compile tested, please have a look
drivers/nfc/st21nfcb/ndlc.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc
Fix coding style to comply with checkpatch.pl
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/bq2415x_charger.c | 24
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/drivers/power/bq2415x_charger.c b/drivers/power
This patch adds bq24157s charger in the list of supported chargers.
bq24157s is similar to bq24158, except for Bit6 from Special Charger
Voltage/Enable Pin Status register, but this register is currently
not used by bq2415x_charger.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
Hello,
First patch from patchset fixes coding style issues: removes unnecessary else
after return.
This way, the coding style complies with checkpatch.pl.
Second patch from patchset updates bq2415x driver to support bq24157s charger.
Thanks,
Anda
Anda-Maria Nicolae (2):
bq2415x_charger
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/power/rt9455_charger.txt | 38 +
.../devicetree/bindings/vendor-prefixes.txt|1 +
drivers/power/Kconfig
Replace of_property_read_u32() function call with device_property_read_u32(),
which is a wrapper over ACPI and devicetree enumeration methods.
Fix minor existing coding style issues reported by checkpatch.pl.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power
{RTK9455, 0} with { RTK9455, 0 }
- removed .owner = THIS_MODULE
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/power/rt9455_charger.txt | 43 +
.../devicetree/bindings/vendor-prefixes.txt|1 +
drivers/power/Kconfig
Hi Laurentiu,
Inline are the answers to your comments.
Thanks,
Anda
On 05/06/2015 02:40 PM, Laurentiu Palcu wrote:
On Tue, May 05, 2015 at 07:32:10PM +0300, Anda-Maria Nicolae wrote:
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
Updates from v2 version:
- removed unused masks and keep the used ones. I have tried to access mask field
from struct regmap_field, but I have
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
Updates from v4 version:
- replaced depends on REGMAP_I2C with select REGMAP_I2C
- got
On 05/06/2015 10:58 AM, Krzysztof Kozłowski wrote:
2015-05-06 1:32 GMT+09:00 Anda-Maria Nicolae anda-maria.nico...@intel.com:
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
Updates from v2
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
Updates from v3 version:
- added depends on REGMAP_I2C in Kconfig
- removed MASK* macros and used GET_MASK as per Laurentiu's suggestion
Hi all,
The following 2 patches do the following to bq2415x_charger:
- first patch fixes pre-existing coding style issues reported by checkpatch.pl
- second patch adds ACPI enumeration support
Thanks,
Anda
Anda-Maria Nicolae (2):
power_supply: bq2415x_charger: Fix coding style issues
that is connected to. Input current may be updated via
sysfs.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/bq2415x_charger.c | 73 +--
1 file changed, 55 insertions(+), 18 deletions(-)
diff --git a/drivers/power
braces, add braces to the other arms of the
respective statement, too
- match alignment with open parenthesis
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/bq2415x_charger.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions
notifications are received in this case.
Also, since rt9455_set_boost_voltage_before_boost_mode() function is
called only if USB_EVENT_ID notification is received, this function should
also be defined only if CONFIG_USB_PHY is enabled.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
The result of container_of macro cannot be NULL, so there is no need to
check whether info is NULL.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/rt9455_charger.c |3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/power/rt9455_charger.c b/drivers
.
Also, call power_supply_changed() after the battery is reconnected to the
charger, to notify userspace that the battery is no longer absent.
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/rt9455_charger.c | 16 ++--
1 file changed, 14 insertions
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/power/rt9455_charger.txt | 46
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt
diff --git a/Documentation/devicetree
().
- used devm_power_supply_register() and removed power_supply_unregister() from
rt9455_remove().
Anda-Maria Nicolae (3):
of: Add vendor prefix for Richtek Technology Corporation
Documentation: devicetree: Add Richtek RT9455 bindings
power_supply: Add support for Richtek RT9455 battery charger
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/Kconfig |7 +
drivers/power/Makefile |1 +
drivers/power/rt9455_charger.c | 1751
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/vendor-prefixes.txt|1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 8033919
the battery is reconnected (i.e. BATAB interrupt bit is cleared).
This is why in this patch, in rt9455_batt_presence_work_callback(),
power_supply_changed() is called.
On 07/02/2015 03:49 AM, Krzysztof Kozlowski wrote:
2015-06-18 1:28 GMT+09:00 Anda-Maria Nicolae anda-maria.nico...@intel.com:
Do
Hello,
The next 3 patches do the following:
- first patch adds Richtek Technology Corporation in the vendor-prefixes list
- second patch adds device tree binding example for Richtek RT9455 battery
charger
- third patch adds the driver for Richtek RT9455 battery charger
Thanks,
Anda
Anda-Maria
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
drivers/power/Kconfig |7 +
drivers/power/Makefile |1 +
drivers/power/rt9455_charger.c | 1821
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/vendor-prefixes.txt|1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 8033919
Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com
---
.../devicetree/bindings/power/rt9455_charger.txt | 46
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt
diff --git a/Documentation/devicetree
-Maria Nicolae anda-maria.nico...@intel.com
---
Updates from v1 version:
- I have followed Kzrysztof's suggestion and I have added explanations in
the commit message so that the change is more clear
- Code is the same as in v1
drivers/power/rt9455_charger.c | 16 ++--
1 file changed
Hello,
The next 3 patches do the following:
- first patch adds Richtek Technology Corporation in the vendor-prefixes list
- second patch adds device tree binding example for Richtek RT9455 battery
charger
- third patch adds the driver for Richtek RT9455 battery charger
Thanks,
Anda
Anda-Maria
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/Kconfig |7 +
drivers/power/Makefile |1 +
drivers/power/rt9455_charger.c | 1821
3 files
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/vendor-prefixes.txt|1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 8033919..7b8c129 100644
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/power/rt9455_charger.txt | 46
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt
diff --git a/Documentation/devicetree/bindings/power
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
Updates from v2 version:
- removed unused masks and keep the used ones. I have tried to access mask field
from struct regmap_field, but I have received the following
Hi all,
The following 2 patches do the following to bq2415x_charger:
- first patch fixes pre-existing coding style issues reported by checkpatch.pl
- second patch adds ACPI enumeration support
Thanks,
Anda
Anda-Maria Nicolae (2):
power_supply: bq2415x_charger: Fix coding style issues
that is connected to. Input current may be updated via
sysfs.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/bq2415x_charger.c | 73 +--
1 file changed, 55 insertions(+), 18 deletions(-)
diff --git a/drivers/power/bq2415x_charger.c b/drivers/power
ement uses braces, add braces to the other arms of the
respective statement, too
- match alignment with open parenthesis
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/bq2415x_charger.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git
placed {"RTK9455", 0} with { "RTK9455", 0 }
- removed .owner = THIS_MODULE
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/power/rt9455_charger.txt | 43 +
.../devicetree/bindings/vendor-prefixes.txt|1 +
drivers/power/Kconfig
Do not insert in send queue the skb that contains unknown Packet Control Byte
Signed-off-by: Anda-Maria Nicolae
---
Only compile tested, please have a look
drivers/nfc/st21nfcb/ndlc.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc/st21nfcb/ndlc.c b/drivers
The result of container_of macro cannot be NULL, so there is no need to
check whether info is NULL.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/rt9455_charger.c |3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/power/rt9455_charger.c b/drivers/power/rt9455_charger.c
index
.
Also, call power_supply_changed() after the battery is reconnected to the
charger, to notify userspace that the battery is no longer absent.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/rt9455_charger.c | 16 ++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git
the battery is reconnected (i.e. BATAB interrupt bit is cleared).
This is why in this patch, in rt9455_batt_presence_work_callback(),
power_supply_changed() is called.
On 07/02/2015 03:49 AM, Krzysztof Kozlowski wrote:
2015-06-18 1:28 GMT+09:00 Anda-Maria Nicolae :
Do not call power_supply_changed
notifications are received in this case.
Also, since rt9455_set_boost_voltage_before_boost_mode() function is
called only if USB_EVENT_ID notification is received, this function should
also be defined only if CONFIG_USB_PHY is enabled.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/power/rt9455_charger.txt | 46
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt
diff --git a/Documentation/devicetree/bindings/power
get().
- used devm_power_supply_register() and removed power_supply_unregister() from
rt9455_remove().
Anda-Maria Nicolae (3):
of: Add vendor prefix for Richtek Technology Corporation
Documentation: devicetree: Add Richtek RT9455 bindings
power_supply: Add support for Richtek RT9455 battery char
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/vendor-prefixes.txt|1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 8033919..7b8c129 100644
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/Kconfig |7 +
drivers/power/Makefile |1 +
drivers/power/rt9455_charger.c | 1751
3 files
-Maria Nicolae
---
Updates from v1 version:
- I have followed Kzrysztof's suggestion and I have added explanations in
the commit message so that the change is more clear
- Code is the same as in v1
drivers/power/rt9455_charger.c | 16 ++--
1 file changed, 14 insertions(+), 2
Hi Laurentiu,
Inline are the answers to your comments.
Thanks,
Anda
On 05/06/2015 02:40 PM, Laurentiu Palcu wrote:
On Tue, May 05, 2015 at 07:32:10PM +0300, Anda-Maria Nicolae wrote:
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria
On 05/06/2015 10:58 AM, Krzysztof Kozłowski wrote:
2015-05-06 1:32 GMT+09:00 Anda-Maria Nicolae :
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
Updates from v2 version:
- removed unused masks and keep the used ones
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
.../devicetree/bindings/power/rt9455_charger.txt | 38 +
.../devicetree/bindings/vendor-prefixes.txt|1 +
drivers/power/Kconfig
Replace of_property_read_u32() function call with device_property_read_u32(),
which is a wrapper over ACPI and devicetree enumeration methods.
Fix minor existing coding style issues reported by checkpatch.pl.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/bq2415x_charger.c | 76
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
Updates from v3 version:
- added "depends on REGMAP_I2C" in Kconfig
- removed MASK* macros and used GET_MASK as per Laurentiu's suggestion
- removed charger_set_p
Based on the datasheet found here:
http://www.richtek.com/download_ds.jsp?p=RT9455
Signed-off-by: Anda-Maria Nicolae
---
Updates from v4 version:
- replaced depends on REGMAP_I2C with select REGMAP_I2C
- got the latest version
This patch adds bq24157s charger in the list of supported chargers.
bq24157s is similar to bq24158, except for Bit6 from Special Charger
Voltage/Enable Pin Status register, but this register is currently
not used by bq2415x_charger.
Signed-off-by: Anda-Maria Nicolae
---
drivers/power
Hello,
First patch from patchset fixes coding style issues: removes unnecessary else
after return.
This way, the coding style complies with checkpatch.pl.
Second patch from patchset updates bq2415x driver to support bq24157s charger.
Thanks,
Anda
Anda-Maria Nicolae (2):
bq2415x_charger
Fix coding style to comply with checkpatch.pl
Signed-off-by: Anda-Maria Nicolae
---
drivers/power/bq2415x_charger.c | 24
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/drivers/power/bq2415x_charger.c b/drivers/power/bq2415x_charger.c
index e384844
56 matches
Mail list logo