From patchwork Thu Oct 27 00:40:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert Wang X-Patchwork-Id: 13021478 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52D52C38A2D for ; Thu, 27 Oct 2022 00:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233512AbiJ0Ak7 (ORCPT ); Wed, 26 Oct 2022 20:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiJ0Ak6 (ORCPT ); Wed, 26 Oct 2022 20:40:58 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BA265544 for ; Wed, 26 Oct 2022 17:40:57 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id q93-20020a17090a1b6600b0021311ab9082so2083160pjq.7 for ; Wed, 26 Oct 2022 17:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=r76g/6spv9g1Vx7pGAOQ0mYI/4RxLKyMJDOpWAIVYAQ=; b=FhaaIA1zM7cRdqoeYOiGpHimWQQll1lykHNAmN+eOK4dorSUpc7Wtcm9KxhCue6/jw cg8IM3bLSysbBbqFNMGjssdIXvIh0tLMw8VQEbyubCe6Zr2fVNy92g2lsIL/H+fPmHVx c7CVnW8RyvhOHpfdUcbmFjeU/nUHUg3ONtpNQi15gCT5W3elCsXBOS0BIvNsgrnp+DWw LaBsNPprJh5greUGyvekj3wGWPTplnn79/81PqQKCnZShRKOZS/ipNNWLkW6D/sSUFIM uBs7WSo/nXEkNexbsEkLQzio9nFlgscv7mwWBrXIK/N85hVgRCCV0v0tWiem2t2ItIF6 cNwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=r76g/6spv9g1Vx7pGAOQ0mYI/4RxLKyMJDOpWAIVYAQ=; b=h3c7iGn6poxxJFM3i9MPF6ZGZcZgG4yigiUHG3fNd5lHdeK4BMWqaP97zx19Cyhp2a pHRJPTbdDusNz8y3tkAaKxxOnahflOZQ34X9DYMmLWspaaCzWVTOAkprV6zfnZ/Kx3Ql 8ohzDz/HnQRvIp8UjKQYz52OPuyGHZl3nldfWGI56K6BFvYZ+SOl0t250NQjB/cVI6cw htyfrOSurhKwKT1RBB7FFnQrfUuFXlS+6yw9MUTvxPMBAO2QkBC0TQjIdxWGrm+pEx6S Qm06ajTOkSMlt3bRoRoqi0dVg9N4wiyq4DS9y8DRqTGTKcOS5fC0097gw7GBxfJceYLK 2Olg== X-Gm-Message-State: ACrzQf0QBL5nj7rGuzHxkuA07ra3Si5ZRu+ZaAdQdi/QJR31ofoV0A68 HAlIXnvQx3v42k6HN8Bit53jdihf9ZSYjjDU8No= X-Google-Smtp-Source: AMsMyM5KXF/tklp2znsSxvk0Lb5YFt64upBIqpZJs+ukW53rNgVEbOh3laq6eqxVy85RaTyJ+U/8fXwMIbQy73NAbHI= X-Received: from albertccwang.ntc.corp.google.com ([2401:fa00:fc:202:57bd:c29a:f9b1:f09c]) (user=albertccwang job=sendgmr) by 2002:a17:90b:4c48:b0:20d:5c55:b8a8 with SMTP id np8-20020a17090b4c4800b0020d5c55b8a8mr7175513pjb.207.1666831257131; Wed, 26 Oct 2022 17:40:57 -0700 (PDT) Date: Thu, 27 Oct 2022 08:40:47 +0800 Message-Id: <20221027004050.4192111-1-albertccwang@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Subject: [PATCH 0/3] add xhci hooks for USB offload From: Albert Wang To: mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: badhri@google.com, howardyen@google.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Albert Wang Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patchset is to proviode the USB offload function which allows to offload some xHCI operations on co-processor. *** BLURB HERE *** Albert Wang (1): usb: host: add the xhci offload hooks implementations Howard Yen (2): usb: host: add xhci hooks for USB offload usb: xhci-plat: add xhci_plat_priv_overwrite drivers/usb/host/xhci-mem.c | 97 +++++- drivers/usb/host/xhci-offload-impl.c | 492 +++++++++++++++++++++++++++ drivers/usb/host/xhci-plat.c | 43 +++ drivers/usb/host/xhci-plat.h | 8 + drivers/usb/host/xhci.c | 21 ++ drivers/usb/host/xhci.h | 31 ++ 6 files changed, 679 insertions(+), 13 deletions(-) create mode 100644 drivers/usb/host/xhci-offload-impl.c