Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4605510pxb; Tue, 22 Feb 2022 02:23:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYpFR4LUzB8btKBmdKIWddaXUJhrhjtf6/EDOtMi2Y5vLiDMlUMpzTYzxdmbOJYVbhbk1B X-Received: by 2002:a50:c29a:0:b0:400:47b6:a928 with SMTP id o26-20020a50c29a000000b0040047b6a928mr25671774edf.144.1645525384563; Tue, 22 Feb 2022 02:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645525384; cv=none; d=google.com; s=arc-20160816; b=LsMvbD2IcCykuIUgU78D0APMxziHObMRAXEGEpUNu6D5knQRweqtyxg048J14ivI8O M03uWs00uXuGC4bMxQx97ehtXXS+nARQc3SMeAaSN6uR+yjDk1e2wmk0P8IkCo1o2I9b nkZrmXMtiNWaE/aTpyEoEI/mjmXy+7vHVlLfBgD5g791kzDdJyDssWwboTpHoRIp/W+w 1TdMcD4RaarzDq2Jw2NrtN6JkuBL22I0ozLQY0SCKku4EnvxXeKsFLZ+J2n5/M95tDGJ ai0mQBGvMjUi0JrIUHEgdNPAd3QmSZcPHosrcGWhYKbCAE5MkQbtD4se15dp9wleaP0t yy9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LFQp/ZxtUokCWlxkpsscjeCoS50+fMvujr/3gkeQpGM=; b=W9jTTbcPd/8y7ujxxKIhSKdFwXT3eld1cPz2qk8iJIufQjC+s32F/LQsdComOUBvv8 IIENp8L6FM78B6p1H2uMRGpi/DScGFjGzexZl5ZGGLdsTddA47UsVVo9TpbAmXlSh6z3 las9fEuBWsLkgaLeSwvu7Ksl7MOZWE7fbzpSaAKS+mIZ7aqFa/uPnSXDnSQ6clwSJF78 ThbPdLUEDM/fblnkyNxXgsajZIWx4S1+0cKHe5rT358ry/1s7GZjnh9nX5BX/HfU+LIq jB7qAjKFJLE4x3jI0X0bHWtzSCXC3npQLXIpmCJi31YLN71nPfvfpgjKMP4jylLPF9cm ZShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mFGAVa8g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5si9821339edj.212.2022.02.22.02.22.40; Tue, 22 Feb 2022 02:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mFGAVa8g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbiBVJ1z (ORCPT + 99 others); Tue, 22 Feb 2022 04:27:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbiBVJ1t (ORCPT ); Tue, 22 Feb 2022 04:27:49 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952CEB0C47; Tue, 22 Feb 2022 01:27:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645522044; x=1677058044; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=LFQp/ZxtUokCWlxkpsscjeCoS50+fMvujr/3gkeQpGM=; b=mFGAVa8g/gQUw/mvB2CQsMC3iKo56IwLVyYU9cYH5jEm9X6y8ik6i7Sr Rrw1marApJddHVVAqMlmkp3fQOOM/DxFIvC8OtBrwIMim1HRrTHBUgxhr QtXy8tZKHbhbPLX7pYkJn27ZqsT5mgQ4leVxefqEVed1fSv82IXJDKaQx 0=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Feb 2022 01:27:24 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 01:27:23 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 22 Feb 2022 01:27:23 -0800 Received: from [10.216.35.124] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Tue, 22 Feb 2022 01:27:18 -0800 Message-ID: Date: Tue, 22 Feb 2022 14:57:14 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] usb: xhci: refactor quirks and plat private data Content-Language: en-US To: Stephen Boyd , Aswath Govindraju , Doug Anderson , Felipe Balbi , Greg Kroah-Hartman , "Mathias Nyman" , Matthias Kaehlcke , Pawel Laszczak , Peter Chen , Roger Quadros CC: , , , , References: <1644949454-814-1-git-send-email-quic_c_sanm@quicinc.com> <1644949454-814-2-git-send-email-quic_c_sanm@quicinc.com> From: Sandeep Maheswaram In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 2/16/2022 7:43 AM, Stephen Boyd wrote: > 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. okay. Will add in next version. > >> 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? okay.  Will do in next version. >> + >> +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 */