Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp295340rdb; Mon, 22 Jan 2024 04:39:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IET+lMm59jA5RnpWgSYBTiVZ1KNPlPkHtrKAijszBaz6JxIp0PbclJ92evz3AwN1RLXKsr4 X-Received: by 2002:a05:6a20:3c94:b0:19a:28c3:ee0c with SMTP id b20-20020a056a203c9400b0019a28c3ee0cmr6142122pzj.26.1705927176565; Mon, 22 Jan 2024 04:39:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705927176; cv=pass; d=google.com; s=arc-20160816; b=JzD4jTkfazvjAeODC6ahq/IyCqw/H5HhrqJFdCL+IZou0XGD7gGLfN63EOGPBjfNGs BthqL2TKLPkm6s+6xPCmKc+TcoTiO9Lfde4hPc8UGVcNFFUzVS6CgxkKZofualYkWLxq 3CNmwO27mRtmU3sLGuJd/Y0zng8g1CpNbLHsAb9bZO12uum47eGvBsjJLTPkfaMgag5F dJPvkSsgbOikjWzvicIOccClhzjPoEw81pjCDKPz4LObh+34NvdNjPAmqrLlrRtVTsu0 vwdmyGuo0n6HXfod3zpqhJ208jorjNiCi16UZqmTK18JE0KLlwWoKmdB2/pI346i5CkD 1Xzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=qMTRRXWQCFQ+HDsmVj133R1M7Raw2++cnrvtPOKdrR8=; fh=u/nPMgV3BvZ7eii2oRn/LYD1Ri6YmTksNuiLmgMqAqM=; b=LLbp2E7zHtw/9fimdlSK9V47SUUWHkYYJsYzGEY13qh+sY10oXRQsV88h2dmb8KiZ6 oA7xZn+2DhCWDotFjmofgbzTiZKYA1PnbHv7yD55qpvJ3T66/ZmCYurlf5xl9IA1Ct3Z kPHEo17RGKNyyqHSyrRFSngK93GmTvIoBvbJBbgFSOTQ0L+X8mqkcHZ6Eggdu3bTpjSB o7NHEKsLGa44C5mKfur6BwFefaXsC2yRSNR/ocqdcStRrxdpJFunCODRhZjxIt3dzYSd 9tiUxuDXXeQHnGq0rr0+b4uPR1vHZx2yCCddIo//hHKc5R+gbI91XcXUlWImtaVpDyP4 HAJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=crZf+19Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=crZf+19Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-32979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z10-20020a63e10a000000b005b942de1e92si8271049pgh.443.2024.01.22.04.39.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:39:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=crZf+19Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=crZf+19Z; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-32979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0776EB2316B for ; Mon, 22 Jan 2024 12:01:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E38B3B1AB; Mon, 22 Jan 2024 12:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="crZf+19Z"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="oVwMn2EH"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="crZf+19Z"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="oVwMn2EH" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 1F18B4A32; Mon, 22 Jan 2024 12:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924877; cv=none; b=HYn6Fld/u5VDTOtbXIQSkMxRMXTfcKfuDtzf405/IgjYnYBl8DhVwgcbZ1EXWUKt20bQdJJVS0Fh8d5iR0oevAqhA6YI93OF87LPOcFvINfn5N/p9mTWQPiAfjcvOgGz784VTw/kLz/pKIsZS0OJyX/94oIaYTZJvUHt/D5mADQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705924877; c=relaxed/simple; bh=1VtZtnBWb4cvksXRELD4PkgDoJHhj3TooLPlCa7TUj0=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=t3h2wAKS+hdieVM14OYUY7q5XR0z5RW3YTr11OneibkFMe7Hqz57ohsPjEKqrdF4O6cvtZsciYBLsD5DzyImMkt/7W6kKylr9WDGQ62blXlrhmBf0K1BB9izQ2Fq7pQ6u6Jv90KPh6apMUniAXYh1tQOtd/Rri6kXEZbF25OjIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=crZf+19Z; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=oVwMn2EH; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=crZf+19Z; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=oVwMn2EH; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6E6AD1FBF2; Mon, 22 Jan 2024 12:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705924874; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qMTRRXWQCFQ+HDsmVj133R1M7Raw2++cnrvtPOKdrR8=; b=crZf+19ZMQnOUKvQs5CwJcR8/aITXl8l3kdZm5Ocb1HO8EHROEMb0n5IfUplI7kI9qji3q PFrUwXMN+WZaTzomo1SDMqOnFSnjXElzR4uHHv7WkZz+nT9v1lot03ofsjApAgAotiMn3N pFoLoXqmLwOTzUhRW4acHTNRNNlKvpc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705924874; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qMTRRXWQCFQ+HDsmVj133R1M7Raw2++cnrvtPOKdrR8=; b=oVwMn2EHSXIrGZ/JkxD/yh5MULH4xI9yMHh2MzYg9fACakFIpCnWZxMzDnlh8k8E7PwzXN iMju2STgp4DJ5zDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705924874; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qMTRRXWQCFQ+HDsmVj133R1M7Raw2++cnrvtPOKdrR8=; b=crZf+19ZMQnOUKvQs5CwJcR8/aITXl8l3kdZm5Ocb1HO8EHROEMb0n5IfUplI7kI9qji3q PFrUwXMN+WZaTzomo1SDMqOnFSnjXElzR4uHHv7WkZz+nT9v1lot03ofsjApAgAotiMn3N pFoLoXqmLwOTzUhRW4acHTNRNNlKvpc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705924874; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qMTRRXWQCFQ+HDsmVj133R1M7Raw2++cnrvtPOKdrR8=; b=oVwMn2EHSXIrGZ/JkxD/yh5MULH4xI9yMHh2MzYg9fACakFIpCnWZxMzDnlh8k8E7PwzXN iMju2STgp4DJ5zDg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EF660139A2; Mon, 22 Jan 2024 12:01:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id rwHYOAlZrmWKJQAAD6G6ig (envelope-from ); Mon, 22 Jan 2024 12:01:13 +0000 Date: Mon, 22 Jan 2024 13:01:13 +0100 Message-ID: <87ede9y3ue.wl-tiwai@suse.de> From: Takashi Iwai To: Javier Carrasco Cc: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 2/3] ASoC: dt-bindings: xmos,xvf3500: add bindings for XMOS XVF3500 In-Reply-To: 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> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -1.80 X-Spamd-Result: default: False [-1.80 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-3.00)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; R_RATELIMIT(0.00)[to_ip_from(RL17rwhuxjdu7o3ion8yncd616)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWELVE(0.00)[14]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linaro.org,kernel.org,gmail.com,perex.cz,suse.com,vger.kernel.org]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO On Tue, 16 Jan 2024 08:29:04 +0100, 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. FWIW, the patterns in sound/ are somewhat outdated and need to be refreshed. Nowadays one should use DEFINE_SIMPLE_DEV_PM_OPS() instead (that should work without ifdef). thanks, Takashi