From patchwork Wed Mar 7 12:25:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 130876 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5121436lja; Wed, 7 Mar 2018 04:28:09 -0800 (PST) X-Google-Smtp-Source: AG47ELsM7jKKfbYkyKaUa9r3+A0xZS7GYRtaJcQgwaOWHxHsRFmQKOjgaLKKdCci2qkGsSJ0AJCl X-Received: by 2002:a17:902:7f0c:: with SMTP id d12-v6mr12623243plm.350.1520425689415; Wed, 07 Mar 2018 04:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520425689; cv=none; d=google.com; s=arc-20160816; b=N8aNldVwt8jVeJLeZ3QC3hGYEA0/9NzhErW4HjVwmL8kUNFiKjFl1QHBNVjVV49hCV e6hrpkjQotIBQ3LmCuzL/27/zfRh7Uw2BhleKPhyefDdEGVb05NBPYO8myF7Mw1KWhlU fBp4AaBJ6R71qDOtkq8PxgT0MXQObn7xeTilvcFU3YaVe+GeGt9mo6BR/GAAfMpFa8QC 5AXCiHyhU81JVtvEo41zPwKbSbPMjQFOr3AVbfubkNZmSo9pZo6BYOwHAkRY3uxD9PYP E8eHgCcwWsoU741JTrkqgeLU6CkfA6ThAuX7xxxp2UkCyCtZ6RMbUMkLHbduNYBOXO0C tCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=j3Mv+4ov/lYUQDHh51vEA0FGH47aroY/PDTn+DAQqYU=; b=N/CtqLAp56JM/ZLte6RNwDtNRhKAEpQ/V3lNY4JhU1wLnqmG9Pt6pJ6itXhmKiIKC/ ULpdJzDPyS6URq77cusUDTlZT8Bu7OkxuMZYtW1IZXZdN8XT79vDCFqwSTrpZKhveAJL fZXOLydLtlL1yp+VuFBf6xHPgQobt/7C2LARlArrLU37TBKpbuOfsYGfIw6fn8AmMsGe IWj25l8KES7NgvDZRciIkpufL796of/6LSFR7hcNSRgp/ohIvLizj8a3aFECEEmbyI41 jqnBdX09jcj3/VCZmzCCQ3JGXIpK3EQ+QXG8Egcf/beFeXps3m+ONFjrE/WMMP9KxYiw kSFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si12688715plb.777.2018.03.07.04.28.09; Wed, 07 Mar 2018 04:28:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754417AbeCGM1x (ORCPT + 28 others); Wed, 7 Mar 2018 07:27:53 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6172 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751305AbeCGM0B (ORCPT ); Wed, 7 Mar 2018 07:26:01 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1433D2796F6A8; Wed, 7 Mar 2018 20:25:43 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.361.1; Wed, 7 Mar 2018 20:25:33 +0800 From: John Garry To: , , , , CC: , , , , John Garry Subject: [PATCH v4 0/10] hisi_sas: support x6000 board and some misc changes Date: Wed, 7 Mar 2018 20:25:04 +0800 Message-ID: <1520425514-205565-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset primarily adds support for the Huawei x6000 board, which includes hip07 chipset. Unfortunately, due to some board layout differences with our development board, we need to set a PHY-related register differently for optimal signal quality. As such, a signal attenuation property is added to describe the differences in the boards and allow the PHY register to be set appropriately. In addition to this above features, some misc changes are added for: - PHY linkrate sysfs interface - linkrate set function - internal abort timer timeout increase - add module device id tabe for v3 hw - register init setting changes Differences to v3: - address comments from Hannes on patch #8: https://marc.info/?l=linux-scsi&m=152033924615703&w=2 - add patch for module Id table and some register setting for v3 HW. Differences to v2: - rename dt binding property name to "hisilicon,signal-attenuation" Differences to v1: - rename dt binding property name to include "hisi-" prefix Xiang Chen (3): scsi: hisi_sas: remove unused variable hisi_sas_devices.running_req scsi: hisi_sas: Code cleanup and minor bug fixes scsi: hisi_sas: add v3 hw MODULE_DEVICE_TABLE() Xiaofei Tan (7): dt-bindings: scsi: hisi_sas: add an property of signal attenuation scsi: hisi_sas: support the property of signal attenuation for v2 hw scsi: hisi_sas: fix the issue of link rate inconsistency scsi: hisi_sas: fix the issue of setting linkrate register scsi: hisi_sas: increase timer expire of internal abort task scsi: hisi_sas: fix return value of hisi_sas_task_prep() scsi: hisi_sas: modify some register config for hip08 .../devicetree/bindings/scsi/hisilicon-sas.txt | 7 +++ drivers/scsi/hisi_sas/hisi_sas.h | 1 - drivers/scsi/hisi_sas/hisi_sas_main.c | 34 +++++----- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 13 ++-- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 62 ++++++++++++++----- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 72 ++++++++++------------ 6 files changed, 109 insertions(+), 80 deletions(-) -- 1.9.1 Reviewed-by: Rob Herring