From patchwork Thu Oct 24 14:08:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 177507 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2247772ill; Thu, 24 Oct 2019 07:12:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa5tG+/GR7fR/iGYDljVRzbDtQJORaZiyNKPjjaQKhFkgjXYEgp+7Ghpl6v1GSReADY78K X-Received: by 2002:aa7:cd43:: with SMTP id v3mr42779587edw.235.1571926322454; Thu, 24 Oct 2019 07:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571926322; cv=none; d=google.com; s=arc-20160816; b=Yft4oCZ6d8TGg97X0YANEyF8TS+j8sG8Iu4ZAGGhy3vfb4+ly7H6VJ8kbb8NubrBW4 9UP9mL/4oZrRjFD7+jxr4zS0fbImQbNCO+2VGPqaAbrjXnHq/T9CeiGLPL+zSgqXC7J/ nriuQlatHF01nA4HlnaOoFbJsKElBDYKlzkVsMXJ/Ud9o3TrOr28qfaXJ1sd1wLTRlOr jhN4NFkoFkaVyRSY6IJMNC0aTkKcfVy44VhPBDnjZdXIgDn8rvdLoIqMLtec0F3LbWcd /fyjrcinkgm64bsny25m4BJ7cghcDcDTtwsSyRHvvohJhA2t/8TM0tCb2mwVih9YSyZL 5P1w== 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; bh=VJJL3xs/6g0bK4RXbpkW4vc2jd+96e5BsQ/l6BLVJG0=; b=ugpqQtmLws5DmEyaB6l7FlIx2d0evURyyRxwkaT/J7qnX9/HWoJ2oLF9bS5wiSUlgw cALb4MJ04mjv6YEQQc8luewQ90gK2yFB3MuP41wqaC7LOnSO3rgi3zBV8PO9xbJJYckG VUJ1GLI9YAzSVjeq5rtbsCr7Tm7kZn+ZsMWKYP0/7GT8NIhrNrESUX3bnSApttFy1Nca wmdXswaHABEtsSR2s/g7Ko7r9aX+aSxJLPqbK7BAJVOM2GxmJtkr2wewNsEmf6Z6piqy U12qoEJw1qpmjr2wi3OgO9CFDlzqoq91j4MOM9AnIKDKcVFACxwGNA15VaHErMjBlHU/ jWlw== 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 ha5si652079ejb.329.2019.10.24.07.12.02 for ; Thu, 24 Oct 2019 07:12:02 -0700 (PDT) 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 S2502706AbfJXOMB (ORCPT ); Thu, 24 Oct 2019 10:12:01 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5157 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389658AbfJXOMA (ORCPT ); Thu, 24 Oct 2019 10:12:00 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 53DB15FF819DE970BAB0; Thu, 24 Oct 2019 22:11:30 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Thu, 24 Oct 2019 22:11:23 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH v2 01/18] scsi: hisi_sas: Don't create debugfs dump folder twice Date: Thu, 24 Oct 2019 22:08:08 +0800 Message-ID: <1571926105-74636-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1571926105-74636-1-git-send-email-john.garry@huawei.com> References: <1571926105-74636-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] 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 Due to a merge error, we attempt to create 2x debugfs dump folders, which fails: [ 861.101914] debugfs: Directory 'dump' with parent '0000:74:02.0' already present! This breaks the dump function. To fix, remove the superfluous attempt to create the folder. Fixes: 7ec7082c57ec ("scsi: hisi_sas: Add hisi_sas_debugfs_alloc() to centralise allocation") Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 --- 1 file changed, 3 deletions(-) -- 2.17.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 1a25f0f15fd0..ceba1016b77f 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -3712,9 +3712,6 @@ static int hisi_sas_debugfs_alloc(struct hisi_hba *hisi_hba) int p, c, d; size_t sz; - hisi_hba->debugfs_dump_dentry = - debugfs_create_dir("dump", hisi_hba->debugfs_dir); - sz = hw->debugfs_reg_array[DEBUGFS_GLOBAL]->count * 4; hisi_hba->debugfs_regs[DEBUGFS_GLOBAL] = devm_kmalloc(dev, sz, GFP_KERNEL);