From nobody Wed Nov 27 04:46:40 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1700242802; cv=none; d=zohomail.com; s=zohoarc; b=RX4LBuqv5+/Xh8drlHhdLnRK58f2a5H5GIhhSG/WFnFeK/FDH54IIBlkMxaKcky0fxaHB8BV9cmm7WtJuc3wy8g95T3U8U55hjp0pkOfshmGKP1Nq6yOPOD/1tIA3Md0bxS924VOkqph2QukYr7ROpPxuAXfXi3Y4GjLin4WjIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700242802; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ogb63q9Cvxog6QUbUr7K6gdqCtmPGKnKxoxIttdawbk=; b=S19V7dOOHBiCSQKetLjJQlJSh8Jv6VtLfMlSoUjFswKb6SW5eL1h4isUxZFhBNEQorUWaPJsollX2Oh2cD46/VR2BFukUt0e6J6jt76J9YSdC66mU18PzXIl3atS28PSOEHyWOv6pB3WcHgEaMyFB0daDLlvrwhLpdBoGYI6R9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700242802509859.8332543416778; Fri, 17 Nov 2023 09:40:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r42oZ-0007zj-Fa; Fri, 17 Nov 2023 12:39:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r42oX-0007zM-MJ for qemu-devel@nongnu.org; Fri, 17 Nov 2023 12:39:33 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r42oV-0005wT-Ud for qemu-devel@nongnu.org; Fri, 17 Nov 2023 12:39:33 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507f1c29f25so3134757e87.1 for ; Fri, 17 Nov 2023 09:39:31 -0800 (PST) Received: from localhost.localdomain ([185.174.159.112]) by smtp.gmail.com with ESMTPSA id u15-20020ac248af000000b004fe951827easm284094lfg.196.2023.11.17.09.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 09:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700242770; x=1700847570; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ogb63q9Cvxog6QUbUr7K6gdqCtmPGKnKxoxIttdawbk=; b=aSQFU2GTKPqzDH9GtUmf6tP+7OmKkBKC1gci764bbP9kgMlXFy/MIc+V+FuUccL8i/ d7VZJ1ib8rZH32RJwFGTSlCoIJqaXQRyk/As87Atu23PEOVksU/d5lFdqYzBGKfA7NsS pjlv1rWPtJiVsyLy14DFtke047ezirsR5dzirsGH2PlUtCUI/L78Dt/jQXues4nH5s1R QVz/4UPBBq4uOwXUVovz4sow2cce6pnQUAwEYWq60u+jOus6+qc0EO3Vlv3gEX0TUXab W1FvkZgYTYg1nPb/62xbJloeY3s50N1m2y+S1kdno3aDczIYzvpjM54Of1FifvW5F9++ b10g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700242770; x=1700847570; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ogb63q9Cvxog6QUbUr7K6gdqCtmPGKnKxoxIttdawbk=; b=e8CokHEMJTHpyerK+yEMfbBs4z8cNFDUznzpAvQ5DY9ZjgFz31wgJJDBo1SfRS+AKE k0IDRQfiZXKIyG/NhEgNM7qjTOu3Z5QQJRJc9+650JlixCm79tpIhsmCFYlb5ns0rTVM sPCyO6q6DkbeqrJtmfC80qSOEaX8vRG3NxC9dsUXMLScSBqSERi3gP7Owwrt2Lp6WWWy WzZopovLv+FEhRU2YK8sBiUqOn6vs1soymaSQI+6K2KLj23CLohjqlZqpOJHvBWyD2rc yj9x7RJuyo8FbAU0xnpoT+EDaj64wDc9+yxOEA5mm+PYXaLYG/dtW5kLd/XdIvaevMVQ ny2Q== X-Gm-Message-State: AOJu0YzI4LkeJH3ZkYw8Cfn5gFB/mj6fmyVv+DTgUGcF18KXGDdXVN1p SAnOYx6z+t8ZgXMGBjzk9LX5iu9NLWmWMg== X-Google-Smtp-Source: AGHT+IHjw/1zc2wCe4dy2MMMEM1Ysy9kXuCVS4DOguMBaY5OdBCteIUOQNithoykgpsajhUPbHSEuQ== X-Received: by 2002:ac2:4566:0:b0:501:bd43:3b9c with SMTP id k6-20020ac24566000000b00501bd433b9cmr231675lfm.23.1700242769739; Fri, 17 Nov 2023 09:39:29 -0800 (PST) From: Nikita Ostrenkov To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Nikita Ostrenkov Subject: [PATCH v3] hw/usb: fix xhci port notify Date: Fri, 17 Nov 2023 17:39:16 +0000 Message-Id: <20231117173916.3658-1-n.ostrenkov@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=n.ostrenkov@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1700242804398100003 Content-Type: text/plain; charset="utf-8" From MCF5253 Reference manual https://www.nxp.com/docs/en/reference-manual/= MCF5253RM.pdf Host mode: Port Change Detect. The controller sets this bit to a one when o= n any port a Connect Status occurs, a PortEnable/Disable Change occurs, an = Over Current Change occurs, or the Force Port Resume bit is set as theresul= t of a J-K transition on the suspended port. Signed-off-by: Nikita Ostrenkov --- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 4b60114207..1b2f4ac721 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -2627,6 +2627,7 @@ static void xhci_port_notify(XHCIPort *port, uint32_t= bits) if (!xhci_running(port->xhci)) { return; } + port->xhci->usbsts |=3D USBSTS_PCD; xhci_event(port->xhci, &ev, 0); } =20 --=20 2.34.1