Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2680654pxb; Tue, 19 Jan 2021 03:31:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjFjT21HWN7/7SwY/tAW94Oj3S2Vtxbug35yd2CYmlaQ1c1oTiMCldmFExLkeV1l901ZVc X-Received: by 2002:a17:906:c1d9:: with SMTP id bw25mr2615792ejb.452.1611055877619; Tue, 19 Jan 2021 03:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611055877; cv=none; d=google.com; s=arc-20160816; b=A9E8fb1Onk1tAagi43hmlDPzGMWs0zSC4FLeV/iHW6bsavavGTF3NawKGpZDTuqKC/ 8x2yTBVO4lxTA1G5Xy0pJcaXV6hDG9YAa8SDXKIg9HRd6opXqL+auwAB85Uvb63MzR1e o25/+TXnWiL4xMUE/oTBEc02mzVivdSv5BPdgNmaHoLgmjSdLAhp92zT36dLIcvaIJKq Ebf8LnikRY0vDFFpqTrSoWH1qFIW1vok4r4MJwu6da79A5YPxLOPNu4xjRMTiMpbupaz 23qRipfH1AqLVkWjhDpsnH/5h7TJncY7djSqro50BaRWHju+bEgpemSiGMklFztlNGPW U8PA== 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=lk/diltqgdlIpqhHeHv5burEkhOrGtxZ40SmtLLUC7Q=; b=XSFhcx0WJ7YUINsloWhk+FLkuP2US+mX7EvBg07W/KRDfnx8howVfWHRAlWtpxG0/t hQNlmhOwbMNt6xMmYPIdFSiuLVg0I5o8kKmGTfhM91iHjgArw5R2FrLrwMvccVz1S3r4 aoQp21j09LdNzG9IIEVsMwWmQ6CFCI+7p2YkyalR6/Y3JPHK30zKigeK+XKxDIpTjvkE WJVWqGxJfNpBUYFQQhPqjn/kcQmKiYh6mN/c2nGehGxyCQLPtn3rYYdbvCeYDNdcZmaN QqQWcl7SvuOrvV5XvmvZYrs27XHlohAaCgmkRgrKxnlYOkdVZ2OJXUw0sdiEUtwlwhj8 aNKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UR8Jsg+m; 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 g5si2114450edv.276.2021.01.19.03.30.54; Tue, 19 Jan 2021 03:31:17 -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=UR8Jsg+m; 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 S2404346AbhASKex (ORCPT + 99 others); Tue, 19 Jan 2021 05:34:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:41638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389369AbhASKX1 (ORCPT ); Tue, 19 Jan 2021 05:23:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4E7323117; Tue, 19 Jan 2021 10:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611051766; bh=ZCWD/b7A3OwSWmg8JXwsE+BsDPVkRktwRfyNPO6lUdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UR8Jsg+mtUefwVHLkFSOyOYRGJOn/FgSapdFW7e+NAyIxOesltcdss4GA/ncuPXH1 Iq+lN2DMdA7/4RmShHjcaMGDRxQAhU4tua2Mauvf8YntfgBpSLPAd+UJ1wz3pooc+P n7NoWJytThrmgGbwLYaloNtXMc+8P4137vFR9DAs= Date: Tue, 19 Jan 2021 11:22:43 +0100 From: Greg KH To: Howard Yen Cc: robh+dt@kernel.org, mathias.nyman@intel.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] dt-bindings: usb: usb-xhci: add USB offload support Message-ID: References: <20210119101044.1637023-1-howardyen@google.com> <20210119101044.1637023-5-howardyen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119101044.1637023-5-howardyen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 06:10:44PM +0800, Howard Yen wrote: > Document USB offload support for usb-xhci. > > For example: > > &usbdrd_dwc3 { > ... > /* support usb offloading, 0: disabled, 1: audio */ > offload = <1>; > ... > }; > > Signed-off-by: Howard Yen > --- > Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt > index b120dd6612a2..aab1fd499f15 100644 > --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt > +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt > @@ -46,6 +46,7 @@ Optional properties: > - quirk-broken-port-ped: set if the controller has broken port disable mechanism > - imod-interval-ns: default interrupt moderation interval is 5000ns > - phys : see usb-hcd.yaml in the current directory > + - offload: supporting USB offload feature, 0: disabled, 1: audio Why does the "type" of offload matter, shouldn't it just be: 0: disabled, 1: enabled ? And in thinking about it some more, why does this need to be a binding at all, shouldn't this just be an issue if the platform-specific ops are available or not, meaning no DT change should be needed at all? thanks, greg k-h