Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp81358rbe; Wed, 28 Feb 2024 12:53:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXnO0U8UvamaWjGm+ZRXUAZyQx3UUTBxdx3KwgHS6S924sA2kb4rj4gCRezEkLgF5Xl2+uUPsQb+/GDABdP7ySWuX3kJD1FxL+zgFzs1w== X-Google-Smtp-Source: AGHT+IG1QK/fE6CCLkrFb5IDUOfUdJpEfpncoXp+Qs9qHc2vQ8sa7xlFUTeaq1BK2VI/FhpH0DGR X-Received: by 2002:a17:902:f7c7:b0:1dc:7890:cb27 with SMTP id h7-20020a170902f7c700b001dc7890cb27mr80797plw.48.1709153592068; Wed, 28 Feb 2024 12:53:12 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x7-20020a170902ec8700b001dc95e444cfsi3897975plg.255.2024.02.28.12.53.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 12:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85696-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=@wolfvision.net header.s=selector2 header.b=F0p7kdLh; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-85696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net 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 E2EB328D8A9 for ; Wed, 28 Feb 2024 20:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A338C8627F; Wed, 28 Feb 2024 20:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="F0p7kdLh" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2098.outbound.protection.outlook.com [40.107.8.98]) (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 667CE8626B; Wed, 28 Feb 2024 20:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.98 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709153430; cv=fail; b=jKsuOtWqhOmulHWQ6rWXdKl7bahtKWBlTm5cGZaJ6soKcrvQKwwvdDg5qJSyVcxLplmOXK/26wKfVlVD/x4t10I+MR+GECDvCVftlnqVxdVRr8VjaJxvIIWFbX+XyyEn5cIVWuPZZEgtHdcmgp49NU2IdKkbdTgbTLXpDrluDKg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709153430; c=relaxed/simple; bh=42m4+NxAJdimrfDyW6xvYTAQYdXJ3XPBVMURPSxeaJY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=rlis7irg+h4HI+geZre+2VXs4vC+M/WUQTEWij/V5vAWl2eyKV/U4Jk7VDX+nmWD3KRs9bPOt4iNkLjtJa0XH7ukwATNqM6gipiyYNJh0w0T2D+SgXLNUqF06UMT/4eIt1vfigJT4V23iw0ue9pbf3R27UC/W4kSFBGRjCLDaf0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=F0p7kdLh; arc=fail smtp.client-ip=40.107.8.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UeDwHf2uWVFNnXvjirmpG5bdqr57wvvWbIAYfHC9ui2UhYTYfSiOFXX0goyodKPyUtpvFEWQBpKXo8loHPMEUfPtmhKnKaj8Wfoit+q74lqrbPBw96zw5FpdfbDqv/bGxeHQq/Gd8cVIsEUlsHLx5wI1uyyIDcAapeBXheESGxMpumGTiH7tiwwgMeYlDnCRvwvE1o3Y/PZ8ECg2W8HgMkYuzFydcDuX2+bCVAEQSJqcmqtpqGboTkBkpniAgl8e8xOZnt1w5yrJ92zm2suvSB+D2Luxw9jnxvrWfxahcj7bSf6WXEBJ4Fk6uzIHQx8506apw/DH9XmHTU4OgFQ2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iOphKdFcjYy4xr0RV7m8P8dE/Wkg+pKiza/ydZMOQl0=; b=Uml6TsSDn0e5/W5gddLPqoprLRZ9NAojz1nF6Pi14YE9F4va8OwHzVBi4uAiRW+2mnOsQhO6FOQCfjiKrsh75MT2r248l4bwaMKYp2J/TyyzgKEG5mY6D1adtAZCrfKXB4adisH4qxgW5ILOIvdMy2vHJhAFPiDrb3RZ7KPEBYNVvXF1/doEujtSX5T+wk61rnm4+/Ct989eLJ6LDRrpD7nuOgzUbWV7dunYJ4uNDxYJ5KMABXcKAitvYj6QNebdYMbDeKQAMv6JbqAkpF+xOC/0ayIRYxSjBvVs+7klsw2A19+BkjRsq25m6ulfOGtydzMbkFp6q7COKBM6Sg3pCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iOphKdFcjYy4xr0RV7m8P8dE/Wkg+pKiza/ydZMOQl0=; b=F0p7kdLhCDKthIlYNQdom/yMT14YXczyHmwCvXnFGGrWq1392fiZ1V0EiINvuVcW0O4pPSMtWRgDaYf2IQYmSXSAyKsniaqvwxjgKl/246/tC/fTUbhpDD+9EIBjHlAawxd93MJogLrR/piRUY9LGxwRxOwOWwsR3WLoaeBm7RQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by AS8PR08MB8327.eurprd08.prod.outlook.com (2603:10a6:20b:56e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Wed, 28 Feb 2024 20:50:25 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 20:50:25 +0000 Message-ID: <63d9be60-40dd-49f6-9a75-72d4be746024@wolfvision.net> Date: Wed, 28 Feb 2024 21:50:22 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 6/8] usb: misc: onboard_dev: add support for non-hub devices To: Matthias Kaehlcke Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org References: <20240228-onboard_xvf3500-v5-0-76b805fd3fe6@wolfvision.net> <20240228-onboard_xvf3500-v5-6-76b805fd3fe6@wolfvision.net> Content-Language: en-US From: Javier Carrasco In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0191.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ab::14) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|AS8PR08MB8327:EE_ X-MS-Office365-Filtering-Correlation-Id: 29efb367-52d7-4e0c-09cf-08dc389ee365 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uMptwcWlB2FEvxED37OAbe+3xOP3+V3tEj/Nh5qD5wOipE+KQCjFVRzzCDK590xx5B7ERoOoeWDU/+BDkJuiOXeLJZ/PJV+Ajy1wQdn5tVRvhNe9lO7gOWbENF2HKiJ82kfIIefgkkuesajlBFN8+m4zaJInTgLOY8X2zhMDeWOfE9Vjn+FAERRaOfn75bGHaof88nnxIU/tyIhLO8vM3ezQYRMS/7Pds3gKPSEfbnbKOngXzxg5S/hVe8YKnMDY+d8oumC0FgIAw5A0Dqyhpc0G07J5bRuY6PziynYGaGZI9b8Td/5aMED367hUUDkTdJqFgTCI1R6EJQu+6OHfsYQhkIPtIBH6OD4baczOIs7kOFXmjCidI9+yywZHVFQSSn3eGfcHWJ4F2z/1tIVgkrXnrw1DlcnXWltv37TqbCx97CAqW1FjVpPeLMN6E35IWE+SUXaY3Mo11YCy517racwWDmEcqBmuGvfPO5Bveaj//H7bnkmSwauCiI0MiDASeUsJzBZL2Fm+hLO3ASt6cQYeJ6Q23cvgaDci4P32aIkL2nCdW4VT0iMqBLkEZHe6UCXom9cwfIn5cdnI5hWDG0jo8/yTcBFweNtrFfatb2rqMmc8FlIAT110HTu1VnwX/NYKcaQlz/Re2HLoan80yQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkJRKzZLT1dVbDJXbHUzaE9jWWdId2Q4UGxVUVd4VXZQMDVKK0p4dC9PL1d1?= =?utf-8?B?OXovVHVzTTdlNXNkblRLTC8reS9BbC9nd0NjYmdjRTZySkp2T0NRRmlhZzNl?= =?utf-8?B?TDQ3WklrTkcxOWJWYW5YendFbC9sejU2RUN3ak03dXE5TWNxY01LZVFUWHhj?= =?utf-8?B?emFOazlrb2o1d2RwWU4xR0I1MjZtd1pIOGdtcmFEMldhZWpLNFFvb2ZlcTBB?= =?utf-8?B?N01JaDBETWE1TkxGMzVyaDYvOTNqWUlMdkdRMmxPRDE0ai95dVdMdUxiYStG?= =?utf-8?B?dThZRVZRR2kzVDVNTmJtNlJaRkZjVGUrVDgwOVNRVTRaMVdMUDkyR096K05X?= =?utf-8?B?NVB4M3dTRjN1NmVpaUdTbmlFUWJVdmJYWmJFc0FnQlNHdS90clBBZjkwdHNl?= =?utf-8?B?N0I1T2tkQkFqVlRPOWZIYjRJL2Y1eXZja2FxTk5rRWhKMFNSTWtmSlp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mjyzm7QoTpHyxU=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 29efb367-52d7-4e0c-09cf-08dc389ee365 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 20:50:25.1884 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dHL8/RrccjDBrErtse3jwVL0bCi6/viXGPez0Gfu/z7gmOcccUfS12q7XYumUxZRwd/Ty8IbVhs2emEcPAkUyggxo7DRJJTjSNO6Q5TsqrU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8327 On 28.02.24 21:41, Matthias Kaehlcke wrote: > On Wed, Feb 28, 2024 at 09:21:00PM +0100, Javier Carrasco wrote: >> On 28.02.24 19:10, Matthias Kaehlcke wrote: >>> On Wed, Feb 28, 2024 at 02:51:33PM +0100, Javier Carrasco wrote: >>>> Most of the functionality this driver provides can be used by non-hub >>>> devices as well. >>>> >>>> To account for the hub-specific code, add a flag to the device data >>>> structure and check its value for hub-specific code. >>>> >>>> The 'always_powered_in_supend' attribute is only available for hub >>>> devices, keeping the driver's default behavior for non-hub devices (keep >>>> on in suspend). >>>> >>>> Signed-off-by: Javier Carrasco >>>> --- >>>> drivers/usb/misc/onboard_usb_dev.c | 25 +++++++++++++++++++++++-- >>>> drivers/usb/misc/onboard_usb_dev.h | 10 ++++++++++ >>>> 2 files changed, 33 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/drivers/usb/misc/onboard_usb_dev.c b/drivers/usb/misc/onboard_usb_dev.c >>>> index e1779bd2d126..df0ed172c7ec 100644 >>>> --- a/drivers/usb/misc/onboard_usb_dev.c >>>> +++ b/drivers/usb/misc/onboard_usb_dev.c >>>> @@ -132,7 +132,8 @@ static int __maybe_unused onboard_dev_suspend(struct device *dev) >>>> struct usbdev_node *node; >>>> bool power_off = true; >>>> >>>> - if (onboard_dev->always_powered_in_suspend) >>>> + if (onboard_dev->always_powered_in_suspend && >>>> + !onboard_dev->pdata->is_hub) >>>> return 0; >>> >>> With this non-hub devices would always be powered down, since >>> 'always_powerd_in_suspend' is not set for them. This should be: >>> >> >> May I ask you what you meant in v4 with this comment? >> >>> Even without the sysfs attribute the field 'always_powered_in_suspend' >>> could >>> be set to true by probe() for non-hub devices. > > struct onboard_dev always has the field 'always_powered_in_suspend', > even for non-hubs, that don't have the corresponding sysfs attribute. > Currently it is left uninitialized (i.e. false) for non-hubs. Instead > it could be initialized to true by probe() for non-hubs, which would > be semantically correct. With that it wouldn't be necessary to check > here whether a device is hub, because the field would provide the > necessary information. > That is maybe what is confusing me a bit. Should it not be false for non-hub devices? That property is only meant for hubs, so why should non-hub devices be always powered in suspend? I thought it should always be false for non-hub devices, and configurable for hubs. >>> if (!onboard_dev->pdata->is_hub || >>> onboard_dev->always_powered_in_suspend) >>> >>> Checking for the (non-)hub status first is clearer IMO, also it avoids >>> an unneccessary check of 'always_powered' for non-hub devices. >>> >> >> That makes sense and will be fixed. >> >>> Without code context: for hubs there can be multiple device tree nodes >>> for the same physical hub chip (e.g. one for the USB2 and another for >>> the USB3 part). I suppose this could also be the case for non-hub >>> devices. For hubs there is the 'peer-hub' device tree property to >>> establish a link between the two USB devices, as a result the onboard >>> driver only creates a single platform device (which is desired, >>> otherwise two platform devices would be in charge for power sequencing >>> the same phyiscal device. For non-hub devices there is currently no such >>> link. In many cases I expect there will be just one DT entry even though >>> the device has multiple USB interfaces, but it could happen and would >>> actually be a more accurate representation. >>> >>> General support is already there (the code dealing with 'peer-hub'), but >>> we'd have to come up with a suitable name. 'peer-device' is the first >>> thing that comes to my mind, but there might be better options. If such >>> a generic property is added then we should deprecate 'peer-hub', but >>> maintain backwards compatibility. >> >> I have nothing against that, but the first non-hub device that will be >> added does not have multiple DT nodes, so I have nothing to test that >> extension with real hardware. > > I see, the XVF3500 is USB 2.0 only, so it isn't suitable for testing. > >> That could be added in the future, though, if the need ever arises. > > I expect it will, when a DT maintainer asks the hardware to be > represented correctly for a device that is connected to more than one USB > bus. IIRC that's how 'peer-hub' was born :) > > Ok, we can leave it out for now. I might send a dedicated patch after your > series landed. If a switch to 'peer-device' or similar is anticipated then > it's probably best to deprecate 'peer-hub' ASAP, to avoid it from getting > added to more bindings. Best regards, Javier Carrasco