From patchwork Fri Dec 8 17:16:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 121197 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp863126qgn; Fri, 8 Dec 2017 08:31:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMa8BDVgFX4B7MNimQTP0PiOZ3bEdH1nUCWq1L/W6XPf1IXlXLJjLvtYRxl5a+hrQ4GfpaAa X-Received: by 10.159.234.75 with SMTP id c11mr32195752plr.422.1512750672247; Fri, 08 Dec 2017 08:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512750672; cv=none; d=google.com; s=arc-20160816; b=D1USlRoxwL1pSYzUAGkQXSp3bI7NZZwicbFuQzP0ooprUH+2NzgUe821UYS+18Ucfn xej1bxd/YSOzAhGBxyMWyaKRifL47Xqrk6JfeE8wXu7guV7QUPhMvXHnCo2KZMEBvQ44 ms4kUMDHMNOyan0NCk1LmI95jntX0HFYl+5I/tDVr5i7SO1tGkq4kuq4DUHTokjMWJ8/ EkSpUdHuY/cjUp9o2cQiTT26IPEcV814zwSVSbT6xMyoYElOUjrjS1GrdJdquhXRg+Pk kq7s+1y3viDysdImqeIT26wrYbleXKysEVHdpk3rC6tjH2QG/2/GveGLLer4fcozAci2 Jo8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=adeLi8k6iw3sUq3AlpdSQizt3XBFUmcRB4nVtLczlmA=; b=bgRlL6cDaIzysxPDTQ0f7KDrePjEWikEGKe+oNBDzIwB8Wkw/l75PbDy6xRaXmWv7k oQuGedrQE8YYcHi9XGF5uuMoxwGiXpGv4lbjiqrI+DdP3ps1JEbHaVXTrUYYGplR7Yvn p87wRm/mWDknqOPUsx9rP2vf/TUqxXOH7CqwVqkJvZiuoeTmy6N3LcUSCmkxwyYmLKJm HVfjnpfn/GAh3rs3qv7sz/DbfENYJzkqTKp9nfYlO2vg5CfwS7PNCt6WN8w3AjmNBsZm D/DQS3PGpeXvTYVAzKWUqr0UUvO94gK9VySv/K/gzpkjJ8WtfFX0CsMYER66OU2hL2UR O/qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-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 o6si2289947pls.300.2017.12.08.08.31.12; Fri, 08 Dec 2017 08:31:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753210AbdLHQbL (ORCPT + 1 other); Fri, 8 Dec 2017 11:31:11 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:36068 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754093AbdLHQbD (ORCPT ); Fri, 8 Dec 2017 11:31:03 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4D6CBB047D2F0; Sat, 9 Dec 2017 00:30:50 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Sat, 9 Dec 2017 00:30:42 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH 18/19] scsi: hisi_sas: re-add the lldd_port_deformed() Date: Sat, 9 Dec 2017 01:16:49 +0800 Message-ID: <1512753410-50924-19-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512753410-50924-1-git-send-email-john.garry@huawei.com> References: <1512753410-50924-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Xiang Chen In function sas_suspend_devices(), it requires callback lldd_port_deformed callback to be implemented if lldd_port_deformed is implemented. So add a stub for lldd_port_deformed. Callback lldd_port_deformed was not required as the port deformation is done elsewhere in the LLDD. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 9bd98e5..ad12237 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1613,6 +1613,10 @@ static void hisi_sas_port_formed(struct asd_sas_phy *sas_phy) hisi_sas_port_notify_formed(sas_phy); } +static void hisi_sas_port_deformed(struct asd_sas_phy *sas_phy) +{ +} + static void hisi_sas_phy_disconnected(struct hisi_sas_phy *phy) { phy->phy_attached = 0; @@ -1703,6 +1707,7 @@ void hisi_sas_kill_tasklets(struct hisi_hba *hisi_hba) .lldd_query_task = hisi_sas_query_task, .lldd_clear_nexus_ha = hisi_sas_clear_nexus_ha, .lldd_port_formed = hisi_sas_port_formed, + .lldd_port_deformed = hisi_sas_port_deformed, }; void hisi_sas_init_mem(struct hisi_hba *hisi_hba)