From: Breno Leitao <leitao@debian.org>
To: "illusion.wang" <illusion.wang@nebula-matrix.com>
Cc: dimon.zhao@nebula-matrix.com, alvin.wang@nebula-matrix.com,
sam.chen@nebula-matrix.com, netdev@vger.kernel.org,
kuba@kernel.org, andrew+netdev@lunn.ch, pabeni@redhat.com,
edumazet@google.com, horms@kernel.org,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v34 net-next 1/8] net/nebula-matrix: add channel layer
Date: Thu, 12 Nov 2026 04:01:16 -0800 [thread overview]
Message-ID: <avWqOzt1ImFuvyXL@gmail.com> (raw)
In-Reply-To: <20261112094925.6098-2-illusion.wang@nebula-matrix.com>
> @@ -75,27 +215,32 @@ static int nbl_probe(struct pci_dev *pdev,
> struct nbl_adapter *adapter;
> int err;
>
> + nbl_get_func_param(pdev, id->driver_data, ¶m);
> err = pcim_enable_device(pdev);
> if (err) {
> dev_err(&pdev->dev, "Failed to enable PCI dev, err=%d\n", err);
> return err;
> }
>
> - nbl_get_func_param(pdev, id->driver_data, ¶m);
> /* never return fail when DMA_BIT_MASK(64) */
> dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
>
> pci_set_master(pdev);
>
> + err = nbl_probe_chip_deps(pdev, param.caps.has_ctrl);
> + if (err)
> + goto out_clear_master;
> +
> adapter = nbl_core_init(pdev, ¶m);
> if (IS_ERR(adapter)) {
> dev_err(dev, "Nbl adapter init fail: %pe\n", adapter);
> err = PTR_ERR(adapter);
> - goto adapter_init_err;
> + goto out_clear_master;
> }
nbl_get_func_param() now runs before pcim_enable_device(), but
nbl_probe_chip_deps() still runs after pcim_enable_device() and
pci_set_master().
Shouldn't nbl_probe_chip_deps() be on called earlier?
next prev parent reply other threads:[~2026-11-12 12:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 9:49 [PATCH v34 net-next 0/8] nbl driver for Nebulamatrix NICs illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 1/8] net/nebula-matrix: add channel layer illusion.wang
2026-11-12 12:01 ` Breno Leitao [this message]
2026-11-12 9:49 ` [PATCH v34 net-next 2/8] net/nebula-matrix: add common resource implementation illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 3/8] net/nebula-matrix: add intr " illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 4/8] net/nebula-matrix: add chip-wide hardware init/deinit implementation illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 5/8] net/nebula-matrix: dispatch: add control-level routing core infrastructure illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 6/8] net/nebula-matrix: dispatch: add mailbox RPCs for msix map, mailbox irq and vsi/eth id illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 7/8] net/nebula-matrix: add common/ctrl dev init/remove operation illusion.wang
2026-11-12 9:49 ` [PATCH v34 net-next 8/8] net/nebula-matrix: add common dev start/stop operation illusion.wang
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=avWqOzt1ImFuvyXL@gmail.com \
--to=leitao@debian.org \
--cc=alvin.wang@nebula-matrix.com \
--cc=andrew+netdev@lunn.ch \
--cc=dimon.zhao@nebula-matrix.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=illusion.wang@nebula-matrix.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sam.chen@nebula-matrix.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