Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3240597ybv; Sun, 9 Feb 2020 18:50:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxkR5XJTbAh0cRtlomEUT7vVJwHF5ApAHbEpdHvhWE4yVZj4pctdRFFjuIJ0g5I4z0K2NbC X-Received: by 2002:aca:bc0a:: with SMTP id m10mr9533595oif.77.1581303003371; Sun, 09 Feb 2020 18:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581303003; cv=none; d=google.com; s=arc-20160816; b=Xx6uxTxApQqqN0iHias1AhLcFK6BuUdPaZP+9Jv801kK88oUycIxaI8dWK3ZFaD5xn kbgc0Qb6EHDt9JVUecMvfaqKhhJne2hKhIIuOXM/b+vCby0KBJCHy6q4DP1tqQwm3rW6 xAc3XbJsHZHqcTa59LADt0KHYNhZv56fjlzCsAp7n4vSGHdSOTe80Dkbqhm/l07qyDT1 tIkujj90FNcoqXnFEIZffZEJjyM2ncNpPBHar6PEF+JrbczdPtDQ6NNiJjuo6HWP+7B6 F6BLHzawyW8OOfE1cgcRiL8ffiVlRFscxQOprGpR9tHXZCgaQ4Uwu7w7qa+GmnGk5zMI 6xyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KhNOBWw692sW7TLm9JHYqZ1FYMPS0CnqLtLM69UIajg=; b=iiuJ80TpL+7oaRzf/t9Ef/7V/6W51zWmuQ7sb1MmnbtJYhnjeGdenGuYhmgMragw3I HhGTuNbEHmL6vpNHy2Yk9l1uQTc98oIANnO3JCp8aaIFf8WdS8iVaz+rr2XDKugrfG5n FakUEmEJMmqtnL9P4KXJOh34fq3xch0mX+SQUAD4+y3AnCJpZV4LFdjxNM7x4SKjdkYF 7RGWl+GlM21tSfyo9cbY00nHBcFCgm4cQyjSZBOx/Rxn0nbaS+rkWDj/ed2ZgQtSmbKn hpWhl4Ha4dlTk4CWC7y4Xfkl08i/4Cv3gu5p1Wqr0GLcNhNvT/8WzsSjKlPxUB8QygSc YHDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=WOEeBQJ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si3839028otr.18.2020.02.09.18.49.51; Sun, 09 Feb 2020 18:50:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=WOEeBQJ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbgBJCsa (ORCPT + 99 others); Sun, 9 Feb 2020 21:48:30 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:46723 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbgBJCs3 (ORCPT ); Sun, 9 Feb 2020 21:48:29 -0500 Received: by mail-qk1-f194.google.com with SMTP id g195so5108522qke.13; Sun, 09 Feb 2020 18:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KhNOBWw692sW7TLm9JHYqZ1FYMPS0CnqLtLM69UIajg=; b=WOEeBQJ0t4o7kDPXaLRu2aiMGXa9fWpVN/m5JJSOjmwXl7Q2FdrY09xHs+kchDgXNs CkiFINK0K96swqWpkyUXYEeNGIfRuDlGs9agaZPvrJrN/8ArqvluPjUd5mGk8PP/BZde hmwlVX4z4biZzsRlWmJEelEq+bmi9W6kRHULM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KhNOBWw692sW7TLm9JHYqZ1FYMPS0CnqLtLM69UIajg=; b=ZiAF3Z2UNWDFqquXB/OhPkiRoOW9SXDbTsXXUO0tx1UOykm7ZkrkwpD9Qbkebi+y0k rTQuRezTQRb55CcppCINRPn3PHOzWUMCNaR6u4OLq1Qr7BlFRj7Esnq2R45p4nNVkqfL AEy3dx7is17GxY7rIzeaaBrFzaa9hIVztetjZRPulbbKe+tuH5uu9pMylpqcHwU/S59+ wXJTLxe0vVEeD5EJF8EvZsSe1zTDimdJsVDOsDrKhlh0LMmhZ9WzR75UP0kts8YohUmI IVpRU7mtu78i5qeFFAQGlZ+xpJJpILx+DeHc6uDyE8msx3jMGx+Y2u/xthGe2UOoYFnf n+hg== X-Gm-Message-State: APjAAAUQ01enXlY3uqkFlHef2h58zkipR9OpZ/3/pytKlkpgZkchBewB jZbIDX0f86xbEjz9A9JekP616pOTwc4HC53S6P0eq/SG X-Received: by 2002:a37:9dc8:: with SMTP id g191mr8766106qke.171.1581302908581; Sun, 09 Feb 2020 18:48:28 -0800 (PST) MIME-Version: 1.0 References: <20200131222157.20849-1-rentao.bupt@gmail.com> <20200131222157.20849-3-rentao.bupt@gmail.com> In-Reply-To: <20200131222157.20849-3-rentao.bupt@gmail.com> From: Joel Stanley Date: Mon, 10 Feb 2020 02:48:17 +0000 Message-ID: Subject: Re: [PATCH 2/3] usb: gadget: aspeed: add ast2600 vhub support To: Tao Ren Cc: Felipe Balbi , Greg Kroah-Hartman , Andrew Jeffery , Benjamin Herrenschmidt , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, Linux ARM , linux-aspeed , devicetree , Linux Kernel Mailing List , OpenBMC Maillist Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Jan 2020 at 22:22, wrote: > > From: Tao Ren > > Add AST2600 support in aspeed-vhub driver. There are 3 major differences > between AST2500 and AST2600 vhub: > - AST2600 supports 7 downstream ports while AST2500 supports 5. > - AST2600 supports 21 generic endpoints while AST2500 supports 15. > - EP0 data buffer's 8-byte DMA alignment restriction is removed from > AST2600. > > Signed-off-by: Tao Ren > Reviewed-by: Andrew Jeffery Reviewed-by: Joel Stanley > --- > drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 4 ++-- > drivers/usb/gadget/udc/aspeed-vhub/core.c | 9 +++++++++ > 2 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/gadget/udc/aspeed-vhub/Kconfig b/drivers/usb/gadget/udc/aspeed-vhub/Kconfig > index 83ba8a2eb6af..605500b19cf3 100644 > --- a/drivers/usb/gadget/udc/aspeed-vhub/Kconfig > +++ b/drivers/usb/gadget/udc/aspeed-vhub/Kconfig > @@ -4,5 +4,5 @@ config USB_ASPEED_VHUB > depends on ARCH_ASPEED || COMPILE_TEST > depends on USB_LIBCOMPOSITE > help > - USB peripheral controller for the Aspeed AST2500 family > - SoCs supporting the "vHub" functionality and USB2.0 > + USB peripheral controller for the Aspeed AST2400, AST2500 and > + AST2600 family SoCs supporting the "vHub" functionality and USB2.0 > diff --git a/drivers/usb/gadget/udc/aspeed-vhub/core.c b/drivers/usb/gadget/udc/aspeed-vhub/core.c > index 94081cc04113..c827bf420278 100644 > --- a/drivers/usb/gadget/udc/aspeed-vhub/core.c > +++ b/drivers/usb/gadget/udc/aspeed-vhub/core.c > @@ -42,6 +42,11 @@ static const struct ast_vhub_config ast2400_config = { > .max_epns = 15, > }; > > +static const struct ast_vhub_config ast2600_config = { > + .max_ports = 7, > + .max_epns = 21, > +}; > + > static const struct of_device_id ast_vhub_dt_ids[] = { > { > .compatible = "aspeed,ast2400-usb-vhub", > @@ -51,6 +56,10 @@ static const struct of_device_id ast_vhub_dt_ids[] = { > .compatible = "aspeed,ast2500-usb-vhub", > .data = &ast2400_config, > }, > + { > + .compatible = "aspeed,ast2600-usb-vhub", > + .data = &ast2600_config, > + }, > { } > }; > MODULE_DEVICE_TABLE(of, ast_vhub_dt_ids); > -- > 2.17.1 >