stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stable request: iwlwifi: mvm: fix non-ACPI function
@ 2020-03-29 18:41 Jason Andryuk
  2020-03-29 19:17 ` Jason Andryuk
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Andryuk @ 2020-03-29 18:41 UTC (permalink / raw)
  To: stable; +Cc: Johannes Berg, Luca Coelho, Kalle Valo, Jason Andryuk

From: Johannes Berg <johannes.berg@intel.com>

commit 7937fd3227055892e169f4b34d21157e57d919e2 upstream.

The code now compiles without ACPI, but there's a warning since
iwl_mvm_get_ppag_table() isn't used, and iwl_mvm_ppag_init() must
not unconditionally fail but return success instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
[Drop hunk removing iwl_mvm_get_ppag_table() since it doesn't exist in
5.4]
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
---
A 5.4 kernel can't "up" an iwlwifi interface when CONFIG_ACPI=n.
`wpa_supplicant` or `ip link set wlan0 up` return "No such file or
directory".  The non-acpi stub iwl_mvm_ppag_init() always returns
-ENOENT which means iwl_mvm_up() always fails.  Backporting the commit
lets iwl_mvm_up() succeed.

 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
index c59cbb8cbdd7..c54fe6650018 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -1181,7 +1181,7 @@ int iwl_mvm_ppag_send_cmd(struct iwl_mvm *mvm)
 
 static int iwl_mvm_ppag_init(struct iwl_mvm *mvm)
 {
-	return -ENOENT;
+	return 0;
 }
 #endif /* CONFIG_ACPI */
 
-- 
2.25.1


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

* Re: Stable request: iwlwifi: mvm: fix non-ACPI function
  2020-03-29 18:41 Stable request: iwlwifi: mvm: fix non-ACPI function Jason Andryuk
@ 2020-03-29 19:17 ` Jason Andryuk
  2020-03-30  8:50   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Andryuk @ 2020-03-29 19:17 UTC (permalink / raw)
  To: stable; +Cc: Johannes Berg, Luca Coelho, Kalle Valo

On Sun, Mar 29, 2020 at 2:41 PM Jason Andryuk <jandryuk@gmail.com> wrote:
>
> From: Johannes Berg <johannes.berg@intel.com>
>
> commit 7937fd3227055892e169f4b34d21157e57d919e2 upstream.
>
> The code now compiles without ACPI, but there's a warning since
> iwl_mvm_get_ppag_table() isn't used, and iwl_mvm_ppag_init() must
> not unconditionally fail but return success instead.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
> [Drop hunk removing iwl_mvm_get_ppag_table() since it doesn't exist in
> 5.4]
> Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
> ---
> A 5.4 kernel can't "up" an iwlwifi interface when CONFIG_ACPI=n.
> `wpa_supplicant` or `ip link set wlan0 up` return "No such file or
> directory".  The non-acpi stub iwl_mvm_ppag_init() always returns
> -ENOENT which means iwl_mvm_up() always fails.  Backporting the commit
> lets iwl_mvm_up() succeed.

This stable request is only applicable to 5.4

Fixes 6ce1e5c0c207 "iwlwifi: support per-platform antenna gain"

-Jason

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

* Re: Stable request: iwlwifi: mvm: fix non-ACPI function
  2020-03-29 19:17 ` Jason Andryuk
@ 2020-03-30  8:50   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2020-03-30  8:50 UTC (permalink / raw)
  To: Jason Andryuk; +Cc: stable, Johannes Berg, Luca Coelho, Kalle Valo

On Sun, Mar 29, 2020 at 03:17:32PM -0400, Jason Andryuk wrote:
> On Sun, Mar 29, 2020 at 2:41 PM Jason Andryuk <jandryuk@gmail.com> wrote:
> >
> > From: Johannes Berg <johannes.berg@intel.com>
> >
> > commit 7937fd3227055892e169f4b34d21157e57d919e2 upstream.
> >
> > The code now compiles without ACPI, but there's a warning since
> > iwl_mvm_get_ppag_table() isn't used, and iwl_mvm_ppag_init() must
> > not unconditionally fail but return success instead.
> >
> > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> > Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
> > [Drop hunk removing iwl_mvm_get_ppag_table() since it doesn't exist in
> > 5.4]
> > Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
> > ---
> > A 5.4 kernel can't "up" an iwlwifi interface when CONFIG_ACPI=n.
> > `wpa_supplicant` or `ip link set wlan0 up` return "No such file or
> > directory".  The non-acpi stub iwl_mvm_ppag_init() always returns
> > -ENOENT which means iwl_mvm_up() always fails.  Backporting the commit
> > lets iwl_mvm_up() succeed.
> 
> This stable request is only applicable to 5.4
> 
> Fixes 6ce1e5c0c207 "iwlwifi: support per-platform antenna gain"

Now queued up, thanks.

greg k-h

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

end of thread, other threads:[~2020-03-30  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-29 18:41 Stable request: iwlwifi: mvm: fix non-ACPI function Jason Andryuk
2020-03-29 19:17 ` Jason Andryuk
2020-03-30  8:50   ` Greg KH

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).