From patchwork Wed Nov 20 06:43:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunfeng Yun X-Patchwork-Id: 11253245 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C9FCD13A4 for ; Wed, 20 Nov 2019 06:43:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAD4420731 for ; Wed, 20 Nov 2019 06:43:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="GnBW0GXY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbfKTGni (ORCPT ); Wed, 20 Nov 2019 01:43:38 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:38623 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725263AbfKTGni (ORCPT ); Wed, 20 Nov 2019 01:43:38 -0500 X-UUID: 2e485fbe26bd4f209722b36a74f4b267-20191120 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Po3I97gPH5un+YvUqz4HBd2ziZlvEJRiQYNqrIBg6bI=; b=GnBW0GXYrUuKbjd3RTHcMK6R3FbEAwxisI/6RgxDa6zyF8nBDbzC9Mf/3BM7FVVDMqTzuLGcMZ475J3YTcOtxhMG6wVfNnUYqnIoMgyonLxPZ74VgvjdpoliyQA7rt6rSbt8lx6KyYKXYRdBKJD813/jh9qIS36GYAYGqCgIDP0=; X-UUID: 2e485fbe26bd4f209722b36a74f4b267-20191120 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 164379485; Wed, 20 Nov 2019 14:43:19 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Nov 2019 14:43:20 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 20 Nov 2019 14:42:56 +0800 From: Chunfeng Yun To: Felipe Balbi , Greg Kroah-Hartman CC: Cristian Birsan , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Bin Liu , Matthias Brugger , Stephen Boyd , Chunfeng Yun , , , , Subject: [RESEND PATCH v3 1/3] usb: musb: create debugfs directory under usb root Date: Wed, 20 Nov 2019 14:43:01 +0800 Message-ID: <1574232183-5760-1-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-TM-SNTS-SMTP: 01F70002478959B1D1A85763158DDF05B970B212D28ECF207AC1A07659EF2B4C2000:8 X-MTK: N Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Now the USB gadget subsystem can use the USB debugfs root directory, so move musb's directory from the root of the debugfs filesystem into the root of usb Signed-off-by: Chunfeng Yun --- v3: no changes v2: 1. abandon new API usb_debugfs_create_dir(), and use usb_debug_root --- drivers/usb/musb/musb_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c index f42858e2b54c..7b6281ab62ed 100644 --- a/drivers/usb/musb/musb_debugfs.c +++ b/drivers/usb/musb/musb_debugfs.c @@ -325,7 +325,7 @@ void musb_init_debugfs(struct musb *musb) { struct dentry *root; - root = debugfs_create_dir(dev_name(musb->controller), NULL); + root = debugfs_create_dir(dev_name(musb->controller), usb_debug_root); musb->debugfs_root = root; debugfs_create_file("regdump", S_IRUGO, root, musb, &musb_regdump_fops);