Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1007974pxf; Thu, 8 Apr 2021 19:44:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaOBH4yYSKPVJqYfId4yJzZs17X0AwwTS8l4s2DgrcINebrMqxCiFwW2BCWVRoRLyc2nl X-Received: by 2002:a17:906:8392:: with SMTP id p18mr10749957ejx.132.1617936251876; Thu, 08 Apr 2021 19:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617936251; cv=none; d=google.com; s=arc-20160816; b=gMr8m6cUvSoSkj/59LYd9ST2TrVhCyHW1juO+wztPDenpCVsB2esbxxOv3yuc9Q3S4 bxf0g3PDUOUtc47loLz0kdW0l+ynP57qqzlQ4cYv2qHksMlnu8iseZF65i0ar3mKOSjG IQ3dGJN1S8OEPgqxgzstCR2qKIosvn8t85wP23kcGTOboqodtvHICeBRqRr7WZ09hMSh F+Oyrp/IRp4blzqTISl2+tzTRXqlAdhxO373X2nrrDObAYXZk378e+P/hCvdqG44zDQt isbnpvyp8OiOITkLIbRyc2i9v/tpJcj8ssMlR7dXrhohWOe6sohiztnV9K+h0V7upTix pA7w== 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=AzATvH/ondsyXaraJkxMbYoDXB9KnsehhS9V+Kblr68=; b=PXlGPGkMOv0Z1cUvzMSds+feWSITPwMOZK5pK5Xo5BrT3gnP87lrgG0D3Fifocjdaj m/sHk8VnHBbhkyorHznNKhyqeXDuk8t+rqoYDM7CTDUrRLzyyQJW+t5DMtWJWzBFPD27 byzqFknYvgnq7pbvItdAcRMkOHoXOzlGoULgAnWMXIrX9fj44L6tv/2s3F/Yf3EmT+dr uumFc4Zvcj+xKhPqfnAagbFZYNU23qs7BM/1Xg1UpIV9bZHmKG/oWG9H/yes0F13E6pa n30mILnh0a2nhbFN4FhO+wMh9QbNJVDEBhEUKBPK35zgwSWRI0ulUi+VucqhTfMCmD2N mmbA== 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 hd34si1036060ejc.197.2021.04.08.19.43.48; Thu, 08 Apr 2021 19:44:11 -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 S232839AbhDICnA (ORCPT + 99 others); Thu, 8 Apr 2021 22:43:00 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16103 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232616AbhDICm7 (ORCPT ); Thu, 8 Apr 2021 22:42:59 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGj6T4F9qz19Ks2; Fri, 9 Apr 2021 10:40:33 +0800 (CST) Received: from [10.67.102.118] (10.67.102.118) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 10:42:36 +0800 Subject: Re: [PATCH v2 0/2] USB:ehci:fix the no SRBN register problem To: Alan Stern CC: , , , , , , References: <1617889760-17733-1-git-send-email-liulongfang@huawei.com> <20210408145332.GA1296449@rowland.harvard.edu> From: liulongfang Message-ID: Date: Fri, 9 Apr 2021 10:42:35 +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: <20210408145332.GA1296449@rowland.harvard.edu> 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 22:53, Alan Stern wrote: > On Thu, Apr 08, 2021 at 09:49:18PM +0800, Longfang Liu wrote: >> (1) Add a whitelist for EHCI devices without SBRN registers. >> (2) Add Kunpeng920's EHCI device to the whitelist. >> >> Changes in v2: >> - Fix some code style issues. >> - Update function name. >> >> Longfang Liu (2): >> USB:ehci:Add a whitelist for EHCI controllers >> USB:ehci:fix Kunpeng920 ehci hardware problem >> >> drivers/usb/host/ehci-pci.c | 30 ++++++++++++++++++++++++++---- >> 1 file changed, 26 insertions(+), 4 deletions(-) > > I don't think we need a whole list, along with an associated lookup > routine, when there are only two entries. The total amount of code will > be smaller if you just add a check for the Kunpeng920 controller to > the existing check for the STMICRO controller. > > Alan Stern > . > Now there are two EHCI controllers that do not have SBRN registers, and there may be more in the future. This list is added for subsequent compatibility if there are such controllers, instead of a series of if-else. Thanks. Longfang.