From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AE9C1AC8AE for ; Mon, 14 Oct 2024 18:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728929774; cv=none; b=Zh8oa8oId4bFLnfk9TtQSkaU85kQw9f5j8G4XO7homp++VE5+TLGWkO948Gol+Fhf3hv0nrwqnPU1/NHOCSjcfTVl9jugdQfTb7TvzKypfc4h9Rv7bYBMkz74bECyhybzUI4Dvf44Ay4JYbLVZm3EgBdS0OwzfHA83yWkK5j4xM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728929774; c=relaxed/simple; bh=LNSqYzxmmz9OD/0UUcyOFn6AeN1Z072goWVOC0q2yrU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sjmEWE7MPG0fgTCApvVTvk2Q9b86o8+m0qkMZ82T9sX+oUt87CLKp7wgE1X5jplX/oaWr56cQqVxD/51FqbgP6Zw3eZHmllqZqUtk/CPBHy9f4yDJ1nPPacERbow6EUb8yWgjMVA6JfXy3aJR1XhSqktqej8zObPfoT+Jzva2KQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iq/e39Ho; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iq/e39Ho" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-37d4d1b48f3so2869786f8f.1 for ; Mon, 14 Oct 2024 11:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728929771; x=1729534571; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UtdPkrYN7fe8w5mEL3LeVayblW7M45DrbmZRpipI97s=; b=iq/e39Ho83LrRJLweE7RmoiKxCReXY6UGTvGrYtrofUdDQoUHE2k87bTo/K11qN6rN QHS3lNmmOLU8cRSkovgIjMcq0fccawkIyu1ZjtmBKd2SK6Ar3/l4j0JB3ruCTyJNuMKg GdNFjTih7u6y5wWQ7JCiANNECKZ5y6hHBLORgSnfvr3h1YM2/KLAHQzqgvGpvetdeySg DQ/e0VAm/uk3pGbb8lbgpoQC9/eg5RPcXPiYhM2nCJgQf7z6dRNJGV5XwDqO2i2EmWIv YahG0RMxnK1NDCbQCtixyS5k2KdA6ardCV/9Fopma4f4wRGaT18U3awUXRjPB+l2L5yr rcMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728929771; x=1729534571; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UtdPkrYN7fe8w5mEL3LeVayblW7M45DrbmZRpipI97s=; b=L25otdKitZ7aUcXY5R1g3jA4l3I2CugHKNGXV8QKqA0453iW7P8g0G9WcOuDkN2aau 0ZPwIj3RidWzTsasoRo5P2oNgNX+GuNCYcqBFhUlsirqxQ0P5ILb6kc+2DvnpbHzLUFj aD5vNuAiZn7XcXluOtIctwR3dblqycwYOKovdIyFCTNc8uiSD9VUxdySnqNPAzc8LDz5 loHyyxPO+jSNd4XDKaMCiZbchHGHWm9JdXxN5hhyZJGcQT0/zq54km25pbbd2EETm57E niPUDtJIw7Nsz7rPlhZJ+ev4Be9XjiYd7KSp5fVd7+00QPXavyC5L3nqg5w8DpXFSxq8 NKbg== X-Forwarded-Encrypted: i=1; AJvYcCWD9Xgva30jhl+Glq/pXejOGy5GFErBYCA2f+9OqdVrkpQJHFTm6UqN4taQyWto1jqwVkf3KqILNa+b@vger.kernel.org X-Gm-Message-State: AOJu0YyVgR8ptfO0DtZ6Vau2wtZoL1SlBVYbLSv0jfPqELQAfhlYcy3U BF9D47pZkpKMtD5z64/AsBEdRTRA62hsAiaAhZvGExWH7Bi3+DmmAz1udd1sRV0= X-Google-Smtp-Source: AGHT+IHIQJqhAsmdVgPSCMWemS66sPfa9EYola/ZvTPYafkvTQqqNnZqlNbzsw8xXyLnNoUxhgl25w== X-Received: by 2002:a5d:4dc6:0:b0:37d:4657:ea78 with SMTP id ffacd0b85a97d-37d5529f8d6mr8858619f8f.54.1728929770899; Mon, 14 Oct 2024 11:16:10 -0700 (PDT) Received: from linaro.org ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d4b7f05bfsm12010610f8f.108.2024.10.14.11.16.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 11:16:10 -0700 (PDT) Date: Mon, 14 Oct 2024 21:16:09 +0300 From: Abel Vesa To: neil.armstrong@linaro.org Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: x1e80100: Force host dr_mode for usb_2 controller Message-ID: References: <20241014-x1e80100-usb2-dwc3-set-dr-mode-host-v1-1-3baab3ad17d8@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 24-10-14 17:48:37, neil.armstrong@linaro.org wrote: > On 14/10/2024 16:14, Abel Vesa wrote: > > The usb_2 controller has only a USB 2.0 PHY connected to it. There is no > > USB 3.x PHY fot it. So since dual-role is not an option, explicitly set > > the dr_mode to host to match the hardware. > > I don't follow, dual role is perfectly possible with USB2 only, where is the limitation ? You're right. USB2 could be OTG. Consider this patch dropped. > > Neil > > > > > Signed-off-by: Abel Vesa > > --- > > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > index 0e6802c1d2d8375987c614ec69c440e2f38d25c6..4da13c8472392d842442193dc740027fa011ee1f 100644 > > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > > @@ -4143,6 +4143,7 @@ usb_2_dwc3: usb@a200000 { > > iommus = <&apps_smmu 0x14e0 0x0>; > > phys = <&usb_2_hsphy>; > > phy-names = "usb2-phy"; > > + dr_mode = "host"; > > maximum-speed = "high-speed"; > > ports { > > > > --- > > base-commit: d61a00525464bfc5fe92c6ad713350988e492b88 > > change-id: 20241014-x1e80100-usb2-dwc3-set-dr-mode-host-35312d1d25b2 > > > > Best regards, > Thanks for reviewing. Abel