Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp640979ybf; Wed, 26 Feb 2020 20:12:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzZo2zJBsh09LT18bK2FZ4ddKVCvhjNwBltIAAMW8LimR0EMdzWQiEL44HOqrzjf457i+TP X-Received: by 2002:a05:6830:98:: with SMTP id a24mr1684651oto.115.1582776726387; Wed, 26 Feb 2020 20:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582776726; cv=none; d=google.com; s=arc-20160816; b=ogtQ0PTuie9qiYXhKQk1pmR349gysDqRS7aeKx9o9XGHqFfq42ckHOWcppd8wXxvbC xe+wGnyK+xfl6rShmdf2YZh5fQf+rlfIoo56n1uaYx3NPXzH2hhRJUfC3rkMtmfuBTm1 ehM878LXFcPGk7BaH61lBYx1JwJe/bTDer2w2u+vW1nDOsqOZ8T4EnTILyH4K/kc7oYJ aEjV1rD+auuwJZGqKhY4qYgpw24EY+d7liZO92H3kMMdRZJ3SmBbD6MkjThSV5/Vvq8R azAOPP+UexMXKj54E20yt6UspQsO3r7lmupaD657r7KvzqW/oqQdKiqEPUSBuDnHZaky yZRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id; bh=cuqdtmpBhAnch57CifM8Z9N93s/VcJe4j2hZAxrKOsA=; b=lw5Wx7zMkw/QcD39L6uWfoQLjtijeSIwCDzlFN+xQM/C+dzjPmeW/JI+m1Lfc8HB6a jVQrxeLnv8lWFG4aXzOFNmrPFNqqfNh3oN0pVdhuYyfXfyIrky4PCyvfIXvqR04yGZRP yuv0VJksGCsao0gUtvt+c8JNKdpkOHn9KFrV+m2ppKOE1ZcRumnST9oiQ5yuUH2DONr9 p3opuhWr8TkTQGDwGKmFfGKiCMZuwXiNoj28Cta62O3jGgZGzM2Gyvjj15yZvb/qhuAl /nMlqE2TBKi6qDZXKbcUgp5IIP7ZellA7WAa37Dw7OK9B7wSRH+jyATryk3RS/rXKJ7a tuQw== ARC-Authentication-Results: i=1; mx.google.com; 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 p200si126132oic.213.2020.02.26.20.11.55; Wed, 26 Feb 2020 20:12:06 -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; 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 S1728354AbgB0EKi (ORCPT + 99 others); Wed, 26 Feb 2020 23:10:38 -0500 Received: from kernel.crashing.org ([76.164.61.194]:36582 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727735AbgB0EKh (ORCPT ); Wed, 26 Feb 2020 23:10:37 -0500 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 01R49rsH022471 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 26 Feb 2020 22:09:56 -0600 Message-ID: <2f424decb5fc2e4bc945682e0839aa2f2d2e14ee.camel@kernel.crashing.org> Subject: Re: [PATCH v4 3/7] usb: gadget: aspeed: add ast2600 vhub support From: Benjamin Herrenschmidt To: rentao.bupt@gmail.com, Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Date: Thu, 27 Feb 2020 15:09:52 +1100 In-Reply-To: <20200226230346.672-4-rentao.bupt@gmail.com> References: <20200226230346.672-1-rentao.bupt@gmail.com> <20200226230346.672-4-rentao.bupt@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-26 at 15:03 -0800, rentao.bupt@gmail.com 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 Acked-by: Benjamin Herrenschmidt > --- > No Change in v3/v4. > Changes in v2: > - removed "ast_vhub_config" related logic. > > drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 4 ++-- > drivers/usb/gadget/udc/aspeed-vhub/core.c | 3 +++ > 2 files changed, 5 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 f8ab8e012f34..f8d35dd60c34 100644 > --- a/drivers/usb/gadget/udc/aspeed-vhub/core.c > +++ b/drivers/usb/gadget/udc/aspeed-vhub/core.c > @@ -423,6 +423,9 @@ static const struct of_device_id > ast_vhub_dt_ids[] = { > { > .compatible = "aspeed,ast2500-usb-vhub", > }, > + { > + .compatible = "aspeed,ast2600-usb-vhub", > + }, > { } > }; > MODULE_DEVICE_TABLE(of, ast_vhub_dt_ids);