Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbdHUJz7 (ORCPT ); Mon, 21 Aug 2017 05:55:59 -0400 Received: from mail-dm3nam03on0048.outbound.protection.outlook.com ([104.47.41.48]:21026 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751894AbdHUJz5 (ORCPT ); Mon, 21 Aug 2017 05:55:57 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Sandeep.Singh@amd.com; Subject: Re: [PATCH 4.12 47/65] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume To: Greg Kroah-Hartman , Ben Hutchings References: <20170815011942.395714306@linuxfoundation.org> <20170815011944.259471330@linuxfoundation.org> <1503086568.3688.28.camel@decadent.org.uk> <20170818225055.GB6159@kroah.com> Cc: Sandeep Singh , Shyam Sundar S K , stable@vger.kernel.org, Nehal Shah , Felipe Balbi , LKML From: Sandeep Singh Message-ID: <6ee13b12-ef75-bd8d-868f-b17158654a21@amd.com> Date: Mon, 21 Aug 2017 15:25:33 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170818225055.GB6159@kroah.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: PN1PR01CA0112.INDPRD01.PROD.OUTLOOK.COM (10.174.144.28) To DM5PR1201MB0060.namprd12.prod.outlook.com (10.174.106.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 615def97-1a3d-4b51-8bda-08d4e87ad0c4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR1201MB0060; X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0060;3:fewWo0DAmXW4fh2gJqzJjFhIJHr/PoF/OYK+fgn0apzKMJz9K0G9ciJHolwZeGFJCEfDxR3L+SuS98PWxJBDfdbuDvSM3PfUCpvlRX1xuZwrJ/TmrS3ObWqx/GZgnfs5TOY/5MUTduqXMuoVNapRoBF2gQjqLGaAztE0NeDl2UQTSyRwBRDRwgalLh2Sa5wQMaBG6EhG5VODLyHQZA3l5UHMd9fJXrIuuWv0vG2qfqu/dWTMmTTliJXGR/Rz6C5p;25:SpeMFOyPtLw0ZazU9i+bhwNXFA66bzDnsAiM4SrsBRsrIvR42WWEZgAVbSMhGHOYoCygszIO+PtFxY1dfGvs4TwhIop2tF5hpgTKhN544/NDrnMVxmjz0D7tGRI0KxWagU5GwXshJvNgO35ZQy2qljPgrEnsyade3X/N6/pZD3p0N+xq2a0HBg0LAh1I3TgecchusZbmz2wiHU53xoMRuzHOAIwY7EDjVMfNKsQG+PtPiGwSl1T0JqwJKUJyqsVGc2R9R5MLHsGjF+Hs/bJ4NIpfH2cJ2DKjddwvX4uekvycOiHYfdgRpCEMbG6aEuGaODM0JIHQNOAjobUX9rrI6w==;31:A3j6hAI/KpHcTrSVyOcBsq2i0b3oj2v7If9Aeo1Aelbtkxx5wCYMLbts6l4gpq1U5Htv0iATdrL3wyVkuFWn6VNMwGwPPU5jQQXYvFuR+QEvQR1hwONNpl3A2hI6gCSvAsspCUg9UyNtPulQ3FUhLkIyOc1NkRRIrQhO8DRDaLEYjr+XGqlkoSG+Znnxnz/hYPKJ4FKcF0FF44xW0zbmdVMDKwZJsX8KV8S8DuUbT/w= X-MS-TrafficTypeDiagnostic: DM5PR1201MB0060: X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0060;20:+HZXu+GcH/dRwZ6b1ZsupWPvTEQacGgUbWvTycFiGIgrC3u9zdl2fTuu8EkKQWxHy4tesWzzj5Rygl9vspqk2Q2m/9XtCSPDwSyRpVVhUYPrqFec5T9OIctmhKW7ilYVmQkkDZF4UuGqANlr5UVpY1jk4Vvqk9J31Fx4aK9VsUFEprIQl+NvVnITrbQX/AOBnMDl2Lj0cgQucWGG1QTS+ddZnadi4mPUSWjCCppUCfkQqSvBBBadtKXf6QReWJBEDk7VO0vjvxx8eD6OS880rGMiJE0twDJiAY8sOkMAVKfOSF759y2vV1B+F9+rrINOlCAIO1gjOKz+Lhx9/AwWTGysGXF/aJf8ad7zAlj5Xm8UqJqRpLc+eHJ2RYpuzq2QyskFeMBD88/rsfS5kUkHWFRrEZpPSEu3QLT5cx96TDBDRBlQVJpXrQxaBw2VNXTQn3z8EX9eXawQJ5HVeQ0InmtpZYep1PpPkebGUzdAEeXvF5G6q7+Lp3ZIWZhMrW9w;4:t+8HpLe3hXC78yrzGwnraQ3tEQCzodfrcF1+3AKeve9omwyke1iV/Zq1TMN2toEYENvJfaKenCEtUtTLM54cGAm+eDvVtkC7l1sD0Y+eWsZwGLsYnRom46Y4fsg7Z50qlsVv3rA2hjPux4YhvdmNXsY9PoENVfWXfWd2Qy++lT7w9dbLtn+z1aktUtswIFCyZJf/1Tl0NkY9ijWYy0comcNnn/K2jWeMl+Htl7iTxbuVkEFpcgrNWCbV1aZbabQiwmmZiGU2dhWOtQXvXKPxTzPN0rp5mxRvMRxxDgmALDw= X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR1201MB0060;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR1201MB0060; X-Forefront-PRVS: 040655413E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6049001)(6009001)(39860400002)(189002)(199003)(4001350100001)(2906002)(33646002)(93886005)(5660300001)(31686004)(47776003)(229853002)(65826007)(65806001)(3846002)(6116002)(36756003)(81156014)(6246003)(101416001)(83506001)(230700001)(7350300001)(81166006)(42186005)(76176999)(54356999)(50986999)(68736007)(2950100002)(53936002)(50466002)(31696002)(90366009)(97736004)(4326008)(54906002)(7736002)(6486002)(25786009)(3260700006)(77096006)(23746002)(305945005)(6666003)(106356001)(105586002)(66066001)(64126003)(72206003)(8676002)(478600001)(65956001)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR1201MB0060;H:[10.136.129.85];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR1201MB0060;23:4m7et5ey8VaaDiD2BbpQIObi2cUQ3hqTIjh?= =?Windows-1252?Q?Sd0x0b2dDrBcLJlyLGQgPRrMvAU4hnT5jg9GaEWcLwmoS/9YzZ45EixF?= =?Windows-1252?Q?8wx9GIQzD9EDe3iU01rV4Cfkj8sFCzLtzyIhj7FN0R0uc9va4SljhSHg?= =?Windows-1252?Q?ZOJxmzE8tbtr28HOHi2nOVjkZMGnDOT507rWjvj0U9BEsgatATaEQha5?= =?Windows-1252?Q?S8goPqYteACsJPaD41lFC5HY1L5raf8qHL1Bq6hCGJo9eJFD+iqTvwqY?= =?Windows-1252?Q?e0KUQMuzYpGYe5Efnj3Bo86JDVHn1Kbuxx6oQEeqkRV8bm3GiUeKWlyn?= =?Windows-1252?Q?oMuclUvnwjep/VyjzFRcWCh+VyUQsbAr9no6WUTjAqAaTYP+oLzET/pr?= =?Windows-1252?Q?rOqBA7EnEIwuUrUdpczs7GlCyc11dXko570T3xlLWsffz/MlsUwC9EGr?= =?Windows-1252?Q?GR54wlnRDu4XC+zwyDnP9OzC7FvP1mZBld+Xo2zq7fDq2T29ompDl4T5?= =?Windows-1252?Q?SWAk01UM3jMGrfIW7UCMzWQMa+aYxtlx2XoWkmlw0I9inx4Da7xWkv0T?= =?Windows-1252?Q?GCwE8Tyr9qMm+W3dfyyWrkiAql+ceiqdXW241skv9GpOnoSS/WX+5ClX?= =?Windows-1252?Q?m41zKjKqAoGYc1UTFYBgmsclwPb8TPXClXchg1ngUUtSW5cU2VxJQmcD?= =?Windows-1252?Q?q65IO/pLynWr+zuH7oprFfdUe00S1ukYxZ9kf5Yi9ZAD9DMyBJXquqKl?= =?Windows-1252?Q?z30wTZBmilQ8BYIuD7+B4UUfgUMFnyZsxIomSXggz0fX4BKSKViIeVSG?= =?Windows-1252?Q?ln37meS7UaxhuylNKYbdFEJQRAi+GKgRe4DXZVssbjsLwQEjEEgZyA92?= =?Windows-1252?Q?KiIDrqs7cvv/iVeENMP8SZpLntgYoAx0odnGBzuqFNpxAdW+ecid04QL?= =?Windows-1252?Q?V4+D/3yVuqrBUZ3fw1Hkqm4ajK/98ETZHMZ97XdTA3unJCqxo6csLbv+?= =?Windows-1252?Q?U3g8VNVnfjz0dFnnejQpKlmbCqN9F2wUbekEot0qjT7nm05kybvCzt5N?= =?Windows-1252?Q?SdJponJcQuX/q4xG0Fj2qTO9/Xs9Fa2IJt+YDAvxE2oO1iEv6bUqCUgw?= =?Windows-1252?Q?B114x+3g/OgdY2mZDAt4+FnP4v/iINDDfPyPOBtGvn1mrUCzLi4OHAmn?= =?Windows-1252?Q?bZU/3Rn01RkO7ys49veMQzDFd7yNsn4yM0cvpzAzHUZtiIwwl0dbNzhf?= =?Windows-1252?Q?c93pPa2LSLDp9HIHgeqG7HOW26fAT+eJWP187KyjPo7c4IFvW7bkLduj?= =?Windows-1252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rLqdV6/okZA8Hn1+xw7fA7Fm4aA55vKZsfU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB0060;20:FSkl5d24+GGCO42D4gQIKDfyo505bKBXCQ9n2WZQsJKjMtxpTty7CvttDkjxq5mZrALb3Eb35b/OJ1A60wIKay25lj2bnGscpc2XrzisioonIxy4ghv/PCDpEEUyM+yF7XnULovGmbWjT5qotfMsw07GZGAa5v6DSp4TRP5pLFmLgLthzc83//K8icZl49DOC0JkKkl6GXvq3QTaoOYv53Yt/qu6OFCnCegmeFK+YBCK2kb516lmVehxePAcP9yA X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2017 09:55:52.2903 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0060 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1349 Lines: 40 >>> From: Sandeep Singh >>> >>> commit e788787ef4f9c24aafefc480a8da5f92b914e5e6 upstream. >> [...] >>> --- a/drivers/usb/host/pci-quirks.c >>> +++ b/drivers/usb/host/pci-quirks.c >>> @@ -98,6 +98,7 @@ enum amd_chipset_gen { >>> AMD_CHIPSET_HUDSON2, >>> AMD_CHIPSET_BOLTON, >>> AMD_CHIPSET_YANGTZE, >>> + AMD_CHIPSET_TAISHAN, >>> AMD_CHIPSET_UNKNOWN, >>> }; >>> >>> @@ -141,6 +142,11 @@ static int amd_chipset_sb_type_init(stru >>> pinfo->sb_type.gen = AMD_CHIPSET_SB700; >>> else if (rev >= 0x40 && rev <= 0x4f) >>> pinfo->sb_type.gen = AMD_CHIPSET_SB800; >>> + } >>> + pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD, >>> + 0x145c, NULL); >>> + if (pinfo->smbus_dev) { >>> + pinfo->sb_type.gen = AMD_CHIPSET_TAISHAN; >>> } else { >>> pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD, >>> PCI_DEVICE_ID_AMD_HUDSON2_SMBUS, NULL); >> [...] >> >> This causes pinfo->smbus_dev to be wrongly set to NULL on systems with >> the ATI chipset that this function checks for first. > > Ugh, for such a "simple" quirk, this has gone through so many different > iterations, all of which seem broken :( > > Sandeep, can you fix this up and send a follow-on patch to us and the > linux-usb mailing list so we can get it fixed up properly? > Greg, :-( We will send follow-on patch shortly.