Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3635814iob; Sat, 7 May 2022 10:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZHRQlXb7K1rTaCduzZSwhxE6GRHEJvVJVeTOUssX+HKNR+CdiPMNzUzL9kFbJZSIOrFCR X-Received: by 2002:a17:906:c10d:b0:6f4:a770:846e with SMTP id do13-20020a170906c10d00b006f4a770846emr8205598ejc.497.1651944214728; Sat, 07 May 2022 10:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651944214; cv=none; d=google.com; s=arc-20160816; b=Rb3Z3G+DWVVNFGWSjIc8Q93H59h2ITvPC/DclU0xvGpgGRm2s9hX6mpml8L48V4yja 5wcO8Jb1CZKLSGF3jfqRWc4vvLFrPZbi/bytxJySnRXbhD/ESmtUNBd3AtYpyz27fInL i97U1Q51Y4tVlYzf3Z0NsyFcVB/YiURLjVu2X/0Hn2FljTwd9nVFhBnIvMO20QJONsPO SutOqLlMykHfzKnalzqs4Qz8NkH7noAyXjLky0wcanpKG1sfYMJ8hU3Pz2+1CHfQ3Ui5 91zNe2SRiMmrOj1KIncyhE1IbiboNES/JqhBENl7C31D5GkpPVeva7wzf041P0gSAf5s +B/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=UoxbgRPuhct4Fhd+B8dwdlXh1yYrD6h+9jGksHt8h7Q=; b=ndGFRkuKsHfEq8WBBvJ9iWKhmfav/DI0aAoMBPEIDr48TLToR+GfmytL6nwWZfRqkx Yk5ZlU9lP0eMSY/Adci6Z/3MNDtBaolpTuqEfeU1hkP1eSY15kSpj8ixoNiIreIzt14m yQSKLRzb7+s2fWrpXo66uFiXeqNaV9BKZabLpKWV6GlESecyqmV0NpK8V8+w5s/VW6Oo l9AqHWRX0LmWy/nTFDdPxESKOtTfEEiP3pRtIjF4/JxpWrpXbu29A4RBSJmJ9KWD9xgu 6vGE0XZWVVAEKMyfOl6B1+ENJysYApwP9btud/VqvJFexwZdSsEcxvVwclWwwFqeqCL+ 5DrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aS97B2Ep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs36-20020a1709072d2400b006f39af9ad2esi9159862ejc.436.2022.05.07.10.23.10; Sat, 07 May 2022 10:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aS97B2Ep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346776AbiEFGhK (ORCPT + 99 others); Fri, 6 May 2022 02:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346705AbiEFGhI (ORCPT ); Fri, 6 May 2022 02:37:08 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C9BC66206 for ; Thu, 5 May 2022 23:33:24 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220506063320epoutp030a407673fad1069641de4bbc5cd10031~scHKDid0B0393303933epoutp03f for ; Fri, 6 May 2022 06:33:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220506063320epoutp030a407673fad1069641de4bbc5cd10031~scHKDid0B0393303933epoutp03f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1651818800; bh=UoxbgRPuhct4Fhd+B8dwdlXh1yYrD6h+9jGksHt8h7Q=; h=From:To:Cc:Subject:Date:References:From; b=aS97B2EpHqW7kEoKwTU2+BsasVflCNHrpQs2jefSuhdHcjZgWnISVtsi3+CSopauv mk2rj/M/sOb7T28w0NDFVN+L+ArwXNPRsD5WoVqXHREbV8JL3NBadPiiK1dpS1h7Nl RtHjQznVO3LP3kwxRazdR62PL/V2C4F8MXGXSZ30= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220506063319epcas2p4305144f9691321ff51ed8191f9608f0f~scHJUZcNL0959509595epcas2p4D; Fri, 6 May 2022 06:33:19 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.92]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Kvgk44LnXz4x9Q2; Fri, 6 May 2022 06:33:16 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id F2.03.09694.C21C4726; Fri, 6 May 2022 15:33:16 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220506063316epcas2p197ed75070ed4f4ba29439f5c0def90b4~scHGEUzQX1116211162epcas2p1X; Fri, 6 May 2022 06:33:16 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220506063316epsmtrp156daa5c81d0585df92d070d0918eeb4d~scHGDXeDn3084030840epsmtrp1g; Fri, 6 May 2022 06:33:16 +0000 (GMT) X-AuditID: b6c32a48-47fff700000025de-5f-6274c12c394a Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.45.11276.B21C4726; Fri, 6 May 2022 15:33:15 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220506063315epsmtip2764ef37fc2119eecc5bae8928032a0c7~scHFyLbbR0424804248epsmtip2b; Fri, 6 May 2022 06:33:15 +0000 (GMT) From: Daehwan Jung To: Felipe Balbi , Greg Kroah-Hartman , Krzysztof Kozlowski , Alim Akhtar , Mathias Nyman , Lukas Bulwahn , Tony Lindgren , Juergen Gross , Arnd Bergmann , Matthias Kaehlcke Cc: linux-kernel@vger.kernel.org (open list), linux-usb@vger.kernel.org (open list:DESIGNWARE USB3 DRD IP DRIVER), linux-arm-kernel@lists.infradead.org (moderated list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES), linux-samsung-soc@vger.kernel.org (open list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES), sc.suh@samsung.com, taehyun.cho@samsung.com, jh0801.jung@samsung.com, eomji.oh@samsung.com, Daehwan Jung Subject: [PATCH v5 0/6] Add xhci-exynos for Exynos SOC Date: Fri, 6 May 2022 15:31:13 +0900 Message-Id: <1651818679-10594-1-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDJsWRmVeSWpSXmKPExsWy7bCmua7OwZIkg8fbFS0ezNvGZvF30jF2 i2NtT9gt7iyYxmRxavlCJovmxevZLObcNLK4+/AHi8Xe11vZLTY9vsZqcXnXHDaLGef3MVks WtbKbNFytJ3FonnTFFaLzxseM1p03b3BaDHpoKjF/iteDsIev39NYvT49nUSi8fshossHjtn 3WX3W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jq AgAA X-CMS-MailID: 20220506063316epcas2p197ed75070ed4f4ba29439f5c0def90b4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220506063316epcas2p197ed75070ed4f4ba29439f5c0def90b4 References: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is for Samsung Exynos xHCI host conroller. It uses xhci platform driver and extends some functions by xhci hooks and overrides. This driver supports USB offload which makes Co-processor to use some memories of xhci. Especially it's useful for USB Audio scenario. Audio stream would get shortcut because Co-processor directly write/read data in xhci memories. It could get speed-up using faster memory like SRAM. That's why this gives vendors flexibilty of memory management. This feature is done with xhci hooks and overrides. It supports USB offload only for first connected device. It follows normal sequence from 2nd device. Changes in v2 : - Fix commit message by adding Signed-off-by in each patch. - Fix conflict on latest. Changes in v3 : - Remove export symbols and xhci hooks which xhci-exynos don't need. - Modify commit message to clarify why it needs to export symbols. - Check compiling of xhci-exynos. Changes in v4 : - Modify commit message to clarify why it needs to export symbols. - Add a function for override of hc driver in xhci-plat. - Make xhci-exynos extending xhci-plat by xhci hooks and overrides. (vendor_init / vendor_cleanup hooks are useful from here v4) - Change the term (USB offload -> xhci-exynos) on subject of patches. Changes in v5 : - Rename subject of cover-letter. - Add code in xhci_alloc_segments_for_uram. - Add code for supporting several devices. - Move adding xhci_address_device to other commit. (usb: host: add some to xhci overrides for xhci-exynos -> usb: host: export symbols for xhci-exynos to use xhci hooks) - Add new commit (usb: dwc3: dwc3-exynos: add host init) Daehwan Jung (6): usb: host: export symbols for xhci-exynos to use xhci hooks usb: host: add xhci hooks for xhci-exynos usb: host: xhci-plat: support override of hc driver usb: host: add some to xhci overrides for xhci-exynos usb: host: add xhci-exynos driver usb: dwc3: dwc3-exynos: add host init drivers/usb/dwc3/dwc3-exynos.c | 100 ++++- drivers/usb/host/Kconfig | 8 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-exynos.c | 775 +++++++++++++++++++++++++++++++++ drivers/usb/host/xhci-hub.c | 7 + drivers/usb/host/xhci-mem.c | 150 ++++++- drivers/usb/host/xhci-plat.c | 50 ++- drivers/usb/host/xhci-plat.h | 9 + drivers/usb/host/xhci-ring.c | 1 + drivers/usb/host/xhci.c | 90 +++- drivers/usb/host/xhci.h | 57 +++ 11 files changed, 1222 insertions(+), 26 deletions(-) create mode 100644 drivers/usb/host/xhci-exynos.c -- 2.31.1