Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5559973ybv; Tue, 11 Feb 2020 18:38:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx3e845RFaDxW7Bsi4NyQfZ36N8K64fVC9ToaGtsP3H/1is49UjHcxnTLbcxKPKicnSYzdP X-Received: by 2002:a9d:12a2:: with SMTP id g31mr590049otg.283.1581475111909; Tue, 11 Feb 2020 18:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581475111; cv=none; d=google.com; s=arc-20160816; b=S/OPWmFl3WNfHiLBOfhcy3gcZ3pQJ66/ApNMwgq3ESrdUsM47UPxLTkGn+yroU9xsB 6nT1QroJUAUImb40GE/ziSwjCXWf+JD14tLPf4K5Mn/NaxUHQeZk23LXgZ0cF0B0ShND t/AXXxby6OPq1UVmh9M/gv/sq+ZYOmlzgjY1Y7M55Psp5A9xMZHZT8bhxG1bed1/96d3 5IeJgORPXGYqWdMic1p0JlKl6StmG5vdArvHGNrQVSEKdQcDm3VYNuaUQxu5aTXhPXwK e8dxvOjclqlxqAONpbTbEoZ4D1aGllGkt3wG1F+jldynCKBW8cNG51N8lYMf3qWb4Elb X0Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vv3NHPZnBve5XiluETZotYu+d3bqwg0qJCx+3uhyaM4=; b=i4PY3SOXD3qD19lIGSPTelFXt397KbiqUw4yxYRISBf62v1KdQspVn3MMZGBqrpXh7 g2hYEnJstd4Mj7dotKFpPvAm+31hKPU9GjhwAHdFACi8IgLomuzMf+nVxm9zXN8zCje+ O+lGUycP+RtVKjJvFJ7gsroAfXRcKLS1YtN/V8hRTvfRW8qrr5CmFGgyet6cT50xdZWR kaUdaYwtDlbhoGOT5XSfl5rbBlZZPdnDaxWQQIuJgzznkwFRQ3rQTTJiBoSlSRQSZrNV qo8ZKNNEseL2Mkvlkj3sNVo4WnX69RcWkJQXvnPwJx0FNy6xMbTyM4lS4fFD826h9Vpr ZGag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LqDTnVdw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v23si2679814oto.81.2020.02.11.18.38.18; Tue, 11 Feb 2020 18:38:31 -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=@gmail.com header.s=20161025 header.b=LqDTnVdw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727761AbgBLCh4 (ORCPT + 99 others); Tue, 11 Feb 2020 21:37:56 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:34714 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727584AbgBLCh4 (ORCPT ); Tue, 11 Feb 2020 21:37:56 -0500 Received: by mail-pj1-f66.google.com with SMTP id f2so1358941pjq.1; Tue, 11 Feb 2020 18:37:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vv3NHPZnBve5XiluETZotYu+d3bqwg0qJCx+3uhyaM4=; b=LqDTnVdwykUbgj17vRiSu0wFe6uQuLuoNTYxnt1hV1zA7zQJZ3Bu1dEQt4RI34I1TS Or2/lgMlxpcFQzXW463ugd85BrgR6lgMSKBiGhOmWpfD0H1f7PcEbVJhflRk3lwMfWo3 x6wskEcFMMckElySxG0JLuRGy9KCJ0rFQPawyC295ueBCdHjobHOguzNBOOR7WlBwRaR OY5syFDOcpl+E49w1qaBDG105le2WjLWE+eQ6YJg8AubgePkguj0UTz+MB/RBxroaW0n lx2EFjfL5QjrX69I8wUKWAO2/nYbY5A1X27OhsVEa2/65vOy8MgC2ffxYouJxHKW6a/V 4QZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vv3NHPZnBve5XiluETZotYu+d3bqwg0qJCx+3uhyaM4=; b=pi3XhKiKMuhRhMiKBvNZIWXiz6wOV6ZRzgsw3FWeRcjHsC7MiVi1Ow3Pg6B2g0C2gP bcPwrAPmdR0RI/oFouP6IyhJ/ESsWbmbNeGWqQx0aOCULa/yrQGOTQKBee4ScRQDEmM3 x0+/y+Sv7Dvjt64yhU6EVLnfEf4KefbK+kqvCYd4iflQ37ybWimYl3gPoj3QFnp5v0uh lBq4/uZKweUPN5hbnVInwIYArcVMZoDlbvJKx4q95zkoGwai3cZwiC68qOuKYGVJFPQg 0oFkL1speeP6KNw8ChYN/QMy2ToB17XlSnAXuKkBMMhrorSL3HgQrEQkkN3pOeViryZ/ LKNg== X-Gm-Message-State: APjAAAUKXHd75IvVLU9CRT61H9LeUgIYDnqdsUIBAhz2JIrL2pd2Dpaw nzhUAgtql9LjSoewaDH1ud8= X-Received: by 2002:a17:90a:c388:: with SMTP id h8mr6993554pjt.83.1581475075299; Tue, 11 Feb 2020 18:37:55 -0800 (PST) Received: from taoren-ubuntu-R90MNF91 ([2620:10d:c090:200::80a4]) by smtp.gmail.com with ESMTPSA id d15sm5740978pgn.6.2020.02.11.18.37.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Feb 2020 18:37:54 -0800 (PST) Date: Tue, 11 Feb 2020 18:37:47 -0800 From: Tao Ren To: Benjamin Herrenschmidt 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 Subject: Re: [PATCH 1/3] usb: gadget: aspeed: read vhub config from of_device_id Message-ID: <20200212023746.GA9834@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> <746b08aabf7ea976a382ad2ca30fa10a095e7ed8.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <746b08aabf7ea976a382ad2ca30fa10a095e7ed8.camel@kernel.crashing.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 09:50:42AM +0100, Benjamin Herrenschmidt wrote: > 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. Got it. Thanks for the clarify. Will send out v2 patches after more testing. > > > > > 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 ! Will take care of the change once this patch series is accepted. Cheers, Tao > > Cheers, > Ben. > >