Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp525392pxf; Thu, 8 Apr 2021 07:55:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEveVFHzRIDs2o/Oi+qyDI7z+3N+P+2SCuHRk1aKSAMVOV7/bXwPHT3SFTL9L7V1kQRjkl X-Received: by 2002:a17:906:9411:: with SMTP id q17mr10955214ejx.213.1617893701193; Thu, 08 Apr 2021 07:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617893701; cv=none; d=google.com; s=arc-20160816; b=ZqkInMFlSGRL//h/jFuGFxTZYEkTjBpQlO79c6ohr9DDvJD6Xs6bakeWtedQ944q0K 2Rvy2s7Dc0VpxcGbWGl53mLYdD/2Y5JdhtdM1tc9f8zg188G17LjXHUxRFCiW8ftRx0K t6Ke5sKlhOPwq3Om7MQD+p+QyXIBoGiP2qHNuiYDDX7DEG8Qxyz9avmRC1iWcNwkcu0V LWUC+KXZTxLB7igek7v+lM/fuh2oGWu2DW6f1ufkGXIF4DeksMvL8hN99VOEzmNCtGIc J0b5pxC/FKquPtMf9UJVheX7fegWftuJ5EDdcVifDTnwbmAhfyjxg7Ib73cz8IDPiL1s Q6aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=QW1CaOv5xsBVxo9jMm8uoX7sRfBns2phxdM0dj5bA7Q=; b=sOw9EOQ3VWzIKL1OxAS59IkdSi8a27p5g0bu7po0JaPayrQqiJPG6OxlrMRy5HbIEE eg0JAEhN1EetGo3F2QDbxZXF/ceqY6LYK7FkqVJeeEE+eIL38xaV2wtSBW77UqRJFKpO EC6bXYTm9Tkv5gWHQl8Juu5/OgIGVAMlW2SRKIkap2hcA5NFvGZVTi9RqwbfuWjuu2ob 9V7zChPfdTPNCsBAJRcGwPJQtZhJPm2RgjoaZKx69kOnUMbPll13tbdJRQvwl51K2cXd cX3zWimQsc9Zc4gIV7R5VAB21BwqNlgJN4fZwBZ0pgagACQyqTK/K5vt/1kC02RVgW5t Vm5g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si4145475edr.251.2021.04.08.07.54.36; Thu, 08 Apr 2021 07:55:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbhDHOxs (ORCPT + 99 others); Thu, 8 Apr 2021 10:53:48 -0400 Received: from netrider.rowland.org ([192.131.102.5]:38345 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231791AbhDHOxr (ORCPT ); Thu, 8 Apr 2021 10:53:47 -0400 Received: (qmail 1298433 invoked by uid 1000); 8 Apr 2021 10:53:32 -0400 Date: Thu, 8 Apr 2021 10:53:32 -0400 From: Alan Stern To: Longfang Liu Cc: gregkh@linuxfoundation.org, mathias.nyman@intel.com, liudongdong3@huawei.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kong.kongxinwei@hisilicon.com, yisen.zhuang@huawei.com Subject: Re: [PATCH v2 0/2] USB:ehci:fix the no SRBN register problem Message-ID: <20210408145332.GA1296449@rowland.harvard.edu> References: <1617889760-17733-1-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617889760-17733-1-git-send-email-liulongfang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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