[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/9] xue: reset XHCI ports when initializing dbc
- To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Wed, 13 Jul 2022 09:19:08 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- 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=SCQpVhSxAHuSJZxodfCHMWro24FuwsjYLLiWvuR8O4Q=; b=fsGbc2Kix1G1edlHXQPOvBoCXTjCqk7bjyEZ5NPL3UBsPBBGsuIw8K85s9oOf9V0x+clnf/sptZIIAhpuSAOHqI6IQoXIcryujE3TERyeaVbef0lwS/GYkMvhqaIZ6DKL9mTCpv/x8hvnxLbeZusxyF2T9Pi5haABjxZzPuw/aTNdNhvJB4hIDJ4krPesybysagihXa0ytZ1JGCIzC326nNp2R3VwR9kYORxe5Qmh1GnQW6rdFL3cj7k9C3CbvAneLDEfeyOEu2J/7VNWajvzCO6Qk9tTYrkwl7H2JDaY6uCyq9uEjmMrivKOgZT92OC4lsEBmdKrOxyyxUo5KJOcw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZjegvlmbAsDH2bfr3BCESIHijq4/rysR9DCXaEbQkQAq4UDqd7c+Y9Q82BthVr2pq95yQHo/wPw+M1DxQuYoq3sAp271CnShUuib9MwXAM5/9MoX3VBbCwI8hMmIMc8e76ddzBR8AurkOTl7QY0Ulqb7VGM4QVbha2xoULWMt6PQX2SlHbzcJrlegrN1R9F60Z3dGz9Bg71pY9DbXRe+KXQbi+MypMVPLvR/17pDRzCp5r4ukNqGJ+gH1n2ukmPVmIOtvgAPcegx5WUA19i+Nbd0YeVSco9aQDgZIaGkLZki9JHqQlyT6MhfnxSj484w/vTYY45zga3YiwVAcvMCSA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Wed, 13 Jul 2022 07:19:22 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 06.07.2022 17:32, Marek Marczykowski-Górecki wrote:
> Reset ports, to force host system to re-enumerate devices. Otheriwse it
> will require the cable to be re-plugged, or will wait in the
> "configuring" state indefinitely.
>
> Trick and code copied from Linux:
> drivers/usb/early/xhci-dbc.c:xdbc_start()->xdbc_reset_debug_port()
>
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
Of course it would be nice to get an actual R-b from someone knowledgable
(likely going to apply to subsequent patches as well).
Jan
|