Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2798005lqz; Wed, 3 Apr 2024 08:54:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFl/4chquI0qoubwk7v94nvgcEIp6hKgZAk6Vwf8HHPlFGb/FbpVecWES/TIuKwtqsoh1B7dj2dmSZ4qeFSGm6cbFE2kOX+JPobCNPUw== X-Google-Smtp-Source: AGHT+IGc0sk6qm+RpbhcrdaBtU4hTgw5Chlk/mYZMZua1FMJBJce7DTxS9t+46ZWWoTlG7heVwIS X-Received: by 2002:a50:8713:0:b0:56e:aca:83d1 with SMTP id i19-20020a508713000000b0056e0aca83d1mr1325845edb.38.1712159683027; Wed, 03 Apr 2024 08:54:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712159682; cv=pass; d=google.com; s=arc-20160816; b=JMPX/0l3g3lqv7qaO49gHg1RzEwQjNiOhZMWrXiWP2sz1qj+BdgW0Y0/ffHl8l/Xdj LVFnRN10eL1qRDy8aYWHRNB2qTbwreU3IwJ1jxSFIuSyZIebhaZfpzHIKyD6diuBtRbs IbmLiffVS8plWEzafTBiCrq5krmjfORAS03kmiBwpCn/VKiUhC4RjwrYZRDvdbZWWNIc pWyW8+iANbY0X/j5GoUNm5diePwzl0/KQ2YKlnXXjhVK4z/GH961ZbZiHkjAOtM+cUT5 zd/OQMyM9bggQxdKOBShlNGq8LoY8iCbuCodRxU7HK62Im/WIqujuPbDXvlvCndteR+R RRdw== 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=RxAX3IORBZmyZAmqt7k7cbWr6HJgfjLBGIug35aDNFY=; fh=ol58PydZV1ZfFod4c1F4I8NGhkgdKRdy4HN+WoWZ0Oc=; b=R6BD0PYYTNlh6jxVnhxDFcIelwLe3jpC8mRWiNmt15Rzi77JzicscuHt8OtVljkOq6 r4nJdiWG5GZ7BxXpkq1CKuwHUQvIjG9TevPveZPfa7djjMGXP7yt8VdnbKR4D5O9so9Y 1QnKQJx5YuzXXujF1uBD8rcBJ6Fb5C6+daIVJjMLRsVNZ66l1AOZULQk8Q85wfcsoAz/ IPCKpznpVabEcC8AIDOOcfQxbldQA6s3IkhZFduBbczp/c7N18nBXWZ+oMiElvDVrbji xg0CMaJaTc0mA1zZLvK0YmM4s2sbYxBYFtrG8aHQmepBzK/lVniPpmXWMW6wqZ5cNDOe +5YA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DRMHnn/1"; 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-130137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bl15-20020a056402210f00b0056e11bb7f09si7853edb.229.2024.04.03.08.54.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:54:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DRMHnn/1"; 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-130137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130137-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 198341F23AC1 for ; Wed, 3 Apr 2024 15:52:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD3ED14AD34; Wed, 3 Apr 2024 15:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DRMHnn/1" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 9825614A4EB for ; Wed, 3 Apr 2024 15:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712159516; cv=none; b=oUx9+hMF8G8J8iE7chhSX66T5QDHNwa0yHwKtlQlpwl/GvkrBteWGT0hpaG/z8VF+sIQ+HwdCaa31Z5Bd5iLg6rCBXqpAl5SVXPz7qw71plZrrybjqaGVsOETvSYDU4Dud3LNJHdtc79veLoZczNkL4Au3UXPoGX9qpg5mbnG3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712159516; c=relaxed/simple; bh=qgIhgArIyknrMhYKo0pXG7L2hPF5611r14caIQJvQ9Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OZH6/P23rkFPUG+0rcJw7Ep0qdxW9Ftr9u7bgw34L7ei67CD/BW+oeESsLCFJwwrbelvg1dunbfq4WZsW02+n2wmY861gZnaDDS/MxHk0TEqnSYfeSD4uXZvL3hTuGp5JK43eIcSxL4FU7V7Yzr+wBWvjSQX2PVV6mqeBnz7EJo= 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=DRMHnn/1; arc=none smtp.client-ip=209.85.210.179 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-pf1-f179.google.com with SMTP id d2e1a72fcca58-6eae2b57ff2so5367563b3a.2 for ; Wed, 03 Apr 2024 08:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712159513; x=1712764313; 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=RxAX3IORBZmyZAmqt7k7cbWr6HJgfjLBGIug35aDNFY=; b=DRMHnn/12hCEZ+EzEWkSqaeg3Kh/NKXno8djLNTpANfiRYgJ70crpONfAk9RPZiirF ym4+eIlbnGzB4QlFFQNVkfJkmPCPhG1OxGDBvdBny6Se9dLEfXso7WpduMDWmNDSdQPX R7lUMIBExyPDI8RJIxLrlb60MXKhb4MDhPkO9ZkWhDgKfEQkc7Be5ZM7Tkm0UdTjwMrf AG3JtGao5TTxfFlTMEN5A6x8IvNL5RBJzDvylXEznCEajyb3jpvx5U1V+hMcPpcz91RA wydNWp4nDOGPSqVypb3HxkuUEK4/kTwgYFtwuIVgb70X8qwZ8SjDaaoGs0JVa4YWWet0 RBeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712159513; x=1712764313; 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=RxAX3IORBZmyZAmqt7k7cbWr6HJgfjLBGIug35aDNFY=; b=xGeiJjkSy6T3G/WgjhIsuoqfdWklygMLi2ocOSvpMZaZ4vzmuvP0W2/jmsrbyUphqq BKhPDIb7iBhz3Qggc4w/3c+GZH5DNQj7JQ7Ni7DOVoZ2HbYVfOcpuw8QDE2neHs3WCPx ZGJ/MbsILMW/oYUcOHnoWMWOvmY24pcer6PUB5jOwkqX+FpZHXQWCfdte0IL4LZiU2IJ Z9U62q51K4KMmjcHOThqsdiMvabxXWh6oZtypKbvmgttDn8DftnOob/XEvYI8V+qrqrd zDwgtpWRVksm7cuHWgiZLUqV7Iu2WaSBPMc7IreuSnlb85lMbdFKtK4cykTNdLrsACFo clQg== X-Forwarded-Encrypted: i=1; AJvYcCX/HVNwZH/wkU5ZkL9a6B1GCIUnjkXunNkOaq7IG5kq19yxIG8P/xr6EK2VGJNo/3C9iF31CBzEImVlILUduLJG/WfdNdZCp7HXqeEg X-Gm-Message-State: AOJu0Ywgfk8bQIQ7iXy0NUZ3ES6ZkVpNFXXG+dSuLaM8cOEYKKJMPV9S cxW1hRS8aKkZQgnn9eFWYWrP6LHBIouzrn9rtNWNOm2YWVPx+JqNkzHfsl8aIQ== X-Received: by 2002:a05:6a20:6114:b0:1a3:e23d:6003 with SMTP id m20-20020a056a20611400b001a3e23d6003mr21825pzb.62.1712159512806; Wed, 03 Apr 2024 08:51:52 -0700 (PDT) Received: from thinkpad ([103.28.246.48]) by smtp.gmail.com with ESMTPSA id a17-20020aa78e91000000b006e535bf8da4sm11747015pfr.57.2024.04.03.08.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:51:52 -0700 (PDT) Date: Wed, 3 Apr 2024 21:21:47 +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 , 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 v2 03/10] PCI: endpoint: Rename core_init() callback in 'struct pci_epc_event_ops' to init() Message-ID: <20240403155147.GA85162@thinkpad> References: <20240401-pci-epf-rework-v2-0-970dbe90b99d@linaro.org> <20240401-pci-epf-rework-v2-3-970dbe90b99d@linaro.org> <20240403134600.GL25309@thinkpad> 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: <20240403134600.GL25309@thinkpad> On Wed, Apr 03, 2024 at 07:16:05PM +0530, Manivannan Sadhasivam wrote: > On Tue, Apr 02, 2024 at 12:52:10PM +0200, Niklas Cassel wrote: > > On Mon, Apr 01, 2024 at 09:20:29PM +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 280863c0eeb9..b3c26ffd29a5 100644 > > > --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c > > > +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c > > > @@ -716,7 +716,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; > > > @@ -897,7 +897,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 973db0b1bde2..abcb6ca61c4e 100644 > > > --- a/drivers/pci/endpoint/functions/pci-epf-test.c > > > +++ b/drivers/pci/endpoint/functions/pci-epf-test.c > > > @@ -731,7 +731,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) > > > > On V1 you agreed that it is better to remove 'epc' from the naming. > > (For both pci-epf-test and pci-epf-mhi). > > You seem to have forgotten to address this for V2. > > > > Oh yeah, sorry about that. I tried to address comments for both series and > apparently this one got missed. > Ok, now I remember that I kept the prefix intentionally. The module init functions are already named as pci_epf_{test/mhi}_init(), so cannot use the same name for the callback also. And using some other name didn't fit, so I kept 'epc' as the prefix since the callback acts on the EPC initialization event anyway. - Mani -- மணிவண்ணன் சதாசிவம்