Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4678478ybv; Tue, 11 Feb 2020 01:08:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyRVhnjYhi3xJyk7Wi6R1u+kUqC7yE7wo8mqqBG1HUq7UhMpxXoq5sj2W7bTsGBiv08/tme X-Received: by 2002:a05:6808:48e:: with SMTP id z14mr2288915oid.26.1581412137939; Tue, 11 Feb 2020 01:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581412137; cv=none; d=google.com; s=arc-20160816; b=IVloH1jx3TTGqxCdRkQnOmbcolJQL2XY7V4xBo+gFxkdgPxDkm3gg+gfw231v32wPH KeRjNROWuWviFv7yy8HnjaEX90GLXai7F0MK/WTs044nY85h59u6q9XhZQz01eursyz+ g6DfpsnQKXeyo/ykZDzg35HINgNjuN73iw58l25QVcV1dfSb7sjD4s5AM17ABSSiFPz5 QCBUKzoesws+A0SeM5nBLIHjwuxy/uxv2doQ+5m7cvpBeDdNErL2Wr+uwKwZtycosGFF Xg/cbtcLeDhGamBon0Yct+9xkJPJDRYSecTHl4XxNvxRAW3rIOfmgjhjpMwnvTWUejnz ogDQ== 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:cc:to:from:subject:message-id; bh=NGr3rp01URwp+/cNq+P5uNpB0XPGOO0QMS2L0YLOTp4=; b=b0GN3UghI2j10YQ0MlNLKSupSbKbRF78t4+4rFxZcgK8WEG/CPvww/OPyt2MXGtg6T pCKdC1UTYy65eupn0ESaX8dj6hU49S7hsJYfYsROYfzYJHv+K5cMl1GnoRNEzyqYdf1x bv5ll1ZxibazlDZxJtnNs5FbBAXg603zXPBv2iwbrlbLEgFzjwfOs6te2ta/0Q3MGpCp 4Sf6pqpPrRGP4T/SrrvqwSeH2hSAT5UP+Q5Xly3A+zjItY7iohcKcsNKYGhMo+LxZ9bO nfpSEy+/2VpC+raHU+Sm1ta4PUplR3sb7pCuEXKLt9x3XDiEd18vgP2JX2qMQx4qfDiN KFXQ== 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 n7si1620258otk.277.2020.02.11.01.08.46; Tue, 11 Feb 2020 01:08:57 -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 S1727988AbgBKIvi (ORCPT + 99 others); Tue, 11 Feb 2020 03:51:38 -0500 Received: from kernel.crashing.org ([76.164.61.194]:55248 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgBKIvh (ORCPT ); Tue, 11 Feb 2020 03:51: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 01B8oi95016379 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Feb 2020 02:50:46 -0600 Message-ID: <746b08aabf7ea976a382ad2ca30fa10a095e7ed8.camel@kernel.crashing.org> Subject: Re: [PATCH 1/3] usb: gadget: aspeed: read vhub config from of_device_id From: Benjamin Herrenschmidt To: Tao Ren Cc: Joel Stanley , Mark Rutland , Felipe Balbi , linux-aspeed , devicetree , Andrew Jeffery , Greg Kroah-Hartman , OpenBMC Maillist , linux-usb@vger.kernel.org, Linux Kernel Mailing List , Stephen Boyd , Rob Herring , Chunfeng Yun , Colin Ian King , Linux ARM Date: Tue, 11 Feb 2020 09:50:42 +0100 In-Reply-To: <20200210190744.GA5346@taoren-ubuntu-R90MNF91> References: <20200131222157.20849-1-rentao.bupt@gmail.com> <20200131222157.20849-2-rentao.bupt@gmail.com> <386e905fb705266efcac0c1b3a10053889c7fead.camel@kernel.crashing.org> <20200210190744.GA5346@taoren-ubuntu-R90MNF91> 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 Mon, 2020-02-10 at 11:07 -0800, Tao Ren wrote: > > > This looks generally okay. We should wait for Ben's ack before > > > applying. > > > > Shouldn't we instead have DT fields indicating those values ? > > May I ask why we prefer adding dt fields (such as "aspeed,vhub-max-ports" > and "aspeed,vhub-max-endpoints") instead of assigning these values based > on aspeed family? For example, is it to allow users to set a smaller > number of ports/endpoints? It's not a strong drive but it makes it more convenient to add support to newer revisions if the only differences are those numbers. > > > Also we should add a DT representation for the various ID/strings of > > the hub itself so manufacturers can customize them. > > Sure. I will add DT nodes for vendor/product/device IDs/strings. As it's > not directly related to ast2600-support, shall I handle it in a separate > patch? Or I can include the patch in this patch series? Separate. Thanks ! Cheers, Ben.