From patchwork Thu Feb 4 11:19:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles Chiou X-Patchwork-Id: 8219591 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A76A19F1C0 for ; Thu, 4 Feb 2016 11:20:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDA4D20165 for ; Thu, 4 Feb 2016 11:20:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A41A7201BC for ; Thu, 4 Feb 2016 11:20:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757244AbcBDLTl (ORCPT ); Thu, 4 Feb 2016 06:19:41 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35518 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756957AbcBDLTj (ORCPT ); Thu, 4 Feb 2016 06:19:39 -0500 Received: by mail-pf0-f193.google.com with SMTP id 66so3212786pfe.2; Thu, 04 Feb 2016 03:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ADsnaA1e5QCVFIIsD27CnMhPjyJXhDsZQgJf8uXceAo=; b=Ogms8Ugpan+nH7OgOyhLCnhntsdcE+6AL52hYhCUS24HCRP2g3ZUqvyqjCqRsG203j HGf+r9bTTSDrG2d+q1mri56xp/Lp4eoEU9JQXtqRZeT5zap7fUdj9sdhmrM1ZcXHoC6P kDEGXhnsOE/CYujTTqulEJYPVaSBb8WLlDvH/RR+l1qI8yQcs/yJ/bzQoq46CohKte/Y Miqe/ll4Mi3s+BMCfsQpmcdolCfW3qdDuUqoo2YjT9v4X5MQS+sTJDeL5KWSBkl3WDnh jt+b2UCO9u9ZQF0d0IWFQN68Vi4EvchoPJjFVP8ylhScSE9fhIBprkhVc3sN9BP0tTFp BpEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ADsnaA1e5QCVFIIsD27CnMhPjyJXhDsZQgJf8uXceAo=; b=DOkwUJ+GNXrNniYynvYsXppe2Py7QfuGU/IbfAJwpzOzTOJ3EEbEDZX5RkgTuH3TdX uV88cITdllJzisW3bRTxGviNyCOFgOy5SvfQYapU8tgCcnmykmpQhwi2wnSsZelM7Clc s1UeTFvNxJ+AKxffvQDNfKxFc+UJIfXEo2eBV4moBcwBuY55oOdG+Bvt8NW4uPuQRBWj 6yEPjZYP+sKDOCL78N0+vubrNUG/f6vqCOCnTSci/r5wXC5uWTJ7wgG3rc20delJTxD1 7glRN/b8ihA12gqKxLCcG14PFOmxp7bfa6j9lxnSmh7hfR6ESrXdobLNn05hEVUlBkGJ gY9g== X-Gm-Message-State: AG10YOTyQ1E6uywqMPFNYoXkCFtJ39m14WIQUfO4P4CkxwgU+KFlt5Se7Nxn7RataGtiLA== X-Received: by 10.66.218.73 with SMTP id pe9mr9981721pac.91.1454584778664; Thu, 04 Feb 2016 03:19:38 -0800 (PST) Received: from [192.168.204.32] (vpn.promise.com.tw. [61.222.81.253]) by smtp.googlemail.com with ESMTPSA id xm10sm16468091pab.12.2016.02.04.03.19.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Feb 2016 03:19:37 -0800 (PST) Message-ID: <56B333BB.6040603@gmail.com> Date: Thu, 04 Feb 2016 19:19:23 +0800 From: Charles Chiou User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Johannes Thumshirn CC: Christoph Hellwig , JBottomley@parallels.com, Oliver Neukum , grace.chang@tw.promise.com, linus.chen@tw.promise.com, victor.p@promise.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [Resend PATCH 1/3] scsi:stex.c Support to Pegasus series. References: <55E83D39.4030107@gmail.com> <56AB4B4C.4050405@gmail.com> In-Reply-To: <56AB4B4C.4050405@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 From 9d7973dfa05a7785d0eb1e9bcfb0fb6d2c493209 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 2 Sep 2015 20:41:56 +0800 Subject: [PATCH 1/3] scsi:stex.c Support to Pegasus series. Pegasus is a high performace hardware RAID solution designed to unleash the raw power of Thunderbolt technology. 1. Add code to distinct SuperTrack and Pegasus series by sub device ID. It should support backward compatibility. 2. Change the driver version. V2: Remove blank lines Signed-off-by: Charles Chiou Reviewed-by: Johannes Thumshirn --- drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) if (hba->cardtype == st_yel) sts_offset += (ci->sts_count+1) * sizeof(u32); -- 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/stex.c b/drivers/scsi/stex.c index 98a62bc..0c93f1f 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c @@ -1,7 +1,7 @@ /* * SuperTrak EX Series Storage Controller driver for Linux * - * Copyright (C) 2005-2009 Promise Technology Inc. + * Copyright (C) 2005-2015 Promise Technology Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -37,11 +37,11 @@ #include #define DRV_NAME "stex" -#define ST_DRIVER_VERSION "4.6.0000.4" -#define ST_VER_MAJOR 4 -#define ST_VER_MINOR 6 -#define ST_OEM 0 -#define ST_BUILD_VER 4 +#define ST_DRIVER_VERSION "5.00.0000.01" +#define ST_VER_MAJOR 5 +#define ST_VER_MINOR 00 +#define ST_OEM 0000 +#define ST_BUILD_VER 01 enum { /* MU register offset */ @@ -327,6 +327,7 @@ struct st_hba { u16 rq_count; u16 rq_size; u16 sts_count; + u8 supports_pm; }; struct st_card_info { @@ -1568,6 +1569,25 @@ static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id) hba->cardtype = (unsigned int) id->driver_data; ci = &stex_card_info[hba->cardtype]; + switch (id->subdevice) { + case 0x4221: + case 0x4222: + case 0x4223: + case 0x4224: + case 0x4225: + case 0x4226: + case 0x4227: + case 0x4261: + case 0x4262: + case 0x4263: + case 0x4264: + case 0x4265: + break; + default: + if (hba->cardtype == st_yel) + hba->supports_pm = 1; + } + sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;