Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp600346ybh; Tue, 10 Mar 2020 04:56:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtdDYFGMYdixUJd4lg91guQgVJLKleDZJYxJEeKykS6GBq+lCfjlr/PCtdVhPlK3C7/qbnH X-Received: by 2002:a9d:6a91:: with SMTP id l17mr12391922otq.29.1583841385824; Tue, 10 Mar 2020 04:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583841385; cv=none; d=google.com; s=arc-20160816; b=MQexj2slCnfrIcM7l+u6MiZgNBjuzcZ7lWvcLMYOKUlSbRIsTgpcc6+8JDeLnSytMX zTpehupS01tOqkNrJCa1mbIX1hYT0e8yx0xGfNrG237XwOHMe6tCcKfMiokKbVszaz8Y QLVTzf0v2S1ZmTkUmvwoRaRaJwMi0C9ghgwjNMs/sm1jqOo9oQ+xFqDfyE8C/ckTp1RQ pnJzVvCHQ31Y3iRHyCL0v2D65tlpKt343AT5QjTerkQ1pkD05N5t0cRbUP8bjviIxeCf vmOlFgeMFTFNuDZOvxrXAC3fuyM/eTGKVRyY4pz5TGffjvVubbBdpo2Uewfi7Et4GoWs rVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=03E8HsyHa+MjF1YKD9HHXLMyefYy6kRexPYh8u6Wppg=; b=LedAI57BpGyaso5j4NYEtPlFU24Br9P4nrzYtFR5EM9ULE7LXlfIviZjIIiNfTwji/ RBqRps6NEIWfJFWdKDzLVURVepph27yve08arvaVC0uAx6j52pSqzNwlmBN7PIvZx85f etB7bGHQbgMsDuGJFf+UFd5thGeuSVBFh+zroJFevPARv//n+TT9mc851SpESh34bD4o ny8N+Jx8bb8Q22UWgJOmC3Wy4pMWbX9s32/kQCfK412J6VUeBRypK/a22gkctso6N27n FFvTe6pbS7MRld0+IDEpukG/Hab5ggADgQYN9cWCdicq5pPBJkcpgwNJ/RpATQON3dOc 4DgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y7o+ENJe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si2413694oib.137.2020.03.10.04.56.13; Tue, 10 Mar 2020 04:56:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Y7o+ENJe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbgCJLzP (ORCPT + 99 others); Tue, 10 Mar 2020 07:55:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgCJLzO (ORCPT ); Tue, 10 Mar 2020 07:55:14 -0400 Received: from localhost (unknown [122.167.84.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 78E1E2464B; Tue, 10 Mar 2020 11:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583841314; bh=cbPCeEem6JKklbB2VzqM30QCCT/AI0cLXshnbw7OmZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y7o+ENJe1AEFpzFL1pxznbCeXnEIoUV+ZtO1T1SnV273ank4QvKFnOqcLpjOdTXeq oOCzo127BFhIfqfXb3239rmTlxJcS4YnVD+kiDLCBKuCyXWJJSVn7yhGY5P3OS7Jfd 3fIS9pR9QzySmxVqs97kcs5gwLNK9NSWmMvyxUOI= Date: Tue, 10 Mar 2020 17:25:10 +0530 From: Vinod Koul To: Alan Stern Cc: Mathias Nyman , Christian Lamparter , Greg Kroah-Hartman , John Stultz , Mathias Nyman , linux-arm-msm@vger.kernel.org, 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 Message-ID: <20200310115510.GE4885@vkoul-mobl> References: <64340358-6682-4ae0-9c06-d72d5a4ff259@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31-01-20, 10:47, Alan Stern wrote: > 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. Yup it was easy to do :) I have done this and tested it. Now we can use driver_data for driver data. Though couldn't compile the uhci, seems to have missing Makefile entry. -- ~Vinod