From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] netxen: avoid using reset_devices as it may become obsolete Date: Sun, 28 Nov 2010 10:48:24 -0800 (PST) Message-ID: <20101128.104824.189695368.davem@davemloft.net> References: <1290517707-8554-1-git-send-email-amit.salecha@qlogic.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, ameen.rahman@qlogic.com, anirban.chakraborty@qlogic.com, rajesh.borundia@qlogic.com To: amit.salecha@qlogic.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:36553 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753866Ab0K1Sr6 (ORCPT ); Sun, 28 Nov 2010 13:47:58 -0500 In-Reply-To: <1290517707-8554-1-git-send-email-amit.salecha@qlogic.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Amit Kumar Salecha Date: Tue, 23 Nov 2010 05:08:27 -0800 > From: Rajesh Borundia > > In kdump environment do not depend on reset_devices > parameter to reset the device as the parameter may become obsolete. > Instead use an adapter specific mechanism to determine if the device > needs a reset. > > Driver maintains a count of number of pci functions probed > and decrements the count when remove handler of that pci function > is called. If the first probe, probe of function 0, > detects the count as non zero then reset the device. > > Signed-off-by: Rajesh Borundia > Signed-off-by: Amit Kumar Salecha Applied.