Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756538AbbFQL2O (ORCPT ); Wed, 17 Jun 2015 07:28:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50003 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754864AbbFQL1s (ORCPT ); Wed, 17 Jun 2015 07:27:48 -0400 Message-ID: <558159AF.5020604@redhat.com> Date: Wed, 17 Jun 2015 13:27:43 +0200 From: Tomas Henzl User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Sreekanth Reddy , jejb@kernel.org CC: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, JBottomley@Parallels.com, Sathya.Prakash@avagotech.com, linux-kernel@vger.kernel.org, hch@infradead.org, jthumshirn@suse.de, joe.lawrence@stratus.com Subject: Re: [PATCH v1 02/20] [SCSI] mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state. References: <1434532251-6897-1-git-send-email-Sreekanth.Reddy@avagotech.com> In-Reply-To: <1434532251-6897-1-git-send-email-Sreekanth.Reddy@avagotech.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 22 On 06/17/2015 11:10 AM, Sreekanth Reddy wrote: > Driver initialization fails if driver tries to send IOC facts request message when the IOC is in reset or in a fault state. > > This patch will make sure that > 1.Driver to send IOC facts request message only if HBA is in operational or ready state. > 2.If IOC is in fault state, a diagnostic reset would be issued. > 3.If IOC is in reset state then driver will wait for 10 seconds to exit out of reset state. > If the HBA continues to be in reset state, then the HBA wouldn't be claimed by the driver. > > Changes in v1: > If PCI Recovery is on then return with -EFAULT in the function _base_wait_for_iocstate(). > > Signed-off-by: Sreekanth Reddy Reviewed-by: Tomas Henzl Tomas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/