Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2668599pxb; Tue, 19 Jan 2021 03:10:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9XMpcKlGns1vsVbx5+SjOO/drOrhAPhYI6dQUWSbQcl3bE1GqGgvqv2EsZrD0i+Rs9rSZ X-Received: by 2002:a17:906:4955:: with SMTP id f21mr2694652ejt.384.1611054643124; Tue, 19 Jan 2021 03:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611054643; cv=none; d=google.com; s=arc-20160816; b=z7eKDKJyzDQarO/sYMKQJTRPZqvaKOnl98Ew7S/pLHVf69THWDoMNYwet1+jpmpqA4 qCDZDhARHpy/ikna/tUCRhJzN3e+Xx+E3yN83qsaLsm3W7Vwyw+MtQ6zG47gM56XUrTV GeK3Aq2A71HHjjVJc5YDeU7bR+bo3tOSPVS+KxESYo0yPEWudK95IpSFDp7mr14sm1yp GgHzpxuZR7bOt9vU4TSfM+IlROb/+Z4PzkIEV+exU37pJ6zRTg/oIMnV6YWr/RthKMTV lnpqv95qzd4hX/pSS2aFhcgwCIvK5hrsgCMdjF1/QrQVBTeUHMNTKLimpa4SY3NLcEtQ ZkKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=YXlxgq14VnReTcxjg/LBvkVDEl6P7FQiD3lR26uEf+M=; b=w4yJPGboEE/YiWvzsBunZSX0EWgUUymD5T3YccNkb90WO73M5eYDjBi8Cr2wL5cf39 vPIf1Fb0EaRgR1FKWfORXxEHBX7G5hoSJBmSLY9n5n+ECcCnwttSsXyA6C+H8ToJyOet xa5dLbiI9nKrUR9RMXseM9fmwCNlfPJwcAfC1WQyCCRH+cTIbf7IVM3fqMppMmVfOIb9 t5BpICjNRUJp2vGosDlNULiqNAVIqwXAY1TQoD6dhtHJVaPVCylMVbGU6ehrYDWmNfZq 4dPgBlsJXDWINBZoj45wzM1xmjnDCwztlTVT3/3co3COjBRxVhq3ButpaNq0QPC5ekJ1 usqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=n9ztNgQi; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si7121962edd.134.2021.01.19.03.10.19; Tue, 19 Jan 2021 03:10:43 -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=@google.com header.s=20161025 header.b=n9ztNgQi; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732008AbhASK1h (ORCPT + 99 others); Tue, 19 Jan 2021 05:27:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732018AbhASKMM (ORCPT ); Tue, 19 Jan 2021 05:12:12 -0500 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A574CC061574 for ; Tue, 19 Jan 2021 02:11:25 -0800 (PST) Received: by mail-qv1-xf4a.google.com with SMTP id j5so19171699qvu.22 for ; Tue, 19 Jan 2021 02:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=YXlxgq14VnReTcxjg/LBvkVDEl6P7FQiD3lR26uEf+M=; b=n9ztNgQi+mAAwySt5egAqA2o/ifrV1Ii75qwTpMnEdAI6pDb2Y00BJnlNj/sjetxXx Ll7e97CHvHAtxUJw/J/WqINf2uhNbd2yuV7DrZ0msvCCEISoJYa4JNByBhQOCR/PDxN3 Lst0+9QZSaZGGyUDraseAAUs9OoZJ9HAuTdC6/e2Z+MFxIpR0KRxafFvZj0WO5t/U3ft 3Y7+xONXH2uMoxUps/1p0cQpo710Hl1JbvfVH7KVX/z+2Uq0u44xjbqBrpMEJmyMAYgF oCKD/THQVrS7SRC2po374lxrQvASw/JvNyV+3TTqfcN+SlYk4BfHPg3sub+39nME48Ma xwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=YXlxgq14VnReTcxjg/LBvkVDEl6P7FQiD3lR26uEf+M=; b=KgGazv/KQW0tf/owqJupIAP6icKkyxmMoIcW+blTJFEqnsYJspSJG6hQoknRDbIJWb V5LLaeMntBl6CSvKrxLWP41XoToj+KdF2RrIWTP+s0PozMGVVLZSE7VuXI5IluDM4m5R rRzZFHV1JF7FVsJwZ3zde8e3XOnXQIMAsfYxSZXg0r79oEWm21unLpgsKLfHymQw/woH o6ukcLeyCIZZnVLQZkfr9ajokwPGfhhe6Ge6eJTT+f0UN2U7/P2t2z3RfMJvbaoTe9Dk yyHVeu4Uik+XqNHTVHU9UfuWi1SMJ+nIQ9JrHBDhkJNIkr2qoD0oh+cdsFrTvQmKwLbq 7FDw== X-Gm-Message-State: AOAM531gRQLc7IvpXoDStZPNHkMahsLZdUOwfhoMSQJVphfXlHoTsyxI 3d4Qrxp++Y4eeze+SdNH45KIH8aSr/OSRek= Sender: "howardyen via sendgmr" X-Received: from howardyen.ntc.corp.google.com ([2401:fa00:fc:202:5d06:ba6f:6a89:a201]) (user=howardyen job=sendgmr) by 2002:ad4:476c:: with SMTP id d12mr3421233qvx.20.1611051084664; Tue, 19 Jan 2021 02:11:24 -0800 (PST) Date: Tue, 19 Jan 2021 18:10:40 +0800 Message-Id: <20210119101044.1637023-1-howardyen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog Subject: [PATCH 0/4] add xhci hooks for USB offload From: Howard Yen To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mathias.nyman@intel.com Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Howard Yen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Howard Yen (4): usb: host: add xhci hooks for USB offload usb: host: export symbols for xhci hooks usage usb: xhci-plat: add xhci_plat_priv_overwrite dt-bindings: usb: usb-xhci: add USB offload support .../devicetree/bindings/usb/usb-xhci.txt | 1 + drivers/usb/host/xhci-hub.c | 5 + drivers/usb/host/xhci-mem.c | 99 ++++++++++++++++--- drivers/usb/host/xhci-plat.c | 45 ++++++++- drivers/usb/host/xhci-plat.h | 9 ++ drivers/usb/host/xhci-ring.c | 19 +++- drivers/usb/host/xhci.c | 89 +++++++++++++++++ drivers/usb/host/xhci.h | 38 +++++++ 8 files changed, 289 insertions(+), 16 deletions(-) -- 2.30.0.284.gd98b1dd5eaa7-goog