[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140407.144340.688537373203786487.davem@davemloft.net>
Date: Mon, 07 Apr 2014 14:43:40 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: weiyang@...ux.vnet.ibm.com
Cc: yevgenyp@...lanox.com, ogerlitz@...lanox.com, amirv@...lanox.com,
bhelgaas@...gle.com, linux-pci@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [Patch net-next] net/mlx4_core: match pci_device_id including
dynids
From: Wei Yang <weiyang@...ux.vnet.ibm.com>
Date: Sun, 6 Apr 2014 10:07:30 +0800
> Fix issue introduced by commit: 97a5221 "net/mlx4_core: pass
> pci_device_id.driver_data to __mlx4_init_one during reset".
>
> pci_match_id() just match the static pci_device_id, which may return NULL if
> someone binds the driver to a device manually using
> /sys/bus/pci/drivers/.../new_id.
>
> This patch wrap up a helper function __mlx4_remove_one() which does the tear
> down function but preserve the drv_data. Functions like
> mlx4_pci_err_detected() and mlx4_restart_one() will call this one with out
> releasing drvdata.
>
> Tested on ConnectX-3.
>
> CC: Bjorn Helgaas <bhelgaas@...gle.com>
> CC: Amir Vadai <amirv@...lanox.com>
> Signed-off-by: Wei Yang <weiyang@...ux.vnet.ibm.com>
Please resubmit this when the net-next tree opens back up, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists