From patchwork Tue Dec 2 10:26:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5419111 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7F266BEEA8 for ; Tue, 2 Dec 2014 10:26:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B00DF202A1 for ; Tue, 2 Dec 2014 10:26:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE3352027D for ; Tue, 2 Dec 2014 10:26:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754323AbaLBK0f (ORCPT ); Tue, 2 Dec 2014 05:26:35 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:47034 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296AbaLBK0d (ORCPT ); Tue, 2 Dec 2014 05:26:33 -0500 Received: by mail-wi0-f172.google.com with SMTP id n3so27492109wiv.17 for ; Tue, 02 Dec 2014 02:26:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RiBPchW7WD6fKl/rzu1EzB+xCBgIYfnqOU5pzomIaME=; b=N6zqhB73q63ltgOmS3FLF5mf6laTCOfk/Bqq1nBIEcH8rf1GWBn3uBvWsHfhd0D/v8 +68vvKcKWv9RvMbUxKLm00fUCICIoXaihgnekOf8ch3cv4nsNvnR3tsWA3s+TlnXn0DB f7+VfzQ6acctF5O8rrllc7L9+qe+ZOd5felbmphxoogxwiDJ80n87T2sTAATaopFiWeH bXtEoQ9tpxx0/tcaIspVqVlCq5q+kpZbjHyia6RpsHfVRg4itqd+1S9+wrxwDj7/kjw9 3JkRXxoKlVblQOKfbks/UhafpD+weYul/JxuJ9UNOKs5+keJvToOpBgujWoIr+0d1oyF pW/A== X-Gm-Message-State: ALoCoQmbuvOd7ZTL+ZT38gg2tvBayLx+anh0LYOIOsdNydMp8AxPNZZJZBCALy1TP3xxslVXKs2j X-Received: by 10.180.91.201 with SMTP id cg9mr3978248wib.63.1417515992236; Tue, 02 Dec 2014 02:26:32 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id vm8sm31310661wjc.6.2014.12.02.02.26.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Dec 2014 02:26:31 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: davem@davemloft.net Cc: roland@kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, ogerlitz@mellanox.com, amirv@mellanox.com, Eli Cohen Subject: [PATCH net-next 1/9] net/mlx5_core: Request the mlx5 IB module on driver load Date: Tue, 2 Dec 2014 12:26:11 +0200 Message-Id: <1417515979-22418-2-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417515979-22418-1-git-send-email-eli@mellanox.com> References: <1417515979-22418-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Call request module on mlx5_ib so it will be available for applications requiring it, such as installers that require boot over IB. Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 71b10b210792..4e3c27e77768 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include "mlx5_core.h" @@ -840,6 +841,8 @@ struct mlx5_core_event_handler { void *data); }; +#define MLX5_IB_MOD "mlx5_ib" + static int init_one(struct pci_dev *pdev, const struct pci_device_id *id) { @@ -878,6 +881,10 @@ static int init_one(struct pci_dev *pdev, goto out_init; } + err = request_module_nowait(MLX5_IB_MOD); + if (err) + pr_info("failed request module on %s\n", MLX5_IB_MOD); + return 0; out_init: