Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3886735ioa; Tue, 26 Apr 2022 11:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5VQMsmd4kDUKqqomVX5zdZ8ks4ze5YR7O60u6I4UQg71aOghSAS18zmw1uHLbZSTHvB92 X-Received: by 2002:a17:907:8a05:b0:6f0:12ec:d12c with SMTP id sc5-20020a1709078a0500b006f012ecd12cmr23331273ejc.646.1650998458234; Tue, 26 Apr 2022 11:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650998458; cv=none; d=google.com; s=arc-20160816; b=OZSTSasryHq1Wx04gWq4gDEU2lIEj6qTkwBI6dBdpbCeJpAmMvt3Ej1xNU4SG/85AD Hu7M4PUNjr5nBxSvrHSNWS+Z+iNuacbVSXoW+/Accta5L26Y3B26ktdHfWdL73nuQF3e kLPwldBxn/kTZQRxUGyYz23hYmJ9gMPrSfLqCi/f9s2PP7SA5Q9Egkb70q6soX8JvNin B4W116K/767ZY/uGuMok2yQB8gVTsyJYZuZwGrnfwHrWyohzzqpG7qUTaHo+Y0UK4mNM juQEdVj19Eaze9AZxSG5gUAuY3D8KhXOHooDOa2fCOwPhfdvvh0ZlSwmWLetQa5kPcOc WPyg== 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=S/1xoymDFzqP13FjuATu/0e8NGggcMdYmOpe6flJ/ts=; b=Ytma4jfZWOLUqeyYGAa78fC+s4P80e1izklq6JbB46zzPaOurDddMFNBiKzpHgkffW 0PCDHWpOZdRzYRfaWjJcTW7vGh3iFGVd4yFG5Wb6M6aL8MzFwb7p/OvcVvrx9iH6DlOa To3geSHr/eHk+Z4WUGqcOMn//htRcPiKuwbhlmvM6KukVHtqtfDLhsun/CpaXDjmFjJg RJ2fadwc/lWLkbYHUvmt3jH+u2ODDd8l+5ydIW4NzugosMcWIwljaKlR4tki0jIMsqp7 za80Qa2lsZFvCBNv5CFV+/UDHeBd1IuFMhLV9gO4s9OdT7jtfpgMvqjkXxIFvFC9G6wU SYMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IHzpt6bZ; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hy12-20020a1709068a6c00b006f38baab73fsi6156206ejc.530.2022.04.26.11.40.33; Tue, 26 Apr 2022 11:40:58 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=IHzpt6bZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348217AbiDZKZu (ORCPT + 99 others); Tue, 26 Apr 2022 06:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348835AbiDZKX2 (ORCPT ); Tue, 26 Apr 2022 06:23:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABB3340D6; Tue, 26 Apr 2022 02:54:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 04B68B81D43; Tue, 26 Apr 2022 09:54:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DFE9C385A4; Tue, 26 Apr 2022 09:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650966860; bh=dgZLzHPox+J+i5Ksh1CcZ3C8j6e4jGpAgkA7LMle0ME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IHzpt6bZh9xKCjuCxn89GOm1pLinNuvXh2c5ZRsm2+sDH4KUK9TG93MtfpcRuR8OU JzE0dWvLvgMVOCc4RRzPzpilvDdVxVOF9z0qKpmbGarVh1ZynncQiAy4kjdXGsawOK EcRjRVZzafDnrOBU1S74oY9X+/AEHKYG5ZL3ZxeU= Date: Tue, 26 Apr 2022 11:54:16 +0200 From: Greg Kroah-Hartman To: Daehwan Jung Cc: Mathias Nyman , "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , sc.suh@samsung.com, Krzysztof Kozlowski Subject: Re: [PATCH v4 1/5] usb: host: export symbols for xhci-exynos to use xhci hooks Message-ID: References: <1650964728-175347-1-git-send-email-dh10.jung@samsung.com> <1650964728-175347-2-git-send-email-dh10.jung@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1650964728-175347-2-git-send-email-dh10.jung@samsung.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, Apr 26, 2022 at 06:18:44PM +0900, Daehwan Jung wrote: > Export symbols for xhci hooks usage: > xhci_get_slot_ctx > xhci_get_endpoint_address > - Allow xhci hook to get ep_ctx from the xhci_container_ctx for > getting the ep_ctx information to know which ep is offloading and > comparing the context in remote subsystem memory if needed. > > xhci_ring_alloc > - Allow xhci hook to allocate vendor specific ring. Vendors could > alloc additional event ring. > > xhci_trb_virt_to_dma > - Used to retrieve the DMA address of vendor specific ring. Vendors > could get dequeue address of event ring. > > xhci_segment_free > xhci_link_segments > - Allow xhci hook to handle vendor specific segment. Vendors could > directly free or link segments of vendor specific ring. > > xhci_initialize_ring_info > - Allow xhci hook to initialize vendor specific ring. > > xhci_check_trb_in_td_math > - Allow xhci hook to Check TRB math for validation. Vendors could > check trb when allocating vendor specific ring. > > xhci_address_device > - Allow override to give configuration info to Co-processor. > > xhci_bus_suspend > xhci_bus_resume > - Allow override of suspend and resume for power scenario. > > xhci_remove_stream_mapping > - Allow to xhci hook to remove stream mapping. Vendors need to do it > when free-ing vendor specific ring if it's stream type. > For the static functions that you are now exporting, they need to have their functions declared in a .h file. If not, you now get warnings when you run sparse after applying this commit, right? thanks, greg k-h