Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3548628ioa; Tue, 26 Apr 2022 05:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBFqBVBv+3KFvkxCNSrMwHS7CGtp59O8GC+SBCAI+Ax9bdoTq6WZlpuwUhCJPusaTuTRUM X-Received: by 2002:a17:906:d555:b0:6da:ac8c:f66b with SMTP id cr21-20020a170906d55500b006daac8cf66bmr21069146ejc.107.1650977710996; Tue, 26 Apr 2022 05:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650977710; cv=none; d=google.com; s=arc-20160816; b=yro1ydDqDkYwcKskno8LHKhzHnfcjA3fobAnLTN8SWfIXRi0A6IzLl+Pe84he/LIy6 xOHAeb+MXsZgevRSk46BJ3qxHLNjq7e29eB3quXXcMFaInQN8P2TiHkLpiCzvtUeNXp7 98qGt0zRJikWA1AMKH2wqWkt6StZ2mYdTkHmbqYQwYKLJopAIOJnWw5KNdN6a5x6w/6n Bg/D2ywNl9obWKlmldOvw+TKRhv7H9t/xeQZk0Yay97O6tQ95h8tmjW20pfcB8CS0hRo dFa6M7JIshf+IaEYoUxZDkfATR6678h47Avf3DUfRqcFzl2UrUfvuYBrVsgNPwvqzLiF Kbag== 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=6gWiV2m8Jl8Kgxu1ApSlQwxSNAwOYfQaA4GFaCE4n28=; b=tyZPn0p51BOI3kJKhMjptdjw93tEZwNGKfbxNaQR4qZNaE2fFL1B7wV1ntZ8/0FP+4 egfkLRfhyyymCGb8RwOf3YOikz6Uq+MHIr7y14xCM+JOBQCLo9SnMfbmi2YLQMb2nqjf 1myI0prKVQgB+c253UhXJGjfPP/u8OxdqLWpQZyeST06ppf2kYmy+NIkRnwqaBfyZa0p sAxdP/HiJ3raF7+b4xUizu0c8K5I/7Zn7c3tVGO9Y8F3ruEEJxt/GSEVxHv9XObVSc9c r76PfaGE0S4LYpLgImMgzqnZkE6JfVmpid4698gAbyFvVH6KdTteD/Idyp2u8uaHCAhi gqAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X1WQLUkM; 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 g4-20020a170906198400b006df76385eb8si16624641ejd.856.2022.04.26.05.54.45; Tue, 26 Apr 2022 05:55:10 -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=X1WQLUkM; 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 S1349125AbiDZKl4 (ORCPT + 99 others); Tue, 26 Apr 2022 06:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349078AbiDZKkz (ORCPT ); Tue, 26 Apr 2022 06:40:55 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF2B4132C; Tue, 26 Apr 2022 03:31:40 -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 sin.source.kernel.org (Postfix) with ESMTPS id ACF18CE1C05; Tue, 26 Apr 2022 10:31:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A002CC385AF; Tue, 26 Apr 2022 10:31:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650969097; bh=G2ZTitD/EVuSTT3gVi8lMCMvmV58yHmWi/5BPeES7+k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1WQLUkMilXrPy39ia/9XBYPW9CMsQjHGtM0E5Dj0GyRNEsSqjxH31Ue7zn7yrS1e IeOgXhppFmG97EkS1zzuSWuzgvW0iJ2M85P8r2n68hv0ek8p2kdeJ1N2TeejcSf4Dk GjOjLGtCxMZlmp2E3hK9Wodh0VOiVuorh1SYmiAw= Date: Tue, 26 Apr 2022 12:31:33 +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: <20220426102709.GA175152@ubuntu> 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 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"