Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3731467ybi; Fri, 5 Jul 2019 12:49:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2bWeaqJ19H2uUGODF5T3w272/2k4VIB+YgExynwgtgqpMZMG5J5ereoOc23W8MlDY1TcP X-Received: by 2002:a17:90a:35e5:: with SMTP id r92mr7705905pjb.34.1562356151637; Fri, 05 Jul 2019 12:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562356151; cv=none; d=google.com; s=arc-20160816; b=TKJK1ZjHUAsXwdGAKbLlwr8LWw6iiSjyW14RcoHX8NiKCf6ThyHx5IL70Uhr8DU2v+ nuQ+AhpAIpz3w/eK8xslPMyxHcwg7lAFQHm62EJScXOG/jo+jAaizhyo8UlNxgnRe7dS lKtsUcBL69Qzi4PKxwGn6dmfGVVViFkS+EF0UIk27Zv0MJYBxrxPeAfeb6Z8rykH02Hh k6LrL7VfecPSoiHADVG5CKIXJJk4nwo6BZ6QuPL6iphaZBzRSdI/UDwVDWezyR1vpw6p TCYB7qZSrblnCKnQQhsYs7l8pw3QEJkrt5vw2649cHrcWdX+zd81vz/hXg41D0dM8dcz U9QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=0oYO/7N+mMV6d7lLaRjr1GFnrTa6Q1vb2KbL5oTOii4=; b=wygOHZJx3bSiIf6q4njUuYKHRcBfsgZgINwIHNSiWTIAPSfR29tjQvEpcR6cxp5U5N UMNEbjMrmLlStSW1kyRKggTam0jqLiu3DQ/sS3wgsDZ8mW28N6ymh/gxEmEkmgvfD+8u bgFPb/KS3KqH2e+IVZuYLDeCmRGvrXmximDyOrX2sGbU02/I+carO9spcSn74rfKffcF RjYCZqk4AtFRU1go6ee+OqmqnDnx4AFhdQbGyjgAHSQu111gUJYySIEODv+Uv3Ms65Rc mY7h07DdrsDIV7aUAo1KwDkFEa8okE8nbh/vawNjbl1HoLLJILzkaMEQ0TrJ8RMHf0wE gA4w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i188si10602197pfe.96.2019.07.05.12.48.56; Fri, 05 Jul 2019 12:49:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727807AbfGETKe (ORCPT + 99 others); Fri, 5 Jul 2019 15:10:34 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:47682 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1725778AbfGETKd (ORCPT ); Fri, 5 Jul 2019 15:10:33 -0400 Received: (qmail 5585 invoked by uid 2102); 5 Jul 2019 15:10:32 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 5 Jul 2019 15:10:32 -0400 Date: Fri, 5 Jul 2019 15:10:32 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Ryan Kennedy cc: gregkh@linuxfoundation.org, , , Subject: Re: [PATCH 2/2] usb: pci-quirks: Minor cleanup for AMD PLL quirk In-Reply-To: <20190704153529.9429-3-ryan5544@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Jul 2019, Ryan Kennedy wrote: > usb_amd_find_chipset_info() is used for chipset detection for > several quirks. It is strange that its return value indicates > the need for the PLL quirk, which means it is often ignored. > This patch adds a function specifically for checking the PLL > quirk like the other ones. Additionally, rename probe_result to > something more appropriate. > > Signed-off-by: Ryan Kennedy > @@ -322,6 +317,13 @@ bool usb_amd_prefetch_quirk(void) > } > EXPORT_SYMBOL_GPL(usb_amd_prefetch_quirk); > > +bool usb_amd_quirk_pll_check(void) > +{ > + usb_amd_find_chipset_info(); > + return amd_chipset.need_pll_quirk; > +} > +EXPORT_SYMBOL_GPL(usb_amd_quirk_pll_check); I really don't see the point of separating out all but one line into a different function. You might as well just rename usb_amd_find_chipset_info to usb_amd_quirk_pll_check (along with the other code adjustments) and be done with it. However, in the end I don't care if you still want to do this. Either way: Acked-by: Alan Stern Alan Stern