Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
To: Jan Sokolowski <jan.sokolowski@intel.com>,
	<intel-wired-lan@lists.osuosl.org>
Cc: Mateusz Pacuszka <mateuszx.pacuszka@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: Fix safe mode when DDP is missing
Date: Tue, 3 Oct 2023 13:32:41 +0200	[thread overview]
Message-ID: <b71bb139-523d-f0ea-e9cd-1aff3670a91e@intel.com> (raw)
In-Reply-To: <20231003111745.77267-1-jan.sokolowski@intel.com>

On 10/3/23 13:17, Jan Sokolowski wrote:
> From: Mateusz Pacuszka <mateuszx.pacuszka@intel.com>
> 
> One thing is broken in the safe mode, that is
> ice_deinit_features() is being executed even
> that ice_init_features() was not causing stack
> trace during pci_unregister_driver().
> 
> Add check on the top of the function.
> 
> Fixes: 5b246e533d01 ("ice: split probe into smaller functions")
> Signed-off-by: Mateusz Pacuszka <mateuszx.pacuszka@intel.com>
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
> ---
>   drivers/net/ethernet/intel/ice/ice_main.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
> index c8286adae946..ded0d807c5c5 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> @@ -4683,6 +4683,9 @@ static void ice_init_features(struct ice_pf *pf)
>   
>   static void ice_deinit_features(struct ice_pf *pf)
>   {
> +	if (ice_is_safe_mode(pf))
> +		return;
> +
>   	ice_deinit_lag(pf);
>   	if (test_bit(ICE_FLAG_DCB_CAPABLE, pf->flags))
>   		ice_cfg_lldp_mib_change(&pf->hw, false);

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>


Please be reminded that for Intel originated patches the current default 
flow is:
you iterate on e1000 ml until reviewed-by is provided;
then post to IWL + CC netdev;
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

  reply	other threads:[~2023-10-03 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03 11:17 [Intel-wired-lan] [PATCH iwl-net v1] ice: Fix safe mode when DDP is missing Jan Sokolowski
2023-10-03 11:32 ` Przemek Kitszel [this message]
2023-10-09  4:21 ` Pucha, HimasekharX Reddy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b71bb139-523d-f0ea-e9cd-1aff3670a91e@intel.com \
    --to=przemyslaw.kitszel@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jan.sokolowski@intel.com \
    --cc=mateuszx.pacuszka@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox