Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp566714pxb; Tue, 15 Feb 2022 22:17:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzZEfSG+URSZzZm8uZCSe5i/0gJ7a6981uDL+J8GquwnJxPZqks8Z3N9Fu42zTVJR0+5na X-Received: by 2002:a63:914b:0:b0:373:520f:d03b with SMTP id l72-20020a63914b000000b00373520fd03bmr1049979pge.123.1644992267950; Tue, 15 Feb 2022 22:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992267; cv=none; d=google.com; s=arc-20160816; b=XjRszCZOzE7xyQNy1eES5mnWuDqZixsL03Lm267ihZUIvQ1RVzbV0/McAZeQuF4kyG Aku47jnUK2tO7OlHSmR1yugGvyAaFgOIg4sOLeY127gQdldpjylnGzqN0JsWUm03htbw DfCnkBgEi7cgEOBxzQgr0A+9w5J2897gm+DfD91R0WrwQB5xWDXG08Ar6hpBvrlz2abu rn5AWS0fjFxiCJLrD5zqThbL15CaSpZDjWOYjs/QWs1Mvu3zfhMoD4A+Jm8UakU+xcNf psZSg5axeIdHM4DBhe0h8oA+6s9WjFyimq3oXM+Shn/LHZlRSuNBil4krdZK397jz/eW ljLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=taHbG7vguVUZGIRIt0xRnIiEKtB/IGIttgv3NTDr6gs=; b=QvgmChqTNUplNaLQ28M8xItnEfU0HHHE7Q7P9GaXL8DbVNL/6lfDQAiMancfthrsuG NoYo0YR9HVhzXKrfUaGoPzFbtFYNOJoec7xp07K+AYn8OFYJhLzt8/SQVgqF0xTFp1E1 7Q666YmKcbwYmtl6yNAYmlpOXl3NYywtr8VGeGYx1rrxSMh7Dm5NPfshERKLC+VGV1gm E0hQ87rzba1hDTqk24UTwHyEPS38pL31JRIEZLYBc73XoNyj7ubuw0IXMG8kQef1kv+V 1MrRUvJ+8UhSYUdVIWvZYHd2jfBPwsNm+5cpMYv8jQWODqXjK3uQq5dhRDUdgfsQ0gqz cvjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=h2UalFiY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u18si19226229plg.28.2022.02.15.22.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:17:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=h2UalFiY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D810D192F35; Tue, 15 Feb 2022 22:16:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343579AbiBPCNl (ORCPT + 99 others); Tue, 15 Feb 2022 21:13:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343573AbiBPCNc (ORCPT ); Tue, 15 Feb 2022 21:13:32 -0500 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B76871EC6F for ; Tue, 15 Feb 2022 18:13:20 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id u25-20020a4ad0d9000000b002e8d4370689so852662oor.12 for ; Tue, 15 Feb 2022 18:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=taHbG7vguVUZGIRIt0xRnIiEKtB/IGIttgv3NTDr6gs=; b=h2UalFiYpNDlTDki+0A62tKmSWsYYNjV6hmMaPMU+3FpXazninHX/6hheyBNbTxxZl gymYvx/OspLZBOPsQO169uYqB3bhtHeh9CfE3YrAupjKc7rF505e6mTSvbL0NhmgjaGN NvxV6F0nhliU4tVjhgsJUwgghCPfZpjxD9tFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=taHbG7vguVUZGIRIt0xRnIiEKtB/IGIttgv3NTDr6gs=; b=ApYkzDyqZ4149hN/m5Jh9S5D3po4wkNKiYofL5GT83u5X+sQH14jaQD01vb56nmGA0 4wOQl+xIcPTf19PhP2oi2V8XvGJPCapQmf03eCbPrw7cArdXywp0N188y3JVXfGgfwOJ SnGH+Yk2On8CWJ0wtHb4st15EN3DTlyACYHObucQkmual0ldrZWoPI0A1vuI3pob6Nej g2UccOYg2xNv5qbU+Pp0RqPHo1ViCzxjpvxpHh9H7sfAi0t2bnF9vOyM+n5lZVRznwBb 0X+whGRproZ8AP1fjDQhxqKQoQQtgNmMI5c0fjExA6SQQGgnEvwWze8dQoi5zlbh5Se3 EaxA== X-Gm-Message-State: AOAM533uX2b3EQC/r4LtEzKzkQhMHD9E2PoseOzh35q67UNwfhcLpU7c rfg6ScZw4OqCnPuXV8ad7CE3V7/S5L/PD9v46moJ4Q== X-Received: by 2002:a4a:a9cf:0:b0:2e9:5c75:e242 with SMTP id h15-20020a4aa9cf000000b002e95c75e242mr220837oon.25.1644977599258; Tue, 15 Feb 2022 18:13:19 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 15 Feb 2022 18:13:18 -0800 MIME-Version: 1.0 In-Reply-To: <1644949454-814-2-git-send-email-quic_c_sanm@quicinc.com> References: <1644949454-814-1-git-send-email-quic_c_sanm@quicinc.com> <1644949454-814-2-git-send-email-quic_c_sanm@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Tue, 15 Feb 2022 18:13:18 -0800 Message-ID: Subject: Re: [PATCH 1/2] usb: xhci: refactor quirks and plat private data To: Aswath Govindraju , Doug Anderson , Felipe Balbi , Greg Kroah-Hartman , Mathias Nyman , Matthias Kaehlcke , Pawel Laszczak , Peter Chen , Roger Quadros , Sandeep Maheswaram Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sandeep Maheswaram (2022-02-15 10:24:13) > From: Pavankumar Kondeti > > This refactoring allows drivers like dwc3 host glue driver to > specify their xhci quirks. > > Signed-off-by: Pavankumar Kondeti Your SoB should be here as well. > diff --git a/include/linux/usb/xhci-plat.h b/include/linux/usb/xhci-plat.h > new file mode 100644 > index 0000000..58a56ae > --- /dev/null > +++ b/include/linux/usb/xhci-plat.h > @@ -0,0 +1,24 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * xhci-plat.h - xHCI host controller driver platform Bus Glue. > + * > + * Copyright (C) 2015 Renesas Electronics Corporation > + */ > + > +#ifndef _XHCI_PLAT_H > +#define _XHCI_PLAT_H > + > +#include > +#include It would be great to remove this include and forward declare struct usb_hcd instead to avoid include hell. Maybe a followup patch? > + > +struct xhci_plat_priv { > + const char *firmware_name; > + unsigned long long quirks; > + int (*plat_setup)(struct usb_hcd *hcd); > + void (*plat_start)(struct usb_hcd *hcd); > + int (*init_quirk)(struct usb_hcd *hcd); > + int (*suspend_quirk)(struct usb_hcd *hcd); > + int (*resume_quirk)(struct usb_hcd *hcd); > +}; > + > +#endif /* _XHCI_PLAT_H */