Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp105686ybx; Tue, 29 Oct 2019 15:08:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3g/RZ6y/oUQ/c07dQWPcBDInUf3czN/coDp7Roq47N+UIP52HyvxxzAHYFDBdRDdlE36p X-Received: by 2002:a05:6402:696:: with SMTP id f22mr17104573edy.104.1572386894787; Tue, 29 Oct 2019 15:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572386894; cv=none; d=google.com; s=arc-20160816; b=oIsFn0VoD55Il854Gv6lenqJatLba0dXA5/4d0pcAhW7lbJ9gYQiDye20Xlok9eU/+ S/dgX/s2mKwuYhFJIm+lADJJHYZjyWzcBthv9p8PCNdcM1JxlSrLBUS3yE1TzgOzANIS 3FIm7ZVY+ONJkvaN/tMvB27VjC9blqSyjwjhCwGC9H328Bo0rOxEtJvEB3BA12tRQb/q FqqHA5DjddUVawXZWVmRuh9kaHj6jZDKnUZwAM9f10wZTRs/a7xjtG/kQpTMiB0gWFwZ wdGB/7hpf/umv/0YBVX3+p8VkMnuwgGiumoJHn91r78qw1UaoHxKgRu6O6Rg/vOSL5GO EWDA== 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=F0/jbrX4IDouWf5n0Ojei70Kw+dN6xE0YN1q94WIUzA=; b=SbNZ2ZdeVwS9Ht1AnVX3OX1ZZJuH7VVlaTlBtkb3Fs5eGVrbV/iSbR7AxAI05DhIFv XnUv+dCxSCawH+G7EH92OcgewNsU3bdiwJJ2pj689Ok+p/WFtWpGSDxGuLdTUzNBVi3c eh3Z0liWItTcEO65GnxhDueszwSi+wk5vyA5f8iLXWkO8DCut9sh/ymGJkydDPVt2cZI 83YOien045ygC7lbCgdY1RlJ6Bi8mFOhJTgolWMZxHgnnrZi7/aSjOO7gXRh2xuRcLoA I7MNSXIFxerE6l7VwEdpMM7m17bELgS3dXCvVg4zklfNwZ0qkWfduaViUDpuIn9NglQw 0Prw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lKvQS0hH; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uz29si9478492ejb.68.2019.10.29.15.07.51; Tue, 29 Oct 2019 15:08:14 -0700 (PDT) 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=@linaro.org header.s=google header.b=lKvQS0hH; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731400AbfJ2S0P (ORCPT + 99 others); Tue, 29 Oct 2019 14:26:15 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39444 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731329AbfJ2S0O (ORCPT ); Tue, 29 Oct 2019 14:26:14 -0400 Received: by mail-ot1-f66.google.com with SMTP id t8so4522512otl.6 for ; Tue, 29 Oct 2019 11:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F0/jbrX4IDouWf5n0Ojei70Kw+dN6xE0YN1q94WIUzA=; b=lKvQS0hHD4pj59HlV6oR0/djUnPuGpWekyavljQi7ntMzsbNBbY5kRUKP+N9n4IUtd maRk/snxO5ptQrmheK+AFhcB0qusQUQU9uqxU+S4Dp7WHJe3cw9tF8YosUx3hoRuYI9r nVedD3689ILaB3NAEDt95fwjMDA4JMq+1bEgKiaTqmc7r9enukmH6wTRiyL/ijQEmkDp 0sJWD7FDkSoJ6OaZxsmOw678g00dsavQbZN+uy+jhW6kx0F+GAXZRW8+pIWB/7adGLKJ 5GSo+Xo7uAoDCvHllODyrCQKxRPr0HLhXP4igjRfuz9Xb5Z+Q3BpsxOxg+izWGYDwufy SoAw== 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=F0/jbrX4IDouWf5n0Ojei70Kw+dN6xE0YN1q94WIUzA=; b=twlvrEqS4yKWBICOR4XibBUTPejmnsJihOaVT92Az2cnnytPBjpUXVOLYWQJOEPeGm hWEmqCamUsX/iGYqL1G/5vFkMSvQ6X6gs/Uk6ipp5A0OH7rrsoOXDkp5SdoYN1xZeZ6C N578Hj2BCxdSqjlZshO8vSFPwXcjgm52JmDW+nWvYeCBr87JbRqXb50nSqDh0I3U5qg6 sdKAygC8137fMtkMr0r5YZMDdN9sbiEEh1pnl9HyeQeLEB++2/iHhnYdko8uq1i6bDGr sCY1lQIBpDij2kFPivGSBoy2/ANDL6eYWO3lOHSB5xjjYZGvgdPgX38FmMbAEgH41LW6 5X+w== X-Gm-Message-State: APjAAAXOa9xUbp2Sv2BI1Xit9Ug09HoQhCL90uKpqR9xIRf+BBPHTa2i BAkwGm1fEQYhqFJC9kEHURSoc1ko/3ptSi5NMgVYDw== X-Received: by 2002:a05:6830:ca:: with SMTP id x10mr18348228oto.221.1572373573201; Tue, 29 Oct 2019 11:26:13 -0700 (PDT) MIME-Version: 1.0 References: <20191028215919.83697-1-john.stultz@linaro.org> <20191028215919.83697-9-john.stultz@linaro.org> <87bltzj47a.fsf@gmail.com> In-Reply-To: <87bltzj47a.fsf@gmail.com> From: John Stultz Date: Tue, 29 Oct 2019 11:26:01 -0700 Message-ID: Subject: Re: [PATCH v4 8/9] dt-bindings: usb: generic: Add role-switch-default-host binding To: Felipe Balbi Cc: lkml , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Jack Pham , Linux USB List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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 Tue, Oct 29, 2019 at 2:23 AM Felipe Balbi wrote: > John Stultz writes: > > > Add binding to configure the default role the controller > > assumes is host mode when the usb role is USB_ROLE_NONE. > > ... > > + - role-switch-default-host: boolean, indicating if usb-role-switch is enabled > > + the device default operation mode of controller while > > + usb role is USB_ROLE_NONE is host mode. If this is not > > + set or false, it will be assumed the default is device > > + mode. > > Do we also need a role-switch-default-peripheral? Would it be better to > have a single role-switch-default property which accepts "host" or > "peripheral" arguments? I guess the standard default is peripheral, so this differentiated from that, but I agree it might be more forward thinking to let it specify a type argument in case there is another option in the future. I'll rework this. Thanks again for the review and feedback! -john