From patchwork Thu Mar 21 02:53:38 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: 10862889 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 1D97317E0 for ; Thu, 21 Mar 2019 02:55:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2F4229DDB for ; Thu, 21 Mar 2019 02:55:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E74AE29EFE; Thu, 21 Mar 2019 02:55:42 +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,UNPARSEABLE_RELAY 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 92E1529DDB for ; Thu, 21 Mar 2019 02:55:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbfCUCyf (ORCPT ); Wed, 20 Mar 2019 22:54:35 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:8677 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726983AbfCUCye (ORCPT ); Wed, 20 Mar 2019 22:54:34 -0400 X-UUID: 1fb414179a2e4ecaadd9bf2423661ccd-20190321 X-UUID: 1fb414179a2e4ecaadd9bf2423661ccd-20190321 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2069560731; Thu, 21 Mar 2019 10:54:28 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 21 Mar 2019 10:54:26 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 21 Mar 2019 10:54:18 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman , Felipe Balbi , Matthias Brugger CC: Chunfeng Yun , , , , , Subject: [RESEND PATCH 00/11] add debugfs consumers, tracepoints and supports USB Gen2 ISOC Date: Thu, 21 Mar 2019 10:53:38 +0800 Message-ID: <1553136829-14712-1-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In order to help debug, this series add more debugfs consumers, introduce a few initial tracepoints; And support new features introduced by USB3 Gen2 ISOC: 1. TXCSR/RXCSR registers are adjusted to support greater MULT and MAX_PKT 2. QMU format is also improved last, some small problems are fixed. Chunfeng Yun (11): usb: mtu3: check return value of devm_extcon_register_notifier() usb: mtu3: print useful information also for device and host modes usb: mtu3: remove unnecessary local variable @req usb: mtu3: rebuild the code of getting vbus regulator usb: mtu3: fix transfer error of USB3 Gen2 isoc usb: mtu3: rebuild qmu_gpd struct to prepare to support new QMU format usb: mtu3: supports new QMU format usb: mtu3: add debugfs interface files usb: mtu3: move vbus and mode debugfs interfaces into mtu3_debugfs.c usb: mtu3: add tracepoints to help debug usb: mtu3: add a function to switch mailbox state to string drivers/usb/mtu3/Makefile | 11 + drivers/usb/mtu3/mtu3.h | 57 ++- drivers/usb/mtu3/mtu3_core.c | 27 +- drivers/usb/mtu3/mtu3_debug.h | 50 +++ drivers/usb/mtu3/mtu3_debugfs.c | 539 +++++++++++++++++++++++++++++ drivers/usb/mtu3/mtu3_dr.c | 156 ++------- drivers/usb/mtu3/mtu3_dr.h | 4 + drivers/usb/mtu3/mtu3_gadget.c | 20 +- drivers/usb/mtu3/mtu3_gadget_ep0.c | 4 + drivers/usb/mtu3/mtu3_hw_regs.h | 48 ++- drivers/usb/mtu3/mtu3_plat.c | 28 +- drivers/usb/mtu3/mtu3_qmu.c | 118 ++++--- drivers/usb/mtu3/mtu3_qmu.h | 1 + drivers/usb/mtu3/mtu3_trace.c | 23 ++ drivers/usb/mtu3/mtu3_trace.h | 279 +++++++++++++++ 15 files changed, 1146 insertions(+), 219 deletions(-) create mode 100644 drivers/usb/mtu3/mtu3_debug.h create mode 100644 drivers/usb/mtu3/mtu3_debugfs.c create mode 100644 drivers/usb/mtu3/mtu3_trace.c create mode 100644 drivers/usb/mtu3/mtu3_trace.h