Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp776129ybl; Fri, 31 Jan 2020 07:49:27 -0800 (PST) X-Google-Smtp-Source: APXvYqx3Ky8QoSbE+ZEM6ETRM2Ka8F7cEaB/OOTqhQm59HABO0Mra0R51fmyspTW4tYdSeAA5YUl X-Received: by 2002:a9d:67c9:: with SMTP id c9mr8239642otn.67.1580485767719; Fri, 31 Jan 2020 07:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580485767; cv=none; d=google.com; s=arc-20160816; b=Xt53QS3CdbS0INcHRcGTzeOLRQ8gzgq4O94dMNis/TkmcoJLhTyDHdrAWgkjeP/PIC T4DbxXHl/GguT8apk66KPPOhZ14/euhhoyH5eLZ6VaZs8A1DnXqkOR94HpNUf+iGC/Gb MW0JB20r7zZnc8OAhk5+binPs+L3G5OJgIuZjxBmwvWe28voQP1TXFduM+eajHhT8HrQ L6qH+od22DdCMdlC5DcCnua9N6XhHTOsXI8/DGe7ATXNUM7PUvYF/9nR22dvVQkOaRDK TgJYPgXDs1D0A08+nk3ICcP3UkEMAxvKtCSUWAmts2EnRQt331bEAp3M/tu2hbFcMgHW dtAA== 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=c6TRUBei3oEDAx9yafDZpKRTSXn3OpgCWSX6861usQo=; b=UsmLWGCg/5uxUZ/YskFOTbIC1STHhEiR7NeGzjbCpeyqtj9eDI6oYN+HZiQ2rfxk62 47Gf4PdU/tncxiMFuqa7SktJ7ctwxHeVLpq5I4iUa7XW8xMhQ98K/RSyQHAqjNDmXg3e Tb+f/Oa62r+tY8ozT0h3OdOPjVrjL1+B84mVIuINmuTLSm2bEX0KZPDcJH6gX7JHmxJb 1km51b+D/DiJuDqTXKUddkDyizk+IeGDJRZlxcSYFVTDAU6VHK9oEA1/7jO6QCgvvw7H Ib/ea9LnZ7Dk7kSFmSbb2BseugclEjGz+yE4gQpOyC+lH536YQ6gIh8keMcO0lnYmLFH wj/Q== 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 z25si3713255oid.275.2020.01.31.07.49.16; Fri, 31 Jan 2020 07:49:27 -0800 (PST) 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 S1729205AbgAaPr2 (ORCPT + 99 others); Fri, 31 Jan 2020 10:47:28 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:56026 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728992AbgAaPr2 (ORCPT ); Fri, 31 Jan 2020 10:47:28 -0500 Received: (qmail 3508 invoked by uid 2102); 31 Jan 2020 10:47:27 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 31 Jan 2020 10:47:27 -0500 Date: Fri, 31 Jan 2020 10:47:27 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Mathias Nyman cc: Vinod Koul , Christian Lamparter , Greg Kroah-Hartman , John Stultz , Mathias Nyman , , Bjorn Andersson , Yoshihiro Shimoda , USB list , Linux Kernel Mailing List , Heikki Krogerus Subject: Re: [PATCH v6 0/5] usb: xhci: Add support for Renesas USB controllers In-Reply-To: <64340358-6682-4ae0-9c06-d72d5a4ff259@linux.intel.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, 30 Jan 2020, Mathias Nyman wrote: > I realize this can't be easily changed because usb_hcd_pci_probe() takes the > pci_device_id pointer as an argument, and expects id.driver_data to be a > HC driver pointer. > > So this turns out to be a question for Greg and Alan: > > Would it make sense to change usb_hcd_pci_probe() to take a HC driver pointer > as an argument instead of a pointer to pci_device_id? > pci_device_id pointer is only used to extract the HC driver handle. > This way the driver_data could be used for, well, driver data. That seems like a good idea to me. There aren't very many drivers that use usb_hcd_pci_probe(); changing them all should be fairly easy. Alan Stern