From patchwork Tue Aug 25 07:07:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murthy Bhat X-Patchwork-Id: 7068731 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D0CE2C05AC for ; Tue, 25 Aug 2015 07:07:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF53B2083E for ; Tue, 25 Aug 2015 07:07:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4D4B2083A for ; Tue, 25 Aug 2015 07:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874AbbHYHHm (ORCPT ); Tue, 25 Aug 2015 03:07:42 -0400 Received: from bby1mta02.pmc-sierra.com ([216.241.235.117]:42447 "EHLO bby1mta02.pmc-sierra.bc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753146AbbHYHHl convert rfc822-to-8bit (ORCPT ); Tue, 25 Aug 2015 03:07:41 -0400 Received: from bby1mta02.pmc-sierra.bc.ca (localhost.pmc-sierra.bc.ca [127.0.0.1]) by localhost (Postfix) with SMTP id 5F72B8E047C; Tue, 25 Aug 2015 00:07:41 -0700 (PDT) Received: from smtp.pmcs.com (bby1cas04.pmc-sierra.internal [216.241.227.182]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by bby1mta02.pmc-sierra.bc.ca (Postfix) with ESMTP id 4A4128E0477; Tue, 25 Aug 2015 00:07:41 -0700 (PDT) Received: from BBYEXM02.pmc-sierra.internal ([169.254.2.226]) by bby1cas04.pmc-sierra.internal ([fe80::8e9:88f9:cdc0:67bb%15]) with mapi id 14.03.0123.003; Tue, 25 Aug 2015 00:07:32 -0700 From: Murthy Bhat To: Karthikeya Sunkesula , Mahesh Rajashekhara , Tomas Henzl , "JBottomley@Parallels.com" , "linux-scsi@vger.kernel.org" CC: "aacraid@pmc-sierra.com" , Harry Yang , Rich Bono Subject: RE: [PATCH V6 08/10] [SCSI] aacraid: Send commit-config to controller firmware Thread-Topic: [PATCH V6 08/10] [SCSI] aacraid: Send commit-config to controller firmware Thread-Index: AQHQ0/rtlIhq59rxA02+FPJ99kD3Qp4cVsbggAAKsXA= Date: Tue, 25 Aug 2015 07:07:40 +0000 Message-ID: <13272BDD18A5F44CB23C497D29A37252DAB0F7DC@BBYEXM02.pmc-sierra.internal> References: <1439272701-15344-1-git-send-email-Mahesh.Rajashekhara@pmcs.com> <1439272701-15344-9-git-send-email-Mahesh.Rajashekhara@pmcs.com> In-Reply-To: Accept-Language: en-US, en-CA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [216.241.227.4] MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pmcs.com; h=from:to:cc:subject:date:message-id:references:in-reply-to:content-type:content-transfer-encoding:mime-version; s=default; bh=N3e2W0insVgot1yDTdUuiO6aaQbzP9U7PQbap/ua+ag=; b=nqgSibQYlDRZhPYsAEvsCNpRpP8eQemzvkypW1BbRrhQw8AR8Q7uNQ+/s4j6iWv7r1DPrqZ4OXgLx7Ggar9doLUmHL6tfNCseY0AGPJBDXWxUXwdFcwPVXJPNODJTHe65xhIHQceQYiuY+jKeBA6u9QJlraw6T1xFjfzHweuvGA= Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Murthy Bhat -----Original Message----- From: Karthikeya Sunkesula Sent: Tuesday, August 25, 2015 12:00 PM To: Mahesh Rajashekhara; Tomas Henzl; JBottomley@Parallels.com; linux-scsi@vger.kernel.org Cc: aacraid@pmc-sierra.com; Harry Yang; Rich Bono; Murthy Bhat Subject: RE: [PATCH V6 08/10] [SCSI] aacraid: Send commit-config to controller firmware Reviewed-by: Karthikeya Sunkesula -----Original Message----- From: Mahesh Rajashekhara Sent: Tuesday, August 11, 2015 11:28 AM To: Tomas Henzl; JBottomley@Parallels.com; linux-scsi@vger.kernel.org Cc: aacraid@pmc-sierra.com; Harry Yang; Rich Bono; Mahesh Rajashekhara Subject: [PATCH V6 08/10] [SCSI] aacraid: Send commit-config to controller firmware Description: Controller BIOS/UEFI driver used to send this request. But for IBM-Power system there is no BIOS/UEFI driver. So this change is required for IBM, otherwise controller will be read-only mode. Changes from V2: None Signed-off-by: Mahesh Rajashekhara --- drivers/scsi/aacraid/linit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 3b6e5c6..35dd849 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -1270,8 +1270,11 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) shost->max_channel = aac->maximum_num_channels; else shost->max_channel = 0; - +#if defined(__powerpc__) || defined(__PPC__) || defined(__ppc__) + aac_get_config_status(aac, 1); +#else aac_get_config_status(aac, 0); +#endif aac_get_containers(aac); list_add(&aac->entry, insert);