Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp469109pxf; Thu, 8 Apr 2021 06:53:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr1vHH9TcGDZ2omzdtPWwI1hrjsPS40+vm3ZupVa9QkmPqh499NEEDpjQkg4CnhFA+cGDT X-Received: by 2002:a17:907:700d:: with SMTP id wr13mr10716685ejb.310.1617890002167; Thu, 08 Apr 2021 06:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617890002; cv=none; d=google.com; s=arc-20160816; b=A2PoxTsaLgAD46dNlY3ANRURfT6vLjmY+SuzymvJU5O9ZSR8YBg1NsXGrMbViR0+tT M8+dY6bTliAC3mkaMOF89hPXJH8qf3CAY0YZSPs1yE3R0lTQgne5Uu/4bzYKgC+PG8a5 tXGNPBpbC3y3AkSlOWIwlj8E1OP7XxzWhEUEujpGSM5RMxVExU9ksO/q7A8dtkPCF/qk 8N5Fy3p6z3LraAYzDy0gzafib2mXOH5rR+p0bnzSZpklUM1TS8pPALHPzjVXKzmji2er ZNw9AGwYcrJBJgE2UbQ6zJczvZSAXn2hF9JNktdjc2SMjxO94WS72pMwilWXxDf7EC2I 2s3w== 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=srt1tPscsItBgiCXylg7sy8c+RGwsK4oR2quqWhyDw8=; b=c+jpauXjqA+nX1dHhqj18005XB1yS7TvrcmnDt0k3ryJaLigLPNB/cn+RPglk+88v8 g5TJx9eTqxZseZSjPdRQ6H2fnRRaoF1sTTgbSEKLprQV4+cYcJxBuANnz2tfSFhl+LeF KO4YAwXHq4Itic6w6h6Y1BlkjWJkVwQZ+2kw+g77poJThsthT5af7+xEG+oO996cYhLz 6U4rIUrgZ2XQT/RO9B4yTmRc9pTBKyeEaR1FZoIV4fBRpAcFelx8Z1MOb7RlOYM6zXGt 8gkcL7UwR3YwEByCJpgGqYYpm40UUFoxKqQ5j3t28QcpKZiREBimPOQROg6wSnHZkApZ fGdQ== 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 d20si11139348edx.559.2021.04.08.06.52.58; Thu, 08 Apr 2021 06:53:22 -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 S231759AbhDHNwR (ORCPT + 99 others); Thu, 8 Apr 2021 09:52:17 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15630 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbhDHNwP (ORCPT ); Thu, 8 Apr 2021 09:52:15 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGN0T5dhfzpWdv; Thu, 8 Apr 2021 21:49:13 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 21:51:54 +0800 From: Longfang Liu To: , , , CC: , , , , Subject: [PATCH v2 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem Date: Thu, 8 Apr 2021 21:49:20 +0800 Message-ID: <1617889760-17733-3-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617889760-17733-1-git-send-email-liulongfang@huawei.com> References: <1617889760-17733-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 534e906..7bd075c 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}, /* End of list */ {NULL, NULL} }; -- 2.8.1