From patchwork Tue Nov 12 06:51:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2h1bmZlbmcgWXVuICjkupHmmKXls7Ap?= X-Patchwork-Id: 11238705 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 410761747 for ; Tue, 12 Nov 2019 06:53:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 237192084F for ; Tue, 12 Nov 2019 06:53:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="n7bSWw+j" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727170AbfKLGwT (ORCPT ); Tue, 12 Nov 2019 01:52:19 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:49926 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727153AbfKLGwS (ORCPT ); Tue, 12 Nov 2019 01:52:18 -0500 X-UUID: 9cccfdb789714e5aa8cf6e1ee71c7849-20191112 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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=gnxxOKKUGp0YnJWpzjgGAuOTcjep8ECSmMlGP4oymes=; b=n7bSWw+jEzrJMkWMZuSylCQmb47OJZLL9da/BtT9FZ764ejIgrchIND+cscrD7sXbNVxtilg/W/iDWCZIZgqE8Mqg0eKqeMwZ7WBz1UnFRNnsJGScZrJNQ6YwwQLmZYTuzVUco69Igo52ivKm18TCWY49TV8xLx35GjYKfj9z58=; X-UUID: 9cccfdb789714e5aa8cf6e1ee71c7849-20191112 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 770414200; Tue, 12 Nov 2019 14:52:13 +0800 Received: from mtkmbs05dr.mediatek.inc (172.21.101.97) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 12 Nov 2019 14:52:11 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05dr.mediatek.inc (172.21.101.97) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 12 Nov 2019 14:52:10 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 12 Nov 2019 14:52:09 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman , Felipe Balbi CC: Laurent Pinchart , "Mauro Carvalho Chehab" , Peter Chen , "Minas Harutyunyan" , Cristian Birsan , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Kevin Cernekee , Florian Fainelli , , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "Bin Liu" , Matthias Brugger , Stephen Boyd , Chunfeng Yun , "Yoshihiro Shimoda" , Colin Ian King , Biju Das , "Fabrizio Castro" , "Gustavo A. R. Silva" , Yangtao Li , , , , , Subject: [PATCH v2 05/13] usb: musb: create debugfs directory under usb root Date: Tue, 12 Nov 2019 14:51:51 +0800 Message-ID: <1573541519-28488-5-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1573541519-28488-1-git-send-email-chunfeng.yun@mediatek.com> References: <1573541519-28488-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-MTK: N X-TM-SNTS-SMTP: C7C71CC8B099F419F9DFA5205328988CBB19CC978E7EFD1B745477620D7290BF2000:8 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 --- 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);