[PATCH v3 3/6] libertas: do not confirm sleep if commands are pending

2016-01-30 Thread Andreas Kemnade
If the main thread gets one PS AWAKE event and one PS SLEEP event in one iteration over event_fifo there will never be checks for commands to be processed, since psstate will always be PS_STATE_SLEEP or PS_STATE_PRE_SLEEP Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths changes

[PATCH v3 5/6] libertas: fix ps-mode related removal problems

2016-01-30 Thread Andreas Kemnade
forever for the command being processed, so disable it. Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths changes in v2: improved commit message, reordered: was 6/6 drivers/net/wireless/marvell/libertas/main.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH v3 0/6] libertas: ieee80211 powersave mode

2016-01-30 Thread Andreas Kemnade
This series makes IEEE 80211 powersave mode work again so that power usage is dramatically reduced when the device is connected. It does not include other power saving methods which are working when the device is not connected (like enabling deep sleep modus) Tested on GTA04 which includes a

[PATCH v3 6/6] libertas: add an cfg80211 interface for powersaving

2016-01-30 Thread Andreas Kemnade
such conditions. Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths changes in v2: reordered, was 3/6 drivers/net/wireless/marvell/libertas/cfg.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/net/wireless/marvell/libertas/cfg.c b

[PATCH v3 2/6] libertas: check whether bus can do more than polling

2016-01-30 Thread Andreas Kemnade
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths drivers/net/wireless

[PATCH v3 4/6] libertas: go back to ps mode without commands pending

2016-01-30 Thread Andreas Kemnade
is needed. Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths changes in v2: reordered, was 5/6 drivers/net/wireless/marvell/libertas/cmd.c | 36 +--- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/drivers/net/wireless/marvell/libertas

[PATCH v3 1/6] libertas: fix pointer bugs for PS_MODE commands

2016-01-30 Thread Andreas Kemnade
and buffer This piece of code was unused since power saving was not enabled. Signed-off-by: Andreas Kemnade --- changes in v3: corrected paths changes in v2: improved commit message drivers/net/wireless/marvell/libertas/cmd.c | 4 ++-- drivers/net/wireless/marvell/libertas/cmdresp.c | 5 -

[PATCH v3 4/6] libertas: go back to ps mode without commands pending

2016-01-30 Thread Andreas Kemnade
is needed. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes in v3: corrected paths changes in v2: reordered, was 5/6 drivers/net/wireless/marvell/libertas/cmd.c | 36 +--- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/drive

[PATCH v3 1/6] libertas: fix pointer bugs for PS_MODE commands

2016-01-30 Thread Andreas Kemnade
and buffer This piece of code was unused since power saving was not enabled. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes in v3: corrected paths changes in v2: improved commit message drivers/net/wireless/marvell/libertas/cmd.c | 4 ++-- drivers/net/wireless/marvell

[PATCH v3 2/6] libertas: check whether bus can do more than polling

2016-01-30 Thread Andreas Kemnade
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes in v3: corrected

[PATCH v3 0/6] libertas: ieee80211 powersave mode

2016-01-30 Thread Andreas Kemnade
This series makes IEEE 80211 powersave mode work again so that power usage is dramatically reduced when the device is connected. It does not include other power saving methods which are working when the device is not connected (like enabling deep sleep modus) Tested on GTA04 which includes a

[PATCH v3 6/6] libertas: add an cfg80211 interface for powersaving

2016-01-30 Thread Andreas Kemnade
such conditions. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes in v3: corrected paths changes in v2: reordered, was 3/6 drivers/net/wireless/marvell/libertas/cfg.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/net/wireless/m

[PATCH v3 3/6] libertas: do not confirm sleep if commands are pending

2016-01-30 Thread Andreas Kemnade
If the main thread gets one PS AWAKE event and one PS SLEEP event in one iteration over event_fifo there will never be checks for commands to be processed, since psstate will always be PS_STATE_SLEEP or PS_STATE_PRE_SLEEP Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes

[PATCH v3 5/6] libertas: fix ps-mode related removal problems

