Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3847895pxb; Tue, 26 Jan 2021 06:23:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR5ABgzrfNe2mrc6sywuPvG57wkAIdus0ikYa577U6Z9NBo0ElTBo1GLbe//xqJ0+PIXHY X-Received: by 2002:a17:907:3f1f:: with SMTP id hq31mr3702630ejc.205.1611671029714; Tue, 26 Jan 2021 06:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611671029; cv=none; d=google.com; s=arc-20160816; b=BM1Li1e+mZ+SARdgE/CwT0dgQio4Vj8efmYZ+wAJOJy6S8M01RrZKTjBkzqB+t4n+f zvw3OviFgqK6yJ3736lCR9kUHzFngBRA1FqRFCLzFm+KNqeYBBOmzqMGxUMwqY9scj1v Xx/kJzTZ2owSQImoRO1j9gvlu6VtPQVilFy8odbIgeOTvORGSoIgQUL+S0LpADiyt2PV D+WYuJrBJrhuQvcQVyLbVpjjhFZRg+dUtY753TDapDtAEYtH1xcj5X6v8IGg8HU5yZzu xF3ow4OyvQfdRffIysLD/UTa9K2CAlXmt8/yMBRq8Kss2at16swtlLomyWU1l4qXf7XR tyig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ku3bhdBvlpJs1v+PoLV9PwE9KyjUuSaOkJxcMqzCPGE=; b=mCna3puRl/ZDiJxN7cuxJLOR1IOfXoRUaqRHLyAxEZ/FCqk9gZq8BM7z+U3eguRtK1 Uga3y2E7m1tZAZvWxctBo3M7Uu0APKYpKzXHU0NwZrJL6FdVQ52u+ohH55CTCD56n0Lw HtUaIfg4ot3RJUNUennw1tA3qKEzkh8RSaQzO+D0OM4vmy7BDypzhPp+aXlanq9R1KxH we4blFCJq2u7BBfyd7BrI29jI2aaSs0cVFhALNOzK5PW2K5/aWc0j/cLG4lmZi6dCQZz b9d8I9wr4PjD1Y379pA/UmqmISzciee8RcYIPLqBSekZ5vRmss1xAg6WL6iZjJsdUcum gELQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2lBpWeSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz14si7036413ejb.693.2021.01.26.06.23.24; Tue, 26 Jan 2021 06:23:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2lBpWeSC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405869AbhAZOUi (ORCPT + 99 others); Tue, 26 Jan 2021 09:20:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:53882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405882AbhAZOUK (ORCPT ); Tue, 26 Jan 2021 09:20:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B0B2206CA; Tue, 26 Jan 2021 14:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611670769; bh=b+c5T4n9jRaht6O5yOfV/FqKLavfrxzcJDIn1MjA930=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2lBpWeSC29oVeuZA6cKzBaKlSzU0oEFOh2eh/D3NFKYLCkzk4YH+deCKOwPHnwzfE B75IGiTpdEHsT2OvpqsSPcj0p1TrDSTL7t5eAmB8JJ29CzJ3wAUlEpg4aL9dbwVkaf qBznZa5/CL4hGZXjIZlnS586fJo49ogasQOXQKrk= Date: Tue, 26 Jan 2021 15:19:27 +0100 From: Greg KH To: Mathias Nyman Cc: Howard Yen , Mathias Nyman , robh+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] add xhci hooks for USB offload Message-ID: References: <20210119101044.1637023-1-howardyen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 05:32:58PM +0200, Mathias Nyman wrote: > On 20.1.2021 12.04, Howard Yen wrote: > > On Tue, Jan 19, 2021 at 8:47 PM Mathias Nyman wrote: > >> > >> On 19.1.2021 12.10, Howard Yen wrote: > >>> To let the xhci driver support USB offload, add hooks for vendor to have > >>> customized behavior for the initialization, memory allocation, irq work, and > >>> device context synchronization. Detail is in each patch commit message. > >> > >> Is this related to the usb audio sideband capability that was added to the xHCI specification? > >> If yes, then we should probably implement the generic parts first, and then add > >> the vendor specific hooks. > >> > >> -Mathias > >> > >> > > > > This is for offloading, no matter what type of offloading. > > I made the hooks generically and can be used for usb audio on the xhci > > which is not including the usb audio sideband capability. > > > > Ok, before adding hooks like this I think we need to see how they are used. > Do you have the rest of the patches that go on top of this series? > > Maybe it could make sense to use overrides for the functions in struct hc_driver > instead in some cases? There is support for that already. What overrides could be done for these changes? At first glance that would seem to require a lot of duplicated code in whatever override happens to be needed. thanks, greg k-h