Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp253390pxf; Thu, 8 Apr 2021 02:14:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqTyDkx+2wfP9l/jR9XFtRVYDyrt6lbzz5JcfwdJs0R2O+CbViBG3La6bd3f9bLqLWV2qc X-Received: by 2002:a17:90a:f2c2:: with SMTP id gt2mr2565187pjb.139.1617873291463; Thu, 08 Apr 2021 02:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617873291; cv=none; d=google.com; s=arc-20160816; b=dMPivmVndL5FJ8rw3QxZPMR2PN2S4ZiRrcMHsRLFsqI9oCUS+i5CWf13iTrrzO7R8P UHIhVo2lNYx2Ge9nDAYQb5iWHVfe/apnsQuvet5wOoS7npqLVhGcXz8SKCCIcw+rACAv yMWRdfWGynLdP5O4FJhUyrGblGF6jL3Ls391l7lGkBdFX1ldGm+YzzAMs3kKe4Fug7SC yKrmhkwmYSTlNfSb91RcYCjaOez8SKDjmsCu5kyRtUfFzRZl4tQE7p4H5Ijx0iqmZHH3 lW7VJTJAVqPH7St/jOpLiD2C50j87v0HJlm8SF9OOwms1t8r5nUH0zaZU9fVQqnuHiXk ALCw== 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=lOo3lblFqi+C0OGO3mPFy5tJ3vPGhcc5VyhOvW1zkz9MQZ9W84nc7c/WXtzbnTOFFk iYbTZJhLU8uzoNNmNYzzwEhmVcxclCywv241Cts6zW5UN6OWp4cmvMiR4OnAOwyBYgAm lvSCH6p+Ayg9WfIBQQrA2wyfs+9a8R2DqHluQpXxn0HgnCczPaZLkkjTCSwxEcPDSv6O 40S2+mlOJCSbPDJKuKTn4M+eWPza4h7Z5n4uRYEMymA7W+E3zYtLFhHU6mz3gAQWkP/G fxNvU/pjgoaylfXdRiE6DzCFUTFBV1oyv6W9sXPfYLnuET5wbneKT/FJPiTiUjOigoJR WWrg== 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 a3si16770852plm.258.2021.04.08.02.14.39; Thu, 08 Apr 2021 02:14:51 -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 S230494AbhDHJOJ (ORCPT + 99 others); Thu, 8 Apr 2021 05:14:09 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16828 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbhDHJOG (ORCPT ); Thu, 8 Apr 2021 05:14:06 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FGFrG2tZwz93fd; Thu, 8 Apr 2021 17:11:42 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 17:13:47 +0800 From: Longfang Liu To: , , , CC: , , , , Subject: [PATCH 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem Date: Thu, 8 Apr 2021 17:11:13 +0800 Message-ID: <1617873073-37371-3-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617873073-37371-1-git-send-email-liulongfang@huawei.com> References: <1617873073-37371-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