2016-01-30 Thread Andreas Kemnade
forever for the command being processed, so disable it. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- changes in v3: corrected paths changes in v2: improved commit message, reordered: was 6/6 drivers/net/wireless/marvell/libertas/main.c | 7 ++- 1 file changed, 6 insertions

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-22 Thread Andreas Kemnade
On Fri, 22 Jan 2016 20:12:29 + One Thousand Gnomes wrote: > > I would have expected that the main (and IMO sufficient) reason why > > the kernel should do it is because the particular bus used to connect > > a BT chip to the CPU is a hw detail that a kernel that does its job > > should keep

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-22 Thread Andreas Kemnade
On Fri, 22 Jan 2016 20:12:29 + One Thousand Gnomes wrote: > > I would have expected that the main (and IMO sufficient) reason why > > the kernel should do it is because the particular bus used to connect > > a BT chip to the CPU is a hw detail that a kernel that

Re: [PATCH RFC] wireless:libertas: enable auto deep sleep

2016-01-20 Thread Andreas Kemnade
On Wed, 20 Jan 2016 14:42:47 +0200 Kalle Valo wrote: > Andreas Kemnade writes: > > > Enables auto deep sleep whenever the interface is up and > > power managament is enabled, so there is also power management > > when there is no connection > > That reduces powe

Re: [PATCH RFC] wireless:libertas: enable auto deep sleep

2016-01-20 Thread Andreas Kemnade
On Wed, 20 Jan 2016 14:42:47 +0200 Kalle Valo <kv...@codeaurora.org> wrote: > Andreas Kemnade <andr...@kemnade.info> writes: > > > Enables auto deep sleep whenever the interface is up and > > power managament is enabled, so there is also power management &

[PATCH 4/6] wireless:libertas: do not confirm sleep if commands are pending

2016-01-06 Thread Andreas Kemnade
If the main thread gets one PS AWAKE event and one PS SLEEP event in one iteration over event_fifo there will never be checks for commands to be processed, since psstate will always be PS_STATE_SLEEP or PS_STATE_PRE_SLEEP Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas

[PATCH 6/6] wireless:libertas: fix suspend problems

2016-01-06 Thread Andreas Kemnade
When the device goes to suspend mode with powersaving enabled, lbs_remove_card tries to exit powersaving state even when already woken up. That command is not processed properly in that situation, so the system hangs at suspend, so disable it. Signed-off-by: Andreas Kemnade --- drivers/net

[PATCH 5/6] wireless:libertas: go back to ps mode without commands pending

2016-01-06 Thread Andreas Kemnade
is needed. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cmd.c | 36 +--- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 40467d6..4ddd0e5 100644

[PATCH 3/6] wireless:libertas: add an cfg80211 interface for powersaving

2016-01-06 Thread Andreas Kemnade
such conditions. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cfg.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index 8317afd..fd18d03 100644 --- a/drivers/net

[PATCH 0/6] wireless:libertas: ieee80211 powersave mode

2016-01-06 Thread Andreas Kemnade
This series makes IEEE 80211 powersave mode work again so that power usage is dramatically reduced when the device is connected. It does not include other power saving methods which are working when the device is not connected (like enabling deep sleep modus) Tested on GTA04 which includes a

[PATCH 2/6] wireless:libertas: check whether bus can do more than polling

2016-01-06 Thread Andreas Kemnade
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/dev.h | 1 + drivers

[PATCH 1/6] wireless:libertas: do not strip header for PS_MODE commands

2016-01-06 Thread Andreas Kemnade
struct cmd_ds_802_11_ps_mode contains the command header and a pointer to it was initialized with data points to the body which leads to mis-interpretation of the cmd_ds_802_11_ps_mode.action member. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cmd.c | 4 ++-- drivers

[PATCH 1/6] wireless:libertas: do not strip header for PS_MODE commands

2016-01-06 Thread Andreas Kemnade
struct cmd_ds_802_11_ps_mode contains the command header and a pointer to it was initialized with data points to the body which leads to mis-interpretation of the cmd_ds_802_11_ps_mode.action member. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/net/wireless/libertas

