Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2113504pxb; Fri, 25 Mar 2022 11:19:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9rA8O315YplfqptfF3fU365OwOH/MOOss+53OL3hFQSGJWLNvVfAiUipUTjD9uR/NwM5X X-Received: by 2002:a17:90a:1389:b0:1c7:a9e0:ef23 with SMTP id i9-20020a17090a138900b001c7a9e0ef23mr14254038pja.138.1648232355559; Fri, 25 Mar 2022 11:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232355; cv=none; d=google.com; s=arc-20160816; b=bkA8uGjsF16y3UxMDGseKF/rJei5vbMffa4OGAxtykexl8wChP5CU8BiXA2QT+ye26 BQ/0kqHkWZvMHKaiBBi98NvB35gUESDLEwn4WDOIy3McS+ttIETx6kLjniY3rk/C7rE5 cXrJzebVlo6L2CDf6oNURCiqchK8s5Z+Hor97z3Rv/ioIhWGoUOxQUmug+eZ/W24AiGr tDQpMkZaZc5FKwh10ErC/Yx6XhHCxik3MDCvF8AsZtHw7DRAPInFw3BZvzqaRWFY01Ks JVi4KJjpkXycVW+UUitW+p/IoBx24hRy9DgdTd+BX8gRDCy6xPWhFOUdIbLQVoMY0Bym liCw== 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; bh=5/xCx5Y2e0Klyd/HbXihrZqcDQDT2V+46V0GBs4k8mk=; b=F4f6fVr6/uR+D+prQ5TrIzh6qn7oOW8lvdwYbWF0hIoauj5CzxyYd3Mhi5QkaxbjoO sPnmfPnL33BaIaqI7B1bMb6zxbm4d6rd3pfHvV7V5y7rM3R0o+OiEJvK5RZ31wCgPD8P bLF549Ds6Ek64RdEpRWzAim15UK10oEdQvG8/51yq0x/1kxSd7OcTyEqVqP/yN8Rl85r inQoYLzLmj0dMHAyZN3yrWLik0uBKvx5ltZCtBe8gNcHhxgPNAgGOIajfFsPvgNjXc/+ BDHkeQqAOBYiWt0y/QnF7mRV31usm/1uRnGs1DPSmySTqKDSrY93kKmmImB5EcaviMmF HWVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g5-20020a056a000b8500b004fab5b9a1e6si3680912pfj.252.2022.03.25.11.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:19:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE388160C04; Fri, 25 Mar 2022 10:47:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343753AbiCYLiM (ORCPT + 99 others); Fri, 25 Mar 2022 07:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356931AbiCYLh6 (ORCPT ); Fri, 25 Mar 2022 07:37:58 -0400 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E96BD7DA; Fri, 25 Mar 2022 04:36:23 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id w21so5923656wra.2; Fri, 25 Mar 2022 04:36:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=5/xCx5Y2e0Klyd/HbXihrZqcDQDT2V+46V0GBs4k8mk=; b=rDQf89hUvx34pCOLWGZCNqei98dKC/P/8jK/LzBHGAaTQCvQxDa5DYlBDA8c9UwBor K2HRPVMKPcbQZuY8tkPp8l/tCrRoAwD63D6eFW/cp60wr7Z8NcuEzLQMAE6mNxKNgxyx 7FhncPHm6rxzVVrIViIX60t6Yc/v0OQAxe43ZzMyuTASK8ym+kSXQnCBRBGviQfkhKzw WWtU2MaeHnS/jATfhtdrVtX8noVCfCpRArgUVoKPgyphgpUAeTR1p0gB/SaCksL5nZWS oraJdsp9jU8my/VCQUoaylZWzSfpOyfExoGnVKGibEeuDUWmaY8MjM+C/TEWH5BrU0ih jyig== X-Gm-Message-State: AOAM530VIQxPY2F6xiWrghMPfFp6B2vC8rR+f0EkC5GXEMNvcooT5eJi bIekemMyGbDbJmpnsJqwFcc= X-Received: by 2002:adf:d1c2:0:b0:205:7f2f:5043 with SMTP id b2-20020adfd1c2000000b002057f2f5043mr8882517wrd.238.1648208181638; Fri, 25 Mar 2022 04:36:21 -0700 (PDT) Received: from [192.168.0.159] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.googlemail.com with ESMTPSA id g1-20020a1c4e01000000b003899c8053e1sm5565941wmh.41.2022.03.25.04.36.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 04:36:21 -0700 (PDT) Message-ID: <382c4fae-95c5-af26-5d54-fa7ae7422b37@kernel.org> Date: Fri, 25 Mar 2022 12:36:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v1 1/4] usb: host: export symbols for xhci hooks usage Content-Language: en-US To: Jung Daehwan Cc: Mathias Nyman , Greg Kroah-Hartman , "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , "chihhao . chen" , sc.suh@samsung.com, cpgs@samsung.com, cpgsproxy5@samsung.com References: <1646375038-72082-1-git-send-email-dh10.jung@samsung.com> <252651381.41646375583002.JavaMail.epsvc@epcpadp4> <1983025922.01648006681661.JavaMail.epsvc@epcpadp4> <105eaeec-d77e-b0eb-86ad-a88c7446ca98@kernel.org> <1295226194.41648172284403.JavaMail.epsvc@epcpadp4> From: Krzysztof Kozlowski In-Reply-To: <1295226194.41648172284403.JavaMail.epsvc@epcpadp4> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,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 On 25/03/2022 02:28, Jung Daehwan wrote: > On Wed, Mar 23, 2022 at 10:41:23AM +0100, Krzysztof Kozlowski wrote: >> On 23/03/2022 03:58, Jung Daehwan wrote: >>> On Mon, Mar 07, 2022 at 10:59:06AM +0100, Krzysztof Kozlowski wrote: >>>> On 04/03/2022 07:23, Daehwan Jung wrote: >>>>> Export symbols for xhci hooks usage: >>>>> xhci_ring_free >>>>> - Allow xhci hook to free xhci_ring. >>>> >>>> Instead of copying-pasting the name of function, please explain why do >>>> you need these symbols exported. >>>> >>>> The "Why" is actually one of most important questions, because "what is >>>> this patch doing" we can easily see... >>>> >>>>> >>>>> xhci_get_slot_ctx >>>>> - Allow xhci hook to get slot_ctx from the xhci_container_ctx >>>>> for getting the slot_ctx information to know which slot is >>>>> offloading and compare the context in remote subsystem memory >>>>> if needed. >>>>> >>>> >>>> >>>> Best regards, >>>> Krzysztof >>>> >>> >>> Hi Krzysztof >>> >>> xhci_ring_free has been removed from v3.. >>> The reason why I want to export is for managing vendor specific ring. >>> I want to alloc and free vendor specific ring on specific address. >>> It's done with xhci hooks. >> >> It's better, but still does not explain why these have to be exported. >> Please mention where are these hooks going to be. Where are they >> implemented. I actually expect all of these exports to be used in your >> patchset. >> >> Best regards, >> Krzysztof >> > > OK. How about adding call stack like below? > > xhci_free_endpoint_ring -> xhci_vendor_free_transfer_ring(xhck hooks > ops) -> xhci_ring_free What I would like to see is high level explanation, why do you need these functions exported. Such call trace does not answer this, because you do not need to export functions just to call the. You need to export them for modules, so this means that some modules (which - need names) will be using these functions. Three or four sentences are usually enough to explain it. Best regards, Krzysztof