Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp897545lqa; Sun, 28 Apr 2024 09:00:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFCyNgolttVlT6TKFHiQi7+anrrkmAkHbBRvw/CKDf9i5/q9sa1i6hn4DUWGso6TF2VgWlKVXsJIKqeYfmCBT0APZa7SCC1Nqok/qi/w== X-Google-Smtp-Source: AGHT+IGyaXdWt7+7tw5XnF+D0tmQaR3kBt2ulDv8QdgHGMQc/5DyEIz4tFJcwRJDf+jthPb+tXBe X-Received: by 2002:a17:902:a518:b0:1e4:51ab:fffb with SMTP id s24-20020a170902a51800b001e451abfffbmr9837474plq.25.1714320013122; Sun, 28 Apr 2024 09:00:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714320013; cv=pass; d=google.com; s=arc-20160816; b=boxWxPiZUC6QSqwLPiI++GFS96lMN7TstI50AKSYiwx6rb7yCvyn16DCUsUgzS8iCG tsGeiHFW3TPpLn+0F7a5y70mXse61BofHuquHyDCwnCYZIMeuyqoaoXK7W0geahMM7bb ijD3wnjMjiJm1Wz/wRsKPzl9ANLWXtJGChewNPgFAoDf9Jz+5uzGMM/S4JiGZFdFZ2Fb FqaYxwb2oRYccb0dPnogZ4NkKgiffzq/ayHrdEmbPPI9NtOls+h6abfmvwI6L2TDwZHq y0D+bFtl9uqvvSPIf1VAYTIf24ZfjAXqiYJoKFedQbR9qLbn0vK+d17zfnAvj3b310ib 7/Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=M3/T4fVtrLnZ1rsR/JrFtIq0q7pD+nBFJudopbimSZM=; fh=BEuydpw/kXBWMHRRMYowCDegP2afKa4HSEGcVhRAplU=; b=JHbA1oIBdgJUpy6ep8Q8gPn9PZHeOA5gpaw1E3IWSFN0Iwmi0JeYqT55yZtZII7cDh o9TDA2aJrUfxxDNxdp7ERoiz6p3HIGmfktSw57xIskP+MQ0dNQ9PKR/dJJgFQSetLRWz y2fso96Nf1sTbUJJZA6z6VC/RQ/tqk+1Ovj+plRkBI+Fi2w3HUJZhN1WZJnNwWnBGXTa OjFyuzl4D4h+sknHCjH9Nbe/c0zyO9UKRx4R3OuAy2wviMjxg1+PenAxCLcOoJYmmB1w 5cIYK5VNYqXm+bcCJiEzMOKN5Y1FVf1tTHJS5fsIwcVcgvhSG55KSXu9GWYCIA1n31Ja svow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o8f6n0MD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161478-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t10-20020a170902e84a00b001e7e0e0fa76si19360504plg.95.2024.04.28.09.00.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 09:00:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161478-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o8f6n0MD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161478-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 13F63281952 for ; Sun, 28 Apr 2024 16:00:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E1CC6F53D; Sun, 28 Apr 2024 16:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o8f6n0MD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38486138C; Sun, 28 Apr 2024 16:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714320004; cv=none; b=jzLZx/JsHQs544JxO3uRSFQ9gMcKs3moxgWSeRM5TlFnLgvawoorsQXL05V5VpOyeus6MNLLv43+8QcbDdC8k237G8skPHE29BAhwUdm9B1GtI0XJG/muOTdhHd/14Uxh4CT3n44V24ynNhgQrEoYe+BTOgSpj5zAj9ecxbUZ8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714320004; c=relaxed/simple; bh=qZ0Fbfj1vweWLzzSL3bdrgPz202m45WYfRUmedFWYPw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HoOp9cuASFbXiI2qyy1tzTMoDU15jCIHUpCtq4kvYTpUzu8yvykXu6UlqQfTlMv9hetjIo536WfKwnWqQqj2wxoQEvGKuptHPMlUENlOMZGtfhStTJZE1a5t0Wr4r2Uh0JOljmcSocUGGRB/U4WjQU3iKrzrBiukBxj0hLkujGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o8f6n0MD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E29DC113CC; Sun, 28 Apr 2024 15:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714320003; bh=qZ0Fbfj1vweWLzzSL3bdrgPz202m45WYfRUmedFWYPw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=o8f6n0MD1/mOag26J70muvOPH6wBJdaZmNh9iJvxENVSFU5+U1AKlFejHUu+SmBf0 oPfnXjqLoSImXJ9XjfC+N5XMzcCMlcskOw8F4v0A9LAa22fTOr9s3S38SPnuGIx6aY /9fXK/6kuXkGdUbo4faynMRv5/6jBB991XJn+gtBYb02gCHxCE/B/t7g5CXWXDKsQ7 JugizA2qoCnbBdVYEE0bDRG7aNajcmrROa4PD9kb7oceVt/mJfqFRmRi+0TqNt6Qlq T3CXKsAH3WneCXAyxD1EhsjD0fq33ZfXK5ER92naBoTM5slJ/gvTt0z1TO1fWGkq9t UOL6I8zogFVfg== Message-ID: <79127b00-4349-48bd-9023-259c72cc47dd@kernel.org> Date: Sun, 28 Apr 2024 17:59:57 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] enable USB on Pixel 6 (Oriole) To: =?UTF-8?Q?Andr=C3=A9_Draszik?= , Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240423-usb-dts-gs101-v1-0-3421b0371298@linaro.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZ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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 23/04/2024 22:52, André Draszik wrote: > These patches enable USB in peripheral mode on Pixel 6. > > We can only support peripheral mode at this stage, as the MAX77759 TCPCI > controller used on Pixel 6 to do the role selection doesn't have a(n > upstream) Linux driver. Therefore the role is defaulted to peripheral > without any endpoints / ports. > > For the same reason, we can not detect the orientation of a SS USB-C cable > and therefore it will only establish a link in SS mode in one of the > possible orientations of the cable. In all other cases, the link will be HS. > > This series has a dependency on other patches, please see below. > > I have mainly tested this as CDC ECM Ethernet device using the following: > > mount -t configfs configfs /sys/kernel/config/ > modprobe libcomposite > modprobe usb_f_ecm > mkdir /sys/kernel/config/usb_gadget/g3 > cd /sys/kernel/config/usb_gadget/g3 > > echo 0xadad > idVendor > echo 0xddaa > idProduct > mkdir strings/0x409 > echo 01234567 > strings/0x409/serialnumber > echo ADADAD > strings/0x409/manufacturer > cat /proc/device-tree/model > strings/0x409/product > # create the function (name must match a usb_f_ module such as 'acm') > mkdir functions/ecm.usb0 > # stable MAC addresses > echo "6e:27:3a:b9:40:87" > functions/ecm.usb0/dev_addr > echo "ca:49:84:b0:3b:bc" > functions/ecm.usb0/host_addr > > mkdir configs/c.1 > ln -s functions/ecm.usb0 configs/c.1/ > echo $(ls -1 /sys/class/udc/) > UDC > > ifconfig usb0 192.168.1.2 up > > at which point the other side should detect it and network communication > becomes possible (once the other side also configures its network > interface). > > Due to the clock IDs, this series depends on the bindings patch > "dt-bindings: clock: google,gs101-clock: add HSI0 clock management unit" of > the series in > https://lore.kernel.org/r/20240423-hsi0-gs101-v1-0-2c3ddb50c720@linaro.org > This is weird. The patchset applied cleanly without DTS parts from above set, but then failed to build. Obviously, because it depends on DTS, even though it is not explicitly said here... But when I applied DTS from above, these two patches fail to apply, so I really wonder how this was organized in the first place. Please rebase. Best regards, Krzysztof