Message ID | a8afec4668b9feebd94a75f22bc0db8699906783.1711979679.git.davthompson@nvidia.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V7Xll4YZ8z23h8 for <incoming@patchwork.ozlabs.org>; Tue, 2 Apr 2024 01:02:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1rrIFK-0003dh-5P; Mon, 01 Apr 2024 14:02:46 +0000 Received: from mail-mw2nam12on2079.outbound.protection.outlook.com ([40.107.244.79] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <davthompson@nvidia.com>) id 1rrIFF-0003cc-9S for kernel-team@lists.ubuntu.com; Mon, 01 Apr 2024 14:02:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n0BIr3zKcmhAzMGlQ+Z3sBAmhVdkgIKxnbUDiHvl4cWv/+3kGklDLl8HgcwlUmAT2YsMrCmZEyJ84u1MC4VndJYlyIdsvx9tNQOSiDf3bEGZnT1UnveRmwKotKPcixWWNJ0igjZLhohZadqWz2DHV9Ka++4a/n2VVpNlxBydNanTAqFe2YtKt+V5NCKYmSbFGjNB1PdfcwNsnhN94nrGLEDQlhb2q+Ere6cgcnRNmisbtaX+qLv/DgNzpUPrLt08pGF9/g8hU5axk9P+RJ9t1shCFlrhiDWXRUPn4HzY4EONiIB9/y1Ro5aKY8juLU/oH6nAwQADsECYD4jMgvpRdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ol5vlAMOEPEUgFMc9Nw3vDW78f3rrivZ8L6YC0ce2Zw=; b=YfwvZMZIAwEpb5mETKigL5MQPqYETKTOSEpaR8GcDMmgIKj8A/D+c/xqVBOYcVj0C6ATcnG3lvR/hqe4I1b7zUx4HAhXkVu0uSzX28L60m3K6YwCmN/bv7FrF8w/6NnvSA6K3hemuh+Lh6PR/Ym8FlmbRUM2IGOQpp1ctBFUuqXIQWxsd3MmJC7jRTnK656BAkFhycrSn3CwaaC4bXwUfMukrRFRsExLN7t3XppS94D+uCxa37+w92ATQU6eOoNKYX0lVuYTnOrG2gZzZVYm9PwZ+LqsSlLmFwNHt6UFthbq5bpTb9M0k75Zzg6vY6Xmbo0iod4034cIhMDYUTSobg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from DM6PR06CA0001.namprd06.prod.outlook.com (2603:10b6:5:120::14) by PH8PR12MB8429.namprd12.prod.outlook.com (2603:10b6:510:258::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 14:02:36 +0000 Received: from DS2PEPF0000343B.namprd02.prod.outlook.com (2603:10b6:5:120:cafe::54) by DM6PR06CA0001.outlook.office365.com (2603:10b6:5:120::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend Transport; Mon, 1 Apr 2024 14:02:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DS2PEPF0000343B.mail.protection.outlook.com (10.167.18.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Mon, 1 Apr 2024 14:02:35 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 1 Apr 2024 07:01:56 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 1 Apr 2024 07:01:55 -0700 Received: from vdi.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 1 Apr 2024 07:01:55 -0700 From: David Thompson <davthompson@nvidia.com> To: <kernel-team@lists.ubuntu.com> Subject: [SRU][J:linux-bluefield][PATCH v1 1/2] mlxbf_gige: stop PHY during open() error paths Date: Mon, 1 Apr 2024 10:01:53 -0400 Message-ID: <a8afec4668b9feebd94a75f22bc0db8699906783.1711979679.git.davthompson@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <cover.1711979679.git.davthompson@nvidia.com> References: <cover.1711979679.git.davthompson@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF0000343B:EE_|PH8PR12MB8429:EE_ X-MS-Office365-Filtering-Correlation-Id: fc4bf0c2-dcde-4b90-de5d-08dc5254625d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5ufWUddkqKZsJDwkVGr5g5u736XLp0yfRpjTKsSUAz4KUFn5ZW86yxcfWhVfV3GsvAWDLzJJs6vzDdo2gkJ4qi4ozVadERPCJ4nak2TLpocehxKyH+hgdJUMQ/j1wL5rh4qURL5NpTBcTh3ssmQfK4b0yGf5WcEPddV7zbZh79lJ1nYZXVWvUP9wAIxLKHh88ywcFgBVsn4FeovQw3x8Yei3ltyAL1ZhBx2dcUQg8HMb1MqneEkS282KjSylJ+WYJ+Lv90yLzmNoJSD0niH3KPDwAkdfKWYPlCtkLIfhJXYKu4jN9GcIonSrUqkFTAd7B8wL9uNlc6TXEVMT0ZE7rVsvgBtr9sK+f0nbBnJrGL+x79CahaKre4d5eYkQK7ToE5i/dZ4E39WuvB+biqxsSbXbLvokWW6L+sGzoCAMhA4yy3gA36pVc/9UTb1DBOMZ/Ne0cqGhGqOHOYDHBpUb5YNAn8Iel0QtXoMdSEVyw8rDOLnSYGjGlrBBcYIZlJNlf8LKZH4+D9UqDT9En9RCbtsoBHPV5ykxYEJKAb4IQKa0avOcFDantPn52S4Y7HQS8dCPcyuZvMRg2ug7KqVrpvrYodgDV8Pv5wxLg35oxpfKpuwhzMDgFgjMXQu19SKjeGTArIErPHL2pqL8GMbLYD66gsEWXQc80IOCF6tS/du3RL1MBaw9to/E28PvH7MYiLQM8SObq8FsZ0fRGY9amsMwAF/V+nDvbFa7YTj53WXxwpmcSUoTWYEW97XxHbQd X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(82310400014)(376005)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 14:02:35.9411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc4bf0c2-dcde-4b90-de5d-08dc5254625d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF0000343B.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB8429 Received-SPF: softfail client-ip=40.107.244.79; envelope-from=davthompson@nvidia.com; helo=NAM12-MW2-obe.outbound.protection.outlook.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Cc: asmaa@nvidia.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
mlxbf_gige: call request_irq() after NAPI initialized
|
expand
|
diff --git a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c index 74ef75e00739..7a6e7a035f73 100644 --- a/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c +++ b/drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c @@ -158,7 +158,7 @@ static int mlxbf_gige_open(struct net_device *netdev) err = mlxbf_gige_tx_init(priv); if (err) - goto free_irqs; + goto phy_deinit; err = mlxbf_gige_rx_init(priv); if (err) goto tx_deinit; @@ -186,6 +186,9 @@ static int mlxbf_gige_open(struct net_device *netdev) tx_deinit: mlxbf_gige_tx_deinit(priv); +phy_deinit: + phy_stop(phydev); + free_irqs: mlxbf_gige_free_irqs(priv); return err;