[PATCH 2/6] wireless:libertas: check whether bus can do more than polling

2016-01-06 Thread Andreas Kemnade
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/net/wireless/li

[PATCH 0/6] wireless:libertas: ieee80211 powersave mode

2016-01-06 Thread Andreas Kemnade
This series makes IEEE 80211 powersave mode work again so that power usage is dramatically reduced when the device is connected. It does not include other power saving methods which are working when the device is not connected (like enabling deep sleep modus) Tested on GTA04 which includes a

[PATCH 4/6] wireless:libertas: do not confirm sleep if commands are pending

2016-01-06 Thread Andreas Kemnade
If the main thread gets one PS AWAKE event and one PS SLEEP event in one iteration over event_fifo there will never be checks for commands to be processed, since psstate will always be PS_STATE_SLEEP or PS_STATE_PRE_SLEEP Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drive

[PATCH 3/6] wireless:libertas: add an cfg80211 interface for powersaving

2016-01-06 Thread Andreas Kemnade
such conditions. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/net/wireless/libertas/cfg.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index 8317afd..f

[PATCH 6/6] wireless:libertas: fix suspend problems

2016-01-06 Thread Andreas Kemnade
When the device goes to suspend mode with powersaving enabled, lbs_remove_card tries to exit powersaving state even when already woken up. That command is not processed properly in that situation, so the system hangs at suspend, so disable it. Signed-off-by: Andreas Kemnade <andr...@kemnade.i

[PATCH 5/6] wireless:libertas: go back to ps mode without commands pending

2016-01-06 Thread Andreas Kemnade
is needed. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/net/wireless/libertas/cmd.c | 36 +--- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 4

[PATCH] omap_hdq: fix usecount handling

2016-01-04 Thread Andreas Kemnade
hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output Signed-off-by: Andreas Kemnade --- drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/masters

[PATCH] omap_hdq: fix usecount handling

2016-01-04 Thread Andreas Kemnade
hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-)

[PATCH] net/wireless/libertas: do not strip header for PS_MODE commands

2015-12-22 Thread Andreas Kemnade
struct cmd_ds_802_11_ps_mode contains the command header and a pointer to it was initialized with data points to the body which leads to mis-interpretation of the cmd_ds_802_11_ps_mode.action member. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cmd.c |4 ++-- drivers

[PATCH] net/wireless/libertas: do not strip header for PS_MODE commands

2015-12-22 Thread Andreas Kemnade
struct cmd_ds_802_11_ps_mode contains the command header and a pointer to it was initialized with data points to the body which leads to mis-interpretation of the cmd_ds_802_11_ps_mode.action member. Signed-off-by: Andreas Kemnade <andr...@kemnade.info> --- drivers/net/wireless/libertas

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-11-24 Thread Andreas Kemnade
tically done, but end of charge due to low current not. Note: If linear charging mode is used there should be some method of stopping charging automatically. It is not a so time-critical, but it is the wrong setting for leaving a charger connected for several days sinc

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-11-24 Thread Andreas Kemnade
CC/CV mode is still automatically done, but end of charge due to low current not. Note: If linear charging mode is used there should be some method of stopping charging automatically. It is not a so time-critical, but it is the wrong setting fo

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-10-29 Thread Andreas Kemnade
wer source are. - the amount of current available changes - 500mA at around 17km/h - you cannot destroy it by electrically overloading If the current is set to e.g. 500mA and that linear charging mode is enabled, the battery gets the maximum current available (upto 500mA) regardless of the speed which is often changing. Regards, Andreas Kemnade signature.asc Description: PGP signature

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-10-29 Thread Andreas Kemnade
cal characteristics of a bicycle as a power source are. - the amount of current available changes - 500mA at around 17km/h - you cannot destroy it by electrically overloading If the current is set to e.g. 500mA and that linear charging mode is enabled, the battery gets the maximum current available (upto 500mA) regardless of the speed which is often changing. Regards, Andreas Kemnade signature.asc Description: PGP signature

<    1   2   3   4   5