Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp300119rdb; Mon, 22 Jan 2024 04:50:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGL8FqAc8L+jO+WTxQT5QH/M8pTmV8fSMM07a8EwWlMnEyTSWPZMdxOMTcH/cvGLh7g+0bp X-Received: by 2002:a05:6e02:1a27:b0:361:a7f7:49c3 with SMTP id g7-20020a056e021a2700b00361a7f749c3mr7189143ile.39.1705927804879; Mon, 22 Jan 2024 04:50:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705927804; cv=pass; d=google.com; s=arc-20160816; b=LNFYNk89QOKRcR8btGEObcZG6Amz0XB59l1/J0yFjCYmW9s++aoNt4WT6Ff5CSJLa4 Ys7gRyq//h4TFuSDNya4urQxu3KgzsohLkPgDyhlhMmKVBgOdS4P0iFDIjXE7zX6w9Ff smvS1S+4stiXx38tm7liHv2vVDCKm/7mvkl50LwopDnOzAan+nCji0OexezrKZWV02A1 BMRLT7XP22tI6HwN50h9nSvUhZf53SWqMZ4kUBFSjLGSAfSjw3QVPc0mF6dcRh4alE+D O5DMpcewTnb6Xi5KJLDxcvUagYhNcHFXeV9RtSWHYnbvyMQYXYnwGyd3Gwgp8tlMDx9b 2VOg== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=SxHCi2GuLqGB59bFq50r0MZWHcYIwjtHICtzKLfAak0=; fh=Jtss31RHWUbe2KWDKr1r2kAwdxn0CfNkLn4zaUUC82E=; b=hPcAPaehVUJ3viY8SLMj4q3byocC+0YEEtNK3cot+bWZVGVKba9UCPQ20hv0CDRCuA qPryEfFofyIqEwSmj8OqCdDfEyad0TY3ZZqI7TGlPzhVJ4zyTyBdc1FIuIM941lMQeDv LTKEyXXgdoi4ajZtPpZSJ/JU8WG1mHtMHNr8ZOkvHvJ4arJHs7bbJnVYeYr1FLdo7+Tu iyhoP54q3QRRw8+RES1Kz7Nyc5dg+Tq7mK2tz/kFkGHPh8KhfgVG+zdohjoL6qJJHQ/J z5rN8ig5QqqIerPhClSSKQpniDi8fcN+qO5vQBO+Dn2t1JPcY9Uwl6OPSkdOQJl3Bcpy iijg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UB8Xm8U4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k65-20020a636f44000000b005c67196cbf5si8098454pgc.330.2024.01.22.04.50.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:50:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33014-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=@linaro.org header.s=google header.b=UB8Xm8U4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 2F5E828FA90 for ; Mon, 22 Jan 2024 12:29:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03E3C3BB22; Mon, 22 Jan 2024 12:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UB8Xm8U4" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 3D06E3BB24 for ; Mon, 22 Jan 2024 12:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705926561; cv=none; b=nAdwuF7t2PeIhM2/e1buOUYdbDqQzoDYdKJ6V7HPaaPsHiEjBt8e7kXIJaDDoNfQF7fmU7xfSK7W8Hc4CP5ezUsQtn5VFX1yKR0MmT0YLMhByu3Po3enier1kLMJ8NE8UAV7uDwVedqkkgKbRYWV1CN2nxmJjz1su6jNom8IIxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705926561; c=relaxed/simple; bh=SxZgIRQrD8QpnF8i8KFIjov6oKyEUrDFXnEsGFUSUzw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e7n9RGMSFFXyRDOlePrSD6ciFloyBL9siuCbIgXN1A2CFImF50hBN7z/IDlCz1GpFVZLkZ9mu8TWwB5oRJHOdg09YCDvp445wX8D3TE6vNygxS4sG+rQqptkb+sgd259bjKLm1hjDUfxsJnuTDdYf6OpiLw2ON/+3wWyB5iSFro= 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=UB8Xm8U4; arc=none smtp.client-ip=209.85.208.54 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 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55a44bb66d3so3345945a12.1 for ; Mon, 22 Jan 2024 04:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705926558; x=1706531358; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=SxHCi2GuLqGB59bFq50r0MZWHcYIwjtHICtzKLfAak0=; b=UB8Xm8U4xSHmGMVK87FUTjRXqpNeZyknFRAMC23l16mt7Pf5FHRDNKc0WbdAeh6ZSN 8I+uwKVh1EDSdhxJneWEV9+21oSpJDEuqqb84pDtJY/M1dUfQa0OZji9mRcHkaLErXer PnAWjup1ALUdZ8seprCGEWGNaFZRQtJLbSCaiWlR9edOHQrFZr4uOd0eOF++ItgWBz5E L7EFlygMakEKRCyUwl9mN3H/MZvscTGke/39IdS31sBfjQIOfzuv9d9zQ8fRqRMumc+a Nct3eq5NyIU3FTDlR3vsOFTe72x4ALTzVkYzbn5FUjV2QBF9WQKFHPIbzMYd4caxTyJn jPSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705926558; x=1706531358; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SxHCi2GuLqGB59bFq50r0MZWHcYIwjtHICtzKLfAak0=; b=vPCthnUBRR0LAlFdIk7W4hEWmoXtZQPEniFPckq3Hi1jh3dWXjdtxD2xsnziLuHQHE A4bp+82eXpDKYC+g17DNZuHPc+KX3UYR7+d/Xn/z1HoC7Z8Whc6tKb3u8MEOQmfAlRyp RImadQ0DFg4ptMJu9OlZkbjb396f8kjAlYalT0opFg4FH7Utk2WQ4gj07okSKku1PIN3 EqD2nJpDSM7NatjMeXjRio/ahIY11OcfyLCQa+YxpDyknoKcmZayqocr2RmcclilV4fF xiwwq/7pgGFG7s69uPkSpoWrC9SVR/Rw/5+nYbomDOjG8kstmnH9szRsQ31LeKVHp8z3 YaAA== X-Gm-Message-State: AOJu0YwEqCgbVyWSNN6l12bG3E87Bbtf1oflBT2zqZ6LKcBGsW8NZRgx CRNamnzrbgfkUvtM+Aq+ZmzBJsQ0enpxreot3OckGYPQAvYuo6tP7b0TzcdkK8Y= X-Received: by 2002:a50:9ead:0:b0:55a:d2b6:ecd8 with SMTP id a42-20020a509ead000000b0055ad2b6ecd8mr1588526edf.14.1705926558360; Mon, 22 Jan 2024 04:29:18 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id g35-20020a056402322300b0055a5ea4462bsm4157514eda.52.2024.01.22.04.29.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jan 2024 04:29:17 -0800 (PST) Message-ID: <34a421e3-b11f-4e61-b894-0b42a1330d8f@linaro.org> Date: Mon, 22 Jan 2024 13:29:14 +0100 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 2/3] ASoC: dt-bindings: xmos,xvf3500: add bindings for XMOS XVF3500 To: Javier Carrasco , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org References: <20240115-feature-xvf3500_driver-v1-0-ed9cfb48bb85@wolfvision.net> <20240115-feature-xvf3500_driver-v1-2-ed9cfb48bb85@wolfvision.net> <333c2986-c7c2-4a46-90cf-b59ae206e55a@linaro.org> <96abddcc-fa65-4f27-84fe-2281fe0fcf1c@wolfvision.net> <644f7f02-405d-47fb-bc72-4d54e897255f@linaro.org> <5db4b898-93d5-446f-bfed-b57847f9967a@wolfvision.net> <435f502c-1e1b-4d40-8dcc-34487905d69c@linaro.org> <47bdc31c-50d2-4d33-9339-5132b6364539@linaro.org> <16027339-0a82-4dd1-86aa-19fda6e23f88@wolfvision.net> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.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/6CBVjEW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gJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/01/2024 08:29, Javier Carrasco wrote: > On 15.01.24 21:43, Krzysztof Kozlowski wrote: >> On 15/01/2024 20:43, Javier Carrasco wrote: >>> On 15.01.24 19:11, Krzysztof Kozlowski wrote: >>>> On 15/01/2024 17:24, Javier Carrasco wrote: >>>>> Do you mean that the XVF3500 should not be represented as a platform >>>>> device and instead it should turn into an USB device represented as a >>>>> node of an USB controller? Something like this (Rockchip SoC): >>>>> >>>>> &usb_host1_xhci { >>>>> ... >>>>> >>>>> xvf3500 { >>>>> ... >>>>> }; >>>>> }; >>>>> >>>>> Did I get you right or is that not the correct representation? Thank you >>>>> again. >>>> >>>> I believe it should be just like onboard hub. I don't understand why >>>> onboard hub was limited to hub, because other USB devices also could be >>>> designed similarly by hardware folks :/ >>>> >>>> And if we talk about Linux drivers, then your current solution does not >>>> support suspend/resume and device unbind. >>>> >>>> Best regards, >>>> Krzysztof >>>> >>> >>> Actually this series is an attempt to get rid of a misuse of the >>> onboard_usb_hub driver by a device that is not a HUB, but requires the >>> platform-part of that driver for the initialization. >> >> That's just naming issue, isn't it? >> >>> >>> What would be the best approach to provide support upstream? Should I >>> turn this driver into a generic USB driver that does what the >>> platform-part of the onboard HUB does? Or are we willing to accept >> >> No, because you did not solve the problems I mentioned. This is neither >> accurate hardware description nor proper Linux driver model handling PM >> and unbind. >> > You mentioned the PM handling twice, but I am not sure what you mean. > The driver provides callbacks for SIMPLE_DEV_PM_OPS, which I tested in > freeze and memory power states with positive results. On the other hand, > I suppose that you insisted for a good reason, so I would be grateful if > you could show me what I am doing wrong. The macro pattern was taken > from other devices under sound/, which also check CONFIG_PM_SLEEP, > but maybe I took a bad example or missed something. You have two Linux devices: USB device and platform device. The platform device controls power of USB device. If platform device goes to some variant of sleep (PRM, system PM) before the USB device, how will USB device react? Will it work? I doubt. You have no ordering / dependencies / device links between these devices thus possible problems. >>> non-HUB devices in the onboard_usb_hub driver even though it supports >>> more operations? >>> >>> I am adding linux-usb to this thread in case someone has other suggestions. >> >> I don't see any difference between this device and onboard hub. The >> concept and the problem is the same. Therefore either treat it as as >> onboard hub or come with USB-version of PCI power sequencing. >> > I have nothing against adding this device to onboard_usb_hub as long as > it is valid upstream, so no conflicts arise with new additions to the > list (which was the trigger for all of this with v6.7). That is I am sorry, but we talk here only about upstream. I don't know therefore what "valid upstream" means. You cannot send a patch which is "not valid upstream". I mean, technically you can, but this would be waste of our time and receive rather annoyed responses. > obviously the most trivial solution and as you said, it is justs a > naming issue because the power sequence is not HUB-specific. I would ack it. Others? No clue, I also do not remember full story behind onboard USB hub and why it was called "hub" instead of "onboard USB device". Best regards, Krzysztof