From: Wei Yang Subject: Re: [Patch net-next] net/mlx4_core: match pci_device_id including dynids Date: Tue, 8 Apr 2014 15:45:16 +0800 Message-ID: <20140408074516.GB12126@richard> References: <1396750050-7183-1-git-send-email-weiyang@linux.vnet.ibm.com> <20140407.144340.688537373203786487.davem@davemloft.net> <53439BBE.4070708@mellanox.com> Reply-To: Wei Yang Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , weiyang@linux.vnet.ibm.com, yevgenyp@mellanox.com, amirv@mellanox.com, bhelgaas@google.com, linux-pci@vger.kernel.org, netdev@vger.kernel.org To: Or Gerlitz Return-path: Content-Disposition: inline In-Reply-To: <53439BBE.4070708@mellanox.com> Sender: linux-pci-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, Apr 08, 2014 at 09:48:30AM +0300, Or Gerlitz wrote: >On 07/04/2014 21:43, David Miller wrote: >>From: Wei Yang >>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 >>>CC: Amir Vadai >>>Signed-off-by: Wei Yang >>Please resubmit this when the net-next tree opens back up, thanks. > >Dave, this patch is for net, since it fixes an issue in the current >code (actually it relates to a patch >that was merged after 3.14-rc7, so it would eventually might go to >-stable too). The author wasn't very >familiar with the exact differences/nature of net vs. net-next, so it >might created some confusion here, I'v >sent him few private notes to explain how things go... Yes, sorry for the confusion. Thanks Or for your patient explanation, while I still make mistakes. > >Or. -- Richard Yang Help you, Help me