From patchwork Wed Jan 9 12:43:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 10754063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 22AD491E for ; Wed, 9 Jan 2019 12:45:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 121FF27D0E for ; Wed, 9 Jan 2019 12:45:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05E8B27EE2; Wed, 9 Jan 2019 12:45:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FC1627D0E for ; Wed, 9 Jan 2019 12:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730722AbfAIMmu (ORCPT ); Wed, 9 Jan 2019 07:42:50 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:17100 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730249AbfAIMmu (ORCPT ); Wed, 9 Jan 2019 07:42:50 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1E052B75AF1960A9566E; Wed, 9 Jan 2019 20:42:46 +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.408.0; Wed, 9 Jan 2019 20:42:39 +0800 From: John Garry To: , CC: , , , , John Garry Subject: [PATCH] scsi: hisi_sas: Use scsi lld debugfs folder Date: Wed, 9 Jan 2019 20:43:34 +0800 Message-ID: <1547037814-99911-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 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 X-Virus-Scanned: ClamAV using ClamSMTP Since we now have a dedicated folder for scsi llds in the debugfs tree, relocate the root of the driver debugfs folder to that same location. Signed-off-by: John Garry --- This patch depends on https://www.spinics.net/lists/linux-scsi/msg126764.html diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index 6a1a5ad..ce527b7 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #define HISI_SAS_MAX_PHYS 9 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 3d24366..e27a06c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -2985,7 +2985,8 @@ static __init int hisi_sas_init(void) return -ENOMEM; if (hisi_sas_debugfs_enable) - hisi_sas_debugfs_dir = debugfs_create_dir("hisi_sas", NULL); + hisi_sas_debugfs_dir = debugfs_create_dir("hisi_sas", + scsi_debugfs_lld); return 0; }