netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning
@ 2016-10-10  7:19 Chris Rorvick
  2016-10-10 14:02 ` Luca Coelho
  0 siblings, 1 reply; 25+ messages in thread
From: Chris Rorvick @ 2016-10-10  7:19 UTC (permalink / raw)
  To: Intel Linux Wireless, Luca Coelho, Emmanuel Grumbach,
	Johannes Berg, Kalle Valo, Oren Givon
  Cc: linux-wireless, netdev, linux-kernel, Chris Rorvick

Commit bcb079a14d75 ("iwlwifi: pcie: retrieve and parse ACPI power
limitations") looks for a specific structure in the ACPI tables for
setting the default power limit.  The data returned for at least some
dual band chipsets is not recognized, though.  For example, the AC 8260
reports the following:

        Name (SPLX, Package (0x04)
        {
            Zero,
            Package (0x03)
            {
                0,
                1200,
                1000
            },
            Package (0x03)
            {
                0,
                1200,
                1000
            },
            Package (0x03)
            {
                0,
                1200,
                1000
            }
        })

The current logic expects exactly two elements in the outer package,
causing the above to be ignored and the power limit unset.

Despite the interface being fully functional after initialization, the
above condition is reported as an error.  Knock the message down to a
warning and provide better context for understanding its consequence.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
index 78cf9a7..19b531f 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
@@ -540,7 +540,7 @@ static u64 splx_get_pwr_limit(struct iwl_trans *trans, union acpi_object *splx)
 	    splx->package.count != 2 ||
 	    splx->package.elements[0].type != ACPI_TYPE_INTEGER ||
 	    splx->package.elements[0].integer.value != 0) {
-		IWL_ERR(trans, "Unsupported splx structure\n");
+		IWL_WARN(trans, "Unsupported splx structure, not limiting WiFi power\n");
 		return 0;
 	}
 
-- 
2.10.1

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2016-10-13 17:49 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10  7:19 [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning Chris Rorvick
2016-10-10 14:02 ` Luca Coelho
     [not found]   ` <1476108164.5210.11.camel-XPOmlcxoEMv1KXRcyAk9cg@public.gmane.org>
2016-10-11 10:11     ` Paul Bolle
2016-10-11 14:09       ` Chris Rorvick
2016-10-11 14:27         ` Chris Rorvick
2016-10-12  6:25         ` Luca Coelho
2016-10-12  4:32       ` Chris Rorvick
2016-10-12 12:24         ` Luca Coelho
2016-10-12 12:36           ` Paul Bolle
2016-10-12 13:06             ` Luca Coelho
2016-10-12  6:11       ` Luca Coelho
2016-10-12  6:52         ` Paul Bolle
2016-10-12 17:50           ` Chris Rorvick
     [not found]             ` <CAEUsAPYYJ3Gmh0T16veCn3wnzdD8bTxE+_U-AUYQpMo3TUd4Mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-12 18:05               ` Paul Bolle
2016-10-12 18:36                 ` Chris Rorvick
2016-10-13  9:01             ` Luca Coelho
2016-10-13 10:21               ` [PATCH] iwlwifi: pcie: fix SPLC structure parsing Luca Coelho
2016-10-13 11:27                 ` Paul Bolle
     [not found]                   ` <1476358075.1999.5.camel-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>
2016-10-13 11:30                     ` Luca Coelho
2016-10-13 12:36                       ` Paul Bolle
     [not found]                         ` <1476362194.1999.11.camel-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>
2016-10-13 12:44                           ` Luca Coelho
     [not found]                             ` <1476362653.3880.25.camel-XPOmlcxoEMv1KXRcyAk9cg@public.gmane.org>
2016-10-13 12:55                               ` Paul Bolle
2016-10-13 17:49                                 ` Luca Coelho
2016-10-13 13:56                     ` Chris Rorvick
2016-10-13 14:30                       ` Luca Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).