diff mbox series

[v2,net-next,1/5] ionic: remove dead device fail path

Message ID 20230713192936.45152-2-shannon.nelson@amd.com (mailing list archive)
State Superseded
Commit 3a7af34fb6ecd9fbeb4454fc03c654b26fab5f5e
Delegated to: Netdev Maintainers
Headers show
Series ionic: add FLR support | expand

Checks

Context Check Description
netdev/series_format success Posting correctly formatted
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/cc_maintainers warning 3 maintainers not CCed: pabeni@redhat.com jiri@resnulli.us edumazet@google.com
netdev/build_clang success Errors and warnings before: 1364 this patch: 1364
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 1364 this patch: 1364
netdev/checkpatch warning WARNING: Unknown commit id '3a7af34fb6e', maybe rebased or not pulled?
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Nelson, Shannon July 13, 2023, 7:29 p.m. UTC
Remove the probe error path code that leaves the driver bound
to the device, but with essentially a dead device.  This was
useful maybe twice early in the driver's life and no longer
makes sense to keep.

Note: This patch is cherry-picked from commit 3a7af34fb6e
      because the following patchset is dependent on this
      change.  This patch can be dropped from this series
      once net-next is updated

Fixes: 30a1e6d0f8e2 ("ionic: keep ionic dev on lif init fail")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Jakub Kicinski July 14, 2023, 2:57 a.m. UTC | #1
On Thu, 13 Jul 2023 12:29:32 -0700 Shannon Nelson wrote:
> Note: This patch is cherry-picked from commit 3a7af34fb6e
>       because the following patchset is dependent on this
>       change.  This patch can be dropped from this series
>       once net-next is updated

Doesn't work, I tested applying the series after merging the trees -
git am doesn't skip this cleanly so our scripts get confused and 
end up making a real mess of the branches. Let's stick to the
documented process. You'll have to repost without this patch.
Nelson, Shannon July 14, 2023, 4:38 a.m. UTC | #2
On 7/13/23 7:57 PM, Jakub Kicinski wrote:
> On Thu, 13 Jul 2023 12:29:32 -0700 Shannon Nelson wrote:
>> Note: This patch is cherry-picked from commit 3a7af34fb6e
>>        because the following patchset is dependent on this
>>        change.  This patch can be dropped from this series
>>        once net-next is updated
> 
> Doesn't work, I tested applying the series after merging the trees -
> git am doesn't skip this cleanly so our scripts get confused and
> end up making a real mess of the branches. Let's stick to the
> documented process. You'll have to repost without this patch.
> --
> pw-bot: cr

Okay, thanks for trying.  I'll have a chance to update things and repost 
after the weekend.

Cheers,
sln
diff mbox series

Patch

diff --git a/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c b/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
index b8678da1cce5..ab7d217b98b3 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
@@ -353,12 +353,6 @@  static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	ionic_reset(ionic);
 err_out_teardown:
 	ionic_dev_teardown(ionic);
-	pci_clear_master(pdev);
-	/* Don't fail the probe for these errors, keep
-	 * the hw interface around for inspection
-	 */
-	return 0;
-
 err_out_unmap_bars:
 	ionic_unmap_bars(ionic);
 err_out_pci_release_regions: