From patchwork Wed Aug 29 16:58:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grigor Tovmasyan X-Patchwork-Id: 10580649 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 573EE175A for ; Wed, 29 Aug 2018 16:58:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45A6A2B591 for ; Wed, 29 Aug 2018 16:58:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39E252B5A6; Wed, 29 Aug 2018 16:58:49 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 A835D2B591 for ; Wed, 29 Aug 2018 16:58:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeH2U4g (ORCPT ); Wed, 29 Aug 2018 16:56:36 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:38402 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbeH2U4g (ORCPT ); Wed, 29 Aug 2018 16:56:36 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 42C6524E05E8; Wed, 29 Aug 2018 09:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1535561927; bh=28VCZgid59kTdU5EcwI9KZqcGdze3JALkBTVSOqUgDc=; h=Date:From:Subject:To:CC:From; b=cUdt3kKFs16AwIBotA9cMP1JmDyEqUDcPb67gRHMfkI4ZIX6Uu5dRHaS9JIRIIhi1 x2bwrQg451eFX4+BWxGAM45Bxadq4YxJCEBUaREUjn58PSABjTnkMw4tUsVgsqhs3r smqau4wOntn5ahdcQIeErpdix0O1XHy0OplvZz8E6o4/t8j84HP4PEO/R4oZ1mo0PR 42T62cDGzSwlCcvdGcLHhMfY8b+k/pbtdOghe69U9VfezizVwGtKbpLYrD9ztoTRxQ 6RweANVSQX1e7xDpM0EKjHN4YlFKh6J4Qy5lTza5Qz3OMksgho7uSl60AQowEYGKl8 FPKlGzrq/8WMA== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 2EDCD3958; Wed, 29 Aug 2018 09:58:47 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (10.12.239.237) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 29 Aug 2018 09:58:47 -0700 Received: from tovmasya (10.13.184.20) by US01WEHTC2.internal.synopsys.com (10.12.239.238) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 29 Aug 2018 09:58:45 -0700 Received: by tovmasya (sSMTP sendmail emulation); Wed, 29 Aug 2018 20:58:40 +0400 Date: Wed, 29 Aug 2018 20:58:40 +0400 Message-ID: From: Grigor Tovmasyan Subject: [PATCH 0/9] usb: dwc2: device: Add service interval support To: Felipe Balbi , Greg Kroah-Hartman , Minas Harutyunyan , CC: John Youn , Grigor Tovmasyan MIME-Version: 1.0 X-Originating-IP: [10.13.184.20] 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 This patch set adds Service Interval support for device mode. When this mode is enabled core is able to send data any u(f) in current service interval. Also in this mode core is able to accept L1 tokens for ISOC IN endpoints. Reference clock was added in the core to track SOF number internally. Because of some inaccuracies of reference clock new interrupt was added to initiate remote wake up and keep sync with the host frame number. The new interrupt register were added GINTSTS2 for that interrupt. Grigor Tovmasyan (9): usb: dwc2: Update registers definitions to support service interval usb: dwc2: Add core parameter for service interval support usb: dwc2: Add dwc2_gadget_dec_frame_num_by_one() function usb: dwc2: Update target (u)frame calculation usb: dwc2: Add definitions for new registers usb: dwc2: gadget: Add parameters for GREFCLK register usb: dwc2: gadget: Program GREFCLK register usb: dwc2: gadget: enable WKUP_ALERT interrupt usb: dwc2: gadget: Add handler for WkupAlert interrupt drivers/usb/dwc2/core.h | 29 +++++++++++++++ drivers/usb/dwc2/debugfs.c | 1 + drivers/usb/dwc2/gadget.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/usb/dwc2/hw.h | 15 ++++++++ drivers/usb/dwc2/params.c | 6 +++ 5 files changed, 142 insertions(+) Acked-by: Minas Harutyunyan