Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3293610ima; Tue, 23 Oct 2018 03:41:24 -0700 (PDT) X-Google-Smtp-Source: AJdET5cAZGovGCg0LkN6Mbfc97geUC0O2kWrOWTfHIfNWMl+dIvjlKqvWUkr8IwzdvaiVuG80xfY X-Received: by 2002:a17:902:6b46:: with SMTP id g6-v6mr2412800plt.33.1540291284185; Tue, 23 Oct 2018 03:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540291284; cv=none; d=google.com; s=arc-20160816; b=NxCECklRix4NyMcyVwstvackHcfXAPPTacpMwKlLfg3gAqmii9FrAyrH5giULi1gZk CLDa2lAv5jNuys6FZHHPnoxHc9756eNe6LppcQ8N5GHyOUCzSNDEV69Z5d1Mt21ciwLw 5niihQyGEDJmn/MbkEHeVPCsymtJ7pqVQ1eDq7/qrGkah2HCMjmcf3ykm81+y+tiOGDI YrmbeiUgz2Kd7ZKhDpR2WsZt5kAW2onrriLmcquZ5etRZk7enrKesT9SSW0sQfJWJ6Nv I0QAtg0rk56KFYQaAwuUiH6d4hSmJwJRBa1an4OaNq3Gz77Hl6xNFtgqiTDgTW0Vn3P6 a4pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=GvD9vqDFbGOVSmQ2lKRiX2brGZX+Ktuw9iNB9rZYUSI=; b=R1cZaIQxduW5rJ08LuvfeY16kjgDzbxqTxH8L6H2iXEN4P980juQ95ziCtqOq+o0kd zMsl6UBLJgKwbJf8FIGXspa3rqiiPNAJHyinaw5uj9Q3cf/DJD6UpQziOe6CueobYSvL iYs59I4JD82yAHBkUGUHbOWWbHGa34IHKr2EAD102IdgfE5u1smuhT3xhY7UI93wgzxs kVurR3SDVpLt/aoQIA/QN0lhNpBeJKkpCziRX4v9i9JGVPg1niEkV5DBnJjrJnUOhEO9 ArlqX+twA/yJt/iC4LjGzeBmx5PuxyDa4CrwGmITS996EZuTkf/kY8KmOGo908N4h4/W ylDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si915685pld.93.2018.10.23.03.41.09; Tue, 23 Oct 2018 03:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727956AbeJWTCC (ORCPT + 99 others); Tue, 23 Oct 2018 15:02:02 -0400 Received: from mga12.intel.com ([192.55.52.136]:33923 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727678AbeJWTCC (ORCPT ); Tue, 23 Oct 2018 15:02:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 03:39:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,415,1534834800"; d="scan'208";a="273697488" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2018 03:39:08 -0700 Subject: Re: [PATCH v2 1/2] usb: xhci: fix uninitialized completion when USB3 port got wrong status To: Aaron Ma , mathias.nyman@intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1540230167-12528-1-git-send-email-aaron.ma@canonical.com> From: Mathias Nyman Message-ID: Date: Tue, 23 Oct 2018 13:42:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1540230167-12528-1-git-send-email-aaron.ma@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.10.2018 20:42, Aaron Ma wrote: > Realtek USB3.0 Card Reader [0bda:0328] reports wrong port status on > Cannon lake PCH USB3.1 xHCI [8086:a36d] after resume from S3, > after clear port reset it works fine. > > Since this device is registered on USB3 roothub at boot, > when port status reports not superspeed, xhci_get_port_status will call > an uninitialized completion in bus_state[0]. > Kernel will hang because of NULL pointer. > > Restrict the USB2 resume status check in USB2 roothub to fix hang issue. > > Cc: stable@vger.kernel.org > Signed-off-by: Aaron Ma Thanks, adding to queue, will send forward after rc1 -Mathias