Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp192530pxf; Thu, 8 Apr 2021 00:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCF7PQHu1FHk4wBj4lcNtrdHWfh5PPI895LKXNC7RdxzLTzYTWT4JbSH9JlmKNFFoaWgcb X-Received: by 2002:a17:902:704b:b029:e9:b5e:5333 with SMTP id h11-20020a170902704bb02900e90b5e5333mr6446810plt.78.1617866483339; Thu, 08 Apr 2021 00:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617866483; cv=none; d=google.com; s=arc-20160816; b=Xy9Cspey1e7rZei4H2xS9VQU6iLra3ehCNJm67H3sPLjJXkqXuUnE2KY//YCM+dmfn p093UoF/PeNf8WN0NCWj6zgoyeVAT7PSLWUGSjXTYo19LteY8P9+0kfJoZpQ6uBGj3iE uItVacbpsGXKVz3wUwwSPNT/lhEe6mH7iAX6aivwJV0W/OXSjlNAAk4DuX68+yAOZTIT hvQUb5YSnCajRELQwDESS30KNwVnrBufVp3UjBsJK+hAkBh8J2Kw+6ymdECXyI6sXj2Y 7ley9OcR5tX634fvUr8qRhPvIMmWRRsJCU/m7QOHq0qQY1Zyk3ZR5x5UlA18o5hLtsMs HCBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=3RuQ4/heZdmcWThOAXhsEJB2Y+yU+GtxLJ3IB3KgUtg=; b=BuvppUmT7hd8hzgJad86ncv68tVYW6pGHX5eamj/+b/rs8oBI6Qacr8P0ZgITczfel sruWAMkKVZAc7cnFlIp8L+Pf6HVpqufj4yFQ9hNKSLL0+r7g6InRfybtx1RkI48DSXzh 3JVaJETaMUFGA+xMnuPg/5+Afu7Qp4TgLGYEOf/+s4fet9T1WmlGGbOtJhgGvf9w/Fia IdMalBeiX9tfWr5JAhmXlob+GPTSlGZmsE/noU4sYtg4CvXQ4Jj3Yh2D7v2jRMPRrRj8 fUhyEdb7zNsm3oZ3kAQEqCPuGBFDtHyoEnS5MLUmbsRhWhski95tAtF/4RIe5kPhc4do VX7w== 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 u3si26873504plf.328.2021.04.08.00.21.11; Thu, 08 Apr 2021 00:21:23 -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 S230424AbhDHHUZ (ORCPT + 99 others); Thu, 8 Apr 2021 03:20:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15177 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbhDHHUX (ORCPT ); Thu, 8 Apr 2021 03:20:23 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGCJN74QYzpVX5; Thu, 8 Apr 2021 15:17:24 +0800 (CST) Received: from [10.67.102.118] (10.67.102.118) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 15:20:06 +0800 Subject: Re: [PATCH] USB:ehci:fix ehci hardware problem To: , , , CC: , , , References: <1617865425-28782-1-git-send-email-liulongfang@huawei.com> From: liulongfang Message-ID: <177a1fbd-b6f0-2e67-2e5a-5b05d2015b3a@huawei.com> Date: Thu, 8 Apr 2021 15:19:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1617865425-28782-1-git-send-email-liulongfang@huawei.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/4/8 15:03, Longfang Liu wrote: > When rebooting the EHCI driver, ehci_shutdown() will be called. > if the sbrn flag is 0, ehci_shutdown() will return directly. > > Our EHCI hardware does not define the SBRN register, which cause > its value to default to 0. The sbrn flag being 0 will cause the > EHCI interrupt signal to not be turned off after reboot. An interrupt > that is not closed will cause an exception to the device sharing > the interrupt. > > Currently, our hardware has this problem. We hope to solve this > problem by skipping reading the sbrn register value. On the next > generation of hardware, we will define this SBRN register in accordance > with the controller standard. > > 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 3c3820a..5dc6821 100644 > --- a/drivers/usb/host/ehci-pci.c > +++ b/drivers/usb/host/ehci-pci.c > @@ -291,6 +291,8 @@ static int ehci_pci_setup(struct usb_hcd *hcd) > if (pdev->vendor == PCI_VENDOR_ID_STMICRO > && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) > ; /* ConneXT has no sbrn register */ > + else if (pdev->vendor == PCI_VENDOR_ID_HUAWEI) > + ; /* sbrn register is undefined */ > else > pci_read_config_byte(pdev, 0x60, &ehci->sbrn); > > Sorry, please ignore this patch, I will resend it. Thanks. Longfang.