Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7172809ybi; Wed, 5 Jun 2019 12:31:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcVicUiNEyJ77bW7jdGU1FS69kG0DC1VfpVqik6aCBEg/qyfgvIoYr0au3n6kpwTE3dvBD X-Received: by 2002:a65:51c7:: with SMTP id i7mr427521pgq.211.1559763081969; Wed, 05 Jun 2019 12:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559763081; cv=none; d=google.com; s=arc-20160816; b=01b2UG1UogVbvu1rqNnJseFCS6Wnjm40JXcCATHP4V2nSeqheuawuNMcBXVi8akEWN bGlLUBrv/caapCp4VsAlmNkYVWrVnM5uOvoi2Y29KUpVpJEZG3cgy8w2faQ9OEGWNMfv 9s+e46ftA/tR5jMT/YNj+6/Rls4kskquDXlg86/JqztEctWXZcU1xAqlLSD3EHYH8Wnj N3NxF+l4nlcaaoQd6lXcHS6uUfXH43kJiM1J6fNGymdsMMjyOxZyOmi+SeOGUeiLXLlT c3nTzT70u8Jtf1Ad3aVwAabR75O2elseWKHqoVU+KH3D/Y4VUAbpx5E6RmjbdhMPtvoY Qx1A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D5NcDW+/WmQwqSB+Xi8h1sKYPuuI5ApOFt3kq9BvkTE=; b=S0uE3VeGinzC9/Rc8yEjg0hg9NIIJCsMkQWCDc1dOxwfnLKO5NBjuezb03vGhGix85 cA4XBXqiS2QuH5HLIL5DFoo5AtMKF8RoE3DWjLqn57NmU9SqRwFWm28iabZpeGNqqUTB pkEL+GRPM0xfw/vIh7DpXRSpDmy8eBca7AJ7lCG80/V5CaoFwtJCyBUkC+PSUWEEXcuq NmN6SSYT3pA8CIjd0KLn/c/g3kudKS2W4GTbS+VIJVUxtlP6gC+gnR/VWbCpy575QF6D HiMPCVP22LPOTLS6tK+qGrTZOA8KmLYbjFJ4TIQOV1xNsxthsK+v+RcRSf0cZg4Zz8dm ahFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4jgD3qb; 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 bf4si3211429plb.286.2019.06.05.12.31.04; Wed, 05 Jun 2019 12:31:21 -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=U4jgD3qb; 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 S1726688AbfFET3b (ORCPT + 99 others); Wed, 5 Jun 2019 15:29:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38255 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfFET3b (ORCPT ); Wed, 5 Jun 2019 15:29:31 -0400 Received: by mail-wm1-f66.google.com with SMTP id t5so30462wmh.3 for ; Wed, 05 Jun 2019 12:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=D5NcDW+/WmQwqSB+Xi8h1sKYPuuI5ApOFt3kq9BvkTE=; b=U4jgD3qb1TiWPeo0I0EQj9YVlGjsjBiUgv3hdUmrYuJZrUIMq1nNLAiutPQCj8EtAU YcN2wBjP/xTv7tUdThX93VYX+jHZw5o551/dyZ5nHxveozxZb7mV7AnbhOP3Xm1aNcgb zWPwwh4cUFyxAGVJHFgITDfzSo0Fijs3mzurFbu3Dxh9EE16inWaZaO31svsntXTWO+E rfQ2q3CIc3i7jCGmbbwjZpRhYeLhJK8BD9iADSXBK+n0GDyNWmK+SIK+418dbmYGmH2y bIn0iv+CbWqXWwlNmyM/unKrXJcIfcEAv7F48JcipbDFhbKp/iNFt0eUPUWKtO7DjtrJ Jocw== 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:content-transfer-encoding :in-reply-to:user-agent; bh=D5NcDW+/WmQwqSB+Xi8h1sKYPuuI5ApOFt3kq9BvkTE=; b=AHkoZLCidDRsKK0oi5UB0fN6q5yV258qx7CSwjNLa32xTpHg7nfbCt4FvKhPGgaVpS Gq1USuDaDbvCWHPviz+UG7r+vfrGWY0f/0oeLfTb4a1UmZmMFcC588HRIHRY0Kv7izcz fsoW0jD+Lb5T7xTC59tlc7X65Q/4LH08m8KbjfiRzvEVK1bOg8FzBkI20s+pJA76a/Dv dErANPlfGoBwF2dZBzQGhj+cFc6xnH0DqC7qVK1NR6sARe6WRJknJUiNR2IeOOmOOOSH NXzFXSXNtHDNRfi/cfJj1HI5DR8131tA5g9hRU97ks7vUeVKJ2A4GDUaPYZQF75kyzrK WXwA== X-Gm-Message-State: APjAAAXuoysUhE+GjGIx0ocDvBHpGNS3Ycubrb72HyWqcB5G59Z21Juz ce55J4IaH9cz4lMluuTvrW2yaQ== X-Received: by 2002:a1c:ca06:: with SMTP id a6mr23888475wmg.48.1559762968778; Wed, 05 Jun 2019 12:29:28 -0700 (PDT) Received: from dell ([2.31.167.229]) by smtp.gmail.com with ESMTPSA id w185sm20968659wma.39.2019.06.05.12.29.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 12:29:28 -0700 (PDT) Date: Wed, 5 Jun 2019 20:29:26 +0100 From: Lee Jones To: Bjorn Andersson Cc: alokc@codeaurora.org, kramasub@codeaurora.org, andy.gross@linaro.org, david.brown@linaro.org, wsa+renesas@sang-engineering.com, linus.walleij@linaro.org, balbi@kernel.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jlhugo@gmail.com, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 7/8] usb: dwc3: qcom: Start USB in 'host mode' on the SDM845 Message-ID: <20190605192926.GW4797@dell> References: <20190604104455.8877-1-lee.jones@linaro.org> <20190604104455.8877-7-lee.jones@linaro.org> <20190605070029.GN22737@tuxbook-pro> <20190605083454.GO4797@dell> <20190605191453.GJ4814@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190605191453.GJ4814@minitux> 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 Wed, 05 Jun 2019, Bjorn Andersson wrote: > On Wed 05 Jun 01:34 PDT 2019, Lee Jones wrote: > > > On Wed, 05 Jun 2019, Bjorn Andersson wrote: > > > > > On Tue 04 Jun 03:44 PDT 2019, Lee Jones wrote: > > > > > > > When booting with Device Tree, the current default boot configuration > > > > table option, the request to boot via 'host mode' comes from the > > > > "dr_mode" property. > > > > > > This has been the default on the MTP, but this is changing as this is > > > causing issues when connected downstream from a hub (the typical > > > development case for the primary USB port of a phone like device) and > > > more importantly we don't have support for the PMIC blocks that control > > > VBUS. > > > > My point is not about which mode is currently chosen. It's more about > > the capability of choosing which mode is appropriate for a given > > system via DT. > > > > > Once these issues are resolved the dr_mode would be "otg". > > > > OTG doesn't work on this H/W, so we need to specify "host" mode. > > My objection is that when you say "this H/W" you mean a particular > product, but you're making this decision for all SDM845 based products > using ACPI. > > I don't know if there is a Windows phone based on SDM845, but if there > is then I don't think forcing it to host would be correct. You mean if someone wanted to boot Linux on a Windows phone? Not sure how likely that is, but even if a) there is an SDM845 based Windows phone and b) someone is crazy enough to run Linux on it, it should be trivial for them to conduct some device matching and choose a different property based on the result. [...] > > > And this driver is used on a range of different Qualcomm platforms, so I > > > don't think this is SDM845 specific. > > > > ACPI based platforms? > > > > All the ones I've seen use the XHCI USB driver directly ("PNP0D10"). > > MSM8998 (835) has the same controller, so this should affect those > laptops as well. This would also be the correct configuration for them too. OTG doesn't make much sense for a laptop form factor. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog