Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp799355pxb; Wed, 27 Jan 2021 23:46:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdCLxViUIw8YkuTKoKqj3/0RrNxZKDnrp6t+kP6DdhcM7RI4Q9WS7jddK+I2YeSTdWx9RU X-Received: by 2002:a17:906:1c0f:: with SMTP id k15mr9661588ejg.157.1611820002651; Wed, 27 Jan 2021 23:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611820002; cv=none; d=google.com; s=arc-20160816; b=UwwVPr9BrLgG/MlGPrl4uuyQtcoegMekd8DZl/CVm6C8VWyfXlUzd1qFYzTwKJcT/N VhgHWbfA5wkbq1hisVmmMZudKvnKRqvzRQVXlucV1O+2HEOmG80SKanI9Z8M7nYndwBb wXwZwi/wHibyeskExS9+f2aqxBLB6Yl2gWLY2H5mF2eYOp0tuNx+ZkMASgBa2f6+Euhc R9Q2zTnjWW1jDPoFJ1UyMoG1vk0j2FfpC5ob8aeiAylPzXHyiQhT7sd7BpCMofRsvZEA A5H0caYnvMWUGMV7pO45Ju2/8hvDc9kM6NgJtjE4kquldFCQMT7TcXeDoVShK11VGJP+ 2gMw== 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=vPVQAHoD1jLDAkaHUGdOkHJ4xJ8Ixw8gciSTUZrpb64=; b=iYYDM8Rxgk/z8Tbt1nY5hDRrvjKkPHhYut92szZNeS9iJ0uv6VX8z0Xq0BYSiXHexm 2DGm8Ftv67NLkTu0+TPgL9s8PspT6XHSp1EhnI5LS3Q3tRaK3fsi0nu8OZVEkixU1Jd6 hBiBUlksjVoLdv8RgkI3NgXmqSNP1wZi820Kv7G6k3fLnDbqV+nKYj3TheLMxN+14hti LgIPVu+vWvo3Scoxa9pqCGuijyTwEFRV6aHVuFX2lfZ1bRg5cKJOJu/RjScHmzktg4LE SeJ5QKYy5e2q76BJTnou4CjKOhMGWDRla2r87AKKGBkmhM0GTWeO4Uk3NGkiKI5fma2O a9hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bXuKnZrN; 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 b6si2591352edu.567.2021.01.27.23.46.19; Wed, 27 Jan 2021 23:46:42 -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=bXuKnZrN; 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 S231719AbhA1HoY (ORCPT + 99 others); Thu, 28 Jan 2021 02:44:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:35342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbhA1HmK (ORCPT ); Thu, 28 Jan 2021 02:42:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D815064DD1; Thu, 28 Jan 2021 07:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611819689; bh=UIZAl1ypNxIx0VC4863WBaN/fRN2pw975WDiM1ldZGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bXuKnZrNYpxXInKGae/o3bmzevQexIN83M+3UnxY8xgDrBJRnYGrfEMs2pKdOLMke 1A/LQeDq0t99Hwa1TuLGNrAPTD355YKPfzazqeg85TyoVXyVxu++UCgN2Uco9EBDR+ STnAyFRkCoI9UMSiMGJfm6xrrYEC1pqVuooxeT8k= Date: Thu, 28 Jan 2021 08:41:25 +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 Thu, Jan 28, 2021 at 08:31:14AM +0200, Mathias Nyman wrote: > On 28.1.2021 5.38, Howard Yen wrote: > > On Tue, Jan 26, 2021 at 10:19 PM Greg KH wrote: > >> > >> On Fri, Jan 22, 2021 at 05:32:58PM +0200, Mathias Nyman wrote: > >>> > >>> 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 > > > > This patch series is all the changes for the offload hooks currently. > > > > I thought about this, but if I tried to override the functions in > > struct hc_driver, that'll need to > > copy many code to the override function, and it won't follow the > > latest change in the core > > xhci driver. > > > > > > - Howard > > Ok, I see. > > The point I'm trying to make is that there is no way for me to know if > these hooks are the right solution before I see any code using them. > > Is the offloading code ready and public somewhere? There is offload code published in the last few Samsung phone kernels, I want to get that ported to these hooks to see if that works properly. Give me a few days and I'll see if I can get it working, I had a half-finished port around here somewhere... thanks, greg k-h