Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp253256pxf; Thu, 8 Apr 2021 02:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytFnHYIThA5cJxMNq04Y+DRfyQhiHi5Enb9OKL57hH1SzBw+M9ixt+G5/ydPit48xJxwoD X-Received: by 2002:a63:ce03:: with SMTP id y3mr7128301pgf.414.1617873275329; Thu, 08 Apr 2021 02:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873275; cv=none; d=google.com; s=arc-20160816; b=PO7c10+toRB3I9s33cAvcktFicqG/mF4UpmgAPhT9+vHy7Q5ioZ0i05G6TEJ8/qR88 jSJn/br0/Aopp8rG3Sc2R9zb2sfFz8GCZMO2W6PASrcnl3z+bvL1PUHJ3GQAfy1GtmGs /krROWd8DcvuY8ZbUkyzCdIsFzCsebQBM4CHFL/h+VQyrluDrRLPwpV966SEbE1iK8zD wKo1qil9vThDakXr2UyNCnKu5RRuUQjd1tolygALfMxwgUADbpRoYfqcC09iQpsCUFqn A/J5EbHhkZGVIYu02GSmKegR6/QjHpxLzrYcWFW9LsvWUwlRgDkXyYgY+4slstJoQm7Q 5IlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=L/IL+TfXmYCmlVpfUbi7ceF28daoDqI/GbHdsDi87HU=; b=eZNvh3HQeJwOTkWHDm1t426CZBVFLlbvSdY/FO5YaK/EZW/EY+eBP4Q36mNsEY06YR cuzXqsxnXtdxhlGPdSO1EYqCVS0AibrCqh6GnjPK37sG61DgfSAlaXEuuY2TGmQ7ir+H eUuVt+GZo6RzFMh6T7co0n8f1tPCPSTLq+33wA3/WCdMahf/zL2YI08syn9TflXgcY9o aZa18rx0gV91NYtPVjOWuQCKdF164ZQQdcPHY6MSlvIUz8lBraS/Cp6cY3vVDh8keyuy vOEfZCP7khMM8NXUjmZjzIQVjsOeGpdlbqM1RH0eGLyNjf/N26dOcVMqyMlBe+4XM+Bp lfLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si5866103pgp.115.2021.04.08.02.14.22; Thu, 08 Apr 2021 02:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbhDHJMp (ORCPT + 99 others); Thu, 8 Apr 2021 05:12:45 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16083 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbhDHJMk (ORCPT ); Thu, 8 Apr 2021 05:12:40 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGFpc66L5z1BFrV; Thu, 8 Apr 2021 17:10:16 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 17:12:20 +0800 From: Longfang Liu To: , , , CC: , , , , Subject: [PATCH 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem Date: Thu, 8 Apr 2021 17:09:44 +0800 Message-ID: <1617872985-42735-3-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617872985-42735-1-git-send-email-liulongfang@huawei.com> References: <1617872985-42735-1-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kunpeng920's EHCI controller does not have SBRN register. Reading the SBRN register when the controller driver is initialized will get 0. When rebooting the EHCI driver, ehci_shutdown() will be called. if the sbrn flag is 0, ehci_shutdown() will return directly. The sbrn flag being 0 will cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of kunpeng920 needs to be added to the whitelist without SBRN register. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 6a30afa..c392a26 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -53,6 +53,8 @@ static const struct usb_nosbrn_whitelist_entry { } usb_nosbrn_whitelist[] = { /* STMICRO ConneXT has no sbrn register */ {PCI_VENDOR_ID_STMICRO, PCI_DEVICE_ID_STMICRO_USB_HOST}, + /* HUAWEI Kunpeng920 HiSilicon USB EHCI has no sbrn register */ + {PCI_VENDOR_ID_HUAWEI, 0xa239}, {} }; -- 2.8.1