Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1017716pxb; Thu, 24 Mar 2022 11:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBb+jUuMg8c7NHMpe15SW3/hjM3ASJbz57oHwDZirQ8gb77KA6eDtbs//zn+XXo9Hw+NGA X-Received: by 2002:a63:174f:0:b0:381:2bb3:2661 with SMTP id 15-20020a63174f000000b003812bb32661mr4858094pgx.197.1648145239703; Thu, 24 Mar 2022 11:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648145239; cv=none; d=google.com; s=arc-20160816; b=FFmyBeRzMshtFngn7mS7bEaMhHQcpp6x5ig0BmeowmXVKPivLj3+ulHuPHxGnqwmNN PvSL+3NB5q/IqFiYc7peqK8joTih7+o9eeDbDTulZb7YNyOs4SU8jgkULoivF52ewvhv 0sYKovAzkMN+avp8xLs8P+TMKak5kd/R8IjhcovNPpNvVY0D1tCH4AP2eBvHV1hiY4Um +tyA1s+O2imi5G/f6KYPBo4cz2XGo/+zXuy39I5NAdUAeIrfG6Tg/M1aVUAC5W9AVB5k fQS5ZMEnZQovJ5uDcj1QKj+yOCU23oYVvax5DkzSJJHCUrYVD7iemB/FR/xxkCzr1QT+ ecyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=q+lj2+eglVzyIZy6D62HSSh9Bqggm9fvG7QeNRbTAEM=; b=0fBkXZOWSMJQ6pFVETt3EFYT0J/T8rB8uDO5NbVAPHuvSNY9qp/oqUfiBbAzShvjYP aJYnwfwAEFKozdnHFguQbJJ39Bfb3lD5smYxHgIrNRZKLOGwQ8NNcIkfi1S+4weNjOtR i0OgjstEVinhTcs4U5lQcTSigOYdS9V+/p1TbxPheKFuRINc/kTj/enZ8LSAaLNHo05K FqA6MyfozUNeY7OoRMVhrjZc9DemKFPY/aKfsfTKS/aiajEipdUgCK51nWjYynCYAy8o 3XxPICUkw4WszBDAazf0OPW91IU/N3fhB3/+TZUDNKhbtXxxyaBokiD16OHsd1PUSBqj ICRA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a656aa1000000b003816043ef58si35519pgu.333.2022.03.24.11.06.56; Thu, 24 Mar 2022 11:07:19 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239471AbiCVRSc (ORCPT + 99 others); Tue, 22 Mar 2022 13:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239470AbiCVRSa (ORCPT ); Tue, 22 Mar 2022 13:18:30 -0400 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709B58B6E6; Tue, 22 Mar 2022 10:17:02 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id r13so37669101ejd.5; Tue, 22 Mar 2022 10:17:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=q+lj2+eglVzyIZy6D62HSSh9Bqggm9fvG7QeNRbTAEM=; b=OcUZNDcj4OBqxpR7NyMW0Yi3zC0s7+/LMFp/BViteljdQtWyw9p/AqQHdqqPTVf9DA UgntSQaDqbBSsYvxb8jCDCqXY29/8RuchQwDdJBHZ1IJra02riKX6M8F2WomHVjkxFpB 07VPOwk+bVEmeBvhJ8O0IjMvyHEuEmz/hcj0Oywy7ZQGNBPu7D4T6v3ZzmHyL18Nf6a8 s6Cb1G0wR8z4dmRxDLFDSc1JARa+95yZ/mEivt0UT2BwEAO0chfniRY5iVWmu3o0Hsj7 FSB1VRoXx6t9wrimoTNotZcff9yyP9sQmL9IL9Ot+z4MJ0YtsAUePENeoOJn3I7TTdm4 Mlew== X-Gm-Message-State: AOAM532qLXQOioQQ9Qb4rDzsl++gVxk8pLikLpBsY+dL5KcSs6SJs7F9 b9arXkdloTZGEg3HX9F7yX8= X-Received: by 2002:a17:907:3d87:b0:6e0:bef:c3cb with SMTP id he7-20020a1709073d8700b006e00befc3cbmr10925458ejc.503.1647969420820; Tue, 22 Mar 2022 10:17:00 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.googlemail.com with ESMTPSA id g9-20020aa7c849000000b00412fc6bf26dsm10246688edt.80.2022.03.22.10.16.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Mar 2022 10:17:00 -0700 (PDT) Message-ID: Date: Tue, 22 Mar 2022 18:16:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 4/4] usb: host: add xhci-exynos driver Content-Language: en-US To: Daehwan Jung , Mathias Nyman , Greg Kroah-Hartman Cc: "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , sc.suh@samsung.com References: <1647853194-62147-1-git-send-email-dh10.jung@samsung.com> <1647853194-62147-5-git-send-email-dh10.jung@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <1647853194-62147-5-git-send-email-dh10.jung@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On 21/03/2022 09:59, Daehwan Jung wrote: > This driver supports USB Audio offload with Co-processor. > It only cares DCBAA, Device Context, Transfer Ring, Event Ring, and ERST. > They are allocated on specific address with xhci hooks. > Co-processor could use them directly without xhci driver after then. > > Signed-off-by: Daehwan Jung > --- > drivers/usb/host/Kconfig | 9 + > drivers/usb/host/Makefile | 1 + > drivers/usb/host/xhci-exynos.c | 982 +++++++++++++++++++++++++++++++++ > drivers/usb/host/xhci-exynos.h | 63 +++ > 4 files changed, 1055 insertions(+) > create mode 100644 drivers/usb/host/xhci-exynos.c > create mode 100644 drivers/usb/host/xhci-exynos.h > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 57ca5f97a3dc..850e6b71fac5 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -783,3 +783,12 @@ config USB_XEN_HCD > by the Xen host (usually Dom0). > Only needed if the kernel is running in a Xen guest and generic > access to a USB device is needed. > + > +config USB_XHCI_EXYNOS > + tristate "XHCI support for Samsung Exynos SoC Series" > + depends on ARCH_EXYNOS || COMPILE_TEST > + help > + Enable support for the Samsung Exynos SOC's on-chip XHCI > + controller. > + > + If unsure, say N. > diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile > index 2948983618fb..300f22b6eb1b 100644 > --- a/drivers/usb/host/Makefile > +++ b/drivers/usb/host/Makefile > @@ -86,3 +86,4 @@ obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o > obj-$(CONFIG_USB_FOTG210_HCD) += fotg210-hcd.o > obj-$(CONFIG_USB_MAX3421_HCD) += max3421-hcd.o > obj-$(CONFIG_USB_XEN_HCD) += xen-hcd.o > +obj-$(CONFIG_USB_XHCI_EXYNOS) += xhci-exynos.o > diff --git a/drivers/usb/host/xhci-exynos.c b/drivers/usb/host/xhci-exynos.c > new file mode 100644 > index 000000000000..19ee21f1d024 > --- /dev/null > +++ b/drivers/usb/host/xhci-exynos.c > @@ -0,0 +1,982 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * xhci-exynos.c - xHCI host controller driver platform Bus Glue for Exynos. > + * > + * Copyright (C) 2022 Samsung Electronics Incorporated - http://www.samsung.com > + * Author: Daehwan Jung > + * > + * A lot of code borrowed from the Linux xHCI driver. > + */ > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include "xhci.h" > +#include "xhci-plat.h" > +#include "xhci-mvebu.h" > +#include "xhci-rcar.h" Could you explain why do you need RCAR and Marvell code in Exynos? Is it even a real driver here? On what platforms this can be tested? Where are the bindings? (...) > +static const struct of_device_id usb_xhci_of_match[] = { > + { > + .compatible = "generic-xhci", > + }, { > + .compatible = "xhci-platform", > + }, > + {}, > +}; > +MODULE_DEVICE_TABLE(of, usb_xhci_of_match); > +#endif No, this not generic-xhci but Exynos driver. This does not make any sense. Best regards, Krzysztof