Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3162611lqp; Tue, 26 Mar 2024 00:56:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAGU13yGP0Uy5PS6eXDhpRVI/+J4VwlkKAUSbx9x2KdWF5kKGQRhzLuS9/yeDmICWpIjQDwsbjGV8UN/v9guUyuLNZ9a6l58B03MFD5Q== X-Google-Smtp-Source: AGHT+IGsjZTQlcWWKXnTwA1sAkJj3oEFZxwyun0rhI00uRC/ZfsVckE4mszhgtUMBFsCm9YngnCY X-Received: by 2002:a05:6122:4110:b0:4c9:c252:6afb with SMTP id ce16-20020a056122411000b004c9c2526afbmr6994948vkb.10.1711439818779; Tue, 26 Mar 2024 00:56:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711439818; cv=pass; d=google.com; s=arc-20160816; b=dP305nn+FV0dkx+xiFZmHV7i4eoLwT+wW/XnIQm9BCekSGQtACZcqukbVVaSROOPD4 libtnnsJ6J9PZVPvh/XEtLf42mC8c22QqJ87O/dOcwkEulaayfQaRb1sgbPHTa6Di0k5 dtI0AvrUfSMCXGNczkq3a5aKIPUR9ePWLvSJ6f1e6vavEWL6TclHhLNxOiwtHAxD2RnS OCRCHq2C3TrBc3dDtzSEqmoVeobrXYTITeuaesPKcle2wbIp4D3Nyy+3oFdKrhZGtWq7 I98B7meS6XOBvb1NM2U7c/dMdwmk4n1aXQJEfwa4FhP4N+teS0fWLLwH18bfidsGHERH OAdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jKhopOw7fOrbkL/7HBWWGU431gOPI8AulqVWyi8Mf+A=; fh=9UG2ouar6yp6yXtlQbnsFpaobJ3nww3goa8GZljRlYA=; b=PjgjfxmODGsCD0IElQQB44LIUnO/2Q9EJDvKWCw89gjNdfqhmI/J22gO8Kt+NLEzwT 5rRzXIATvA/SMGPXdj4pbu92K1KbvjpoXoL3u0W3z3DokklDdeWUbupZT2cgyzGmUXpg nUAnxbOJkhEDygE4kmKhiM1Jhd/iaWQUTX7I3cUWxrJfsO/ScIk1HkgIvKD5ZgTP5fZk HkEmjotBOIn6TxTJg7klUWnv5OF6VEt/wtuYFtNiANCT0lNWf0iFTYGkwsj9lbW42TBj HbxUPMLG9IunQaa+nbf3FKtCC2cFTwZSQIcLVD1aW/Lx81xaSnGTaO9hTNuLftseNKhA ovGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEzirItq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-118495-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b5-20020ac85bc5000000b0043171c7303csi343100qtb.753.2024.03.26.00.56.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118495-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEzirItq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-118495-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C99B1C2F1E8 for ; Tue, 26 Mar 2024 07:56:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73343135401; Tue, 26 Mar 2024 07:56:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QEzirItq" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EC441350F9 for ; Tue, 26 Mar 2024 07:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711439793; cv=none; b=Y19HSGk6spqEo4bCsKnZQkbmcgp9qA1pm9YTyjGD4Iv6sTJW2j1nu75q8vq2L54F+wSvD16zsMf2kMBaKMHlSRgQlyWkaiGHVIrU121qyxpTqJBF1ZYXJVunRjJf1lyWnxsRov0zRDOPwBoD5nUO/JIUbXzkHZKgcpx3FaDxnRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711439793; c=relaxed/simple; bh=63vX4jpafQjPqEVR/t5tqsl4TA+CR/G2jQNsq7L6wBk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jqCb09Uj7Dh1gZ9XuDtH75UQBadEe64+936oyFkGRceB6oKPlGJTfJp+gK9IySd2rW9+n2UMmb8yBszxIZmgJ0jrgRkSlpTAfHkogBAX5VNctpcYmpVhqA/FVkQ18VAJ67GfKB36UNKb2D7CEILlqnddjqntnKiG337HAHsOqP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=QEzirItq; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1e0d8403257so8369115ad.1 for ; Tue, 26 Mar 2024 00:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711439790; x=1712044590; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=jKhopOw7fOrbkL/7HBWWGU431gOPI8AulqVWyi8Mf+A=; b=QEzirItqhmQTQwqAsjTw00s2et6I7I2D7hawp5jHONr8QLq7DM+wGcJkuLLGomd4EB 1W7fh9uTplU/a6oz5ZyRbiGtN+of73qdtw3F2z5XwGAAoG0ss+J8ELe7wyDB6oNYlhf3 m9U+fimwLvO5/bYtC4MIjNXpqHjueQ86NjR+uDCfcogHQket7SCkYbMCfYi7TxLzLrFu X4I3ilb0Kvr+VmuRj89AJ/N0saa18EEAQdns1Do6z6TaOilfcqKGMkWfd09gw2Sr2ghc R0pjv+eyPZhcsTpZzrnZPt2tDKC5AMHl71Fiy66Q7aMmLYkZjeohR6yy3ZQaBdS5DNZx 9/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711439790; x=1712044590; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jKhopOw7fOrbkL/7HBWWGU431gOPI8AulqVWyi8Mf+A=; b=a/xWzFMnTRB6TBUhAqmXb/w7wizOWzo+pBSpHObqmEQ00P+iZhQti9ryrU1jEnUz50 nWhF/9QublR/2Dq81l+rd9BqJDxwD6rKrv9A66oTYCweyhEQEkrhM2MgboqafAhG608s u99SCnkKieL59AvhEeP2lfPK3x4yJ7vskThyjBY1PtJrW6ZkXnmwclebE9ENfppVCnxM U+mkPoCrCLtJLukknVyBlwWdICEmzxIX6duHRTjzF/SKWWw8K/tgzkd1Dp+NhlCEdtYS 8fcfxiORl0jvsrwNjqP1pFNHrEyUWbFs596488+WXmjQpgteUiy/W52CKXhQY1t9GDP4 P2+A== X-Forwarded-Encrypted: i=1; AJvYcCWmiBuDKjdvtAvBDr7yv1/y/s/4Uu2RqRi6xYJq0BFLpl/YX9ErjupbFGxTjvE7fgSG+y8OZPaM9Q/X0frQvQ07dQKH4dF3xfxHWXoA X-Gm-Message-State: AOJu0YwKZ4wXknv1lMDbfbC/YGgS5fIaZdmtRFpaoUSFYaiFYZuNtk+F Q2X6AI/b3SY1Fhx0xyJItvogRwgO4zQF8SHkLNFDpilymfNIv23ncQVBeqsZAw== X-Received: by 2002:a17:902:c115:b0:1df:16b:9cb8 with SMTP id 21-20020a170902c11500b001df016b9cb8mr8516819pli.2.1711439789975; Tue, 26 Mar 2024 00:56:29 -0700 (PDT) Received: from thinkpad ([117.207.28.168]) by smtp.gmail.com with ESMTPSA id y16-20020a17090264d000b001db5bdd5e3asm6242831pli.84.2024.03.26.00.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:56:29 -0700 (PDT) Date: Tue, 26 Mar 2024 13:26:22 +0530 From: Manivannan Sadhasivam To: Niklas Cassel Cc: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I , Thierry Reding , Jonathan Hunter , Jingoo Han , Gustavo Pimentel , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-tegra@vger.kernel.org Subject: Re: [PATCH 03/11] PCI: endpoint: Rename core_init() callback in 'struct pci_epc_event_ops' to init() Message-ID: <20240326075622.GE9565@thinkpad> References: <20240314-pci-epf-rework-v1-0-6134e6c1d491@linaro.org> <20240314-pci-epf-rework-v1-3-6134e6c1d491@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Mar 22, 2024 at 05:08:48PM +0100, Niklas Cassel wrote: > On Thu, Mar 14, 2024 at 08:53:42PM +0530, Manivannan Sadhasivam wrote: > > core_init() callback is used to notify the EPC initialization event to the > > EPF drivers. The 'core' prefix was used indicate that the controller IP > > core has completed initialization. But it serves no purpose as the EPF > > driver will only care about the EPC initialization as a whole and there is > > no real benefit to distinguish the IP core part. > > > > So let's rename the core_init() callback in 'struct pci_epc_event_ops' to > > just init() to make it more clear. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > drivers/pci/endpoint/functions/pci-epf-mhi.c | 4 ++-- > > drivers/pci/endpoint/functions/pci-epf-test.c | 4 ++-- > > drivers/pci/endpoint/pci-epc-core.c | 16 ++++++++-------- > > include/linux/pci-epf.h | 4 ++-- > > 4 files changed, 14 insertions(+), 14 deletions(-) > > > > diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c > > index e5d67aec7574..da894a9a447e 100644 > > --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c > > +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c > > @@ -700,7 +700,7 @@ static void pci_epf_mhi_dma_deinit(struct pci_epf_mhi *epf_mhi) > > epf_mhi->dma_chan_rx = NULL; > > } > > > > -static int pci_epf_mhi_core_init(struct pci_epf *epf) > > +static int pci_epf_mhi_epc_init(struct pci_epf *epf) > > { > > struct pci_epf_mhi *epf_mhi = epf_get_drvdata(epf); > > const struct pci_epf_mhi_ep_info *info = epf_mhi->info; > > @@ -881,7 +881,7 @@ static void pci_epf_mhi_unbind(struct pci_epf *epf) > > } > > > > static const struct pci_epc_event_ops pci_epf_mhi_epc_event_ops = { > > - .core_init = pci_epf_mhi_core_init, > > + .init = pci_epf_mhi_epc_init, > > }; > > > > static const struct pci_epc_bus_event_ops pci_epf_mhi_bus_event_ops = { > > diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c > > index 751dab5799d5..1dae0fce8fc4 100644 > > --- a/drivers/pci/endpoint/functions/pci-epf-test.c > > +++ b/drivers/pci/endpoint/functions/pci-epf-test.c > > @@ -746,7 +746,7 @@ static int pci_epf_test_set_bar(struct pci_epf *epf) > > return 0; > > } > > > > -static int pci_epf_test_core_init(struct pci_epf *epf) > > +static int pci_epf_test_epc_init(struct pci_epf *epf) > > Why have _epc_ init in the name at all? > > Isn't > static int pci_epf_test_init(struct pci_epf *epf) > > Enough? > > From my perspective, it is the EPF that is initializing > (by configuring the BARS according to it's liking), > not the EPC initializing. > Hmm, you are right. It makes sense to remove 'epc' from the naming. - Mani -- மணிவண்ணன் சதாசிவம்