From mboxrd@z Thu Jan 1 00:00:00 1970 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 D7E50C433F5 for ; Tue, 26 Apr 2022 18:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352103AbiDZSn0 (ORCPT ); Tue, 26 Apr 2022 14:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352047AbiDZSnW (ORCPT ); Tue, 26 Apr 2022 14:43:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F9E2B1EB; Tue, 26 Apr 2022 11:40:14 -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 AE6C9B82176; Tue, 26 Apr 2022 18:40:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A3BC385A4; Tue, 26 Apr 2022 18:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650998411; bh=AYsBxfWvabFoIiAlBnqJnSexQOnkJkKiBGCU1vWvf+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O8gJPHLk/PA+yloIGgxyu+8YTxcEWBSzdg2E7Y9RNVKbPWxQpmiVr37SIxRXglBZp xubxoMBYJA+9RfJiTtfCxRuuTJsLTiM5gLJHAS63evPa14ZB53VUsjTreArlsuHSXH cX/fw0gjXTDrvppKw6AAPts/4lPpL49af6Oqyurw= Date: Tue, 26 Apr 2022 20:40:07 +0200 From: Greg Kroah-Hartman To: Jung Daehwan 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> <20220426102709.GA175152@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26, 2022 at 12:31:33PM +0200, Greg Kroah-Hartman wrote: > On Tue, Apr 26, 2022 at 07:27:09PM +0900, Jung Daehwan wrote: > > On Tue, Apr 26, 2022 at 11:54:16AM +0200, Greg Kroah-Hartman wrote: > > > 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 > > > > > > > I didn't get warnings in my environment. I tested to build default config + > > xhci_exynos by make command. Is there compile option to check it? > > make "C=1" And now 0-day reported it as well: https://lore.kernel.org/r/202204262306.mzMIKFKO-lkp@intel.com