Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2717539lqz; Wed, 3 Apr 2024 06:46:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWG+c3IGKqaNpHd05erCUgJeeVj0rVNN4Mc74DkteGFXLUukHhYvqFzmTs6GtxFVYg+ILsffvOcla5j7YzyySXPHPf0FY8Oo/NptzNfCw== X-Google-Smtp-Source: AGHT+IGMBMNqCyqGPFyLoZMQo18ZvB0ygcrpR1PPWEGHMJFVRhtq8BB5t4/em+QPOUeKicG0nfs2 X-Received: by 2002:a05:6a20:3952:b0:1a5:731a:1ffe with SMTP id r18-20020a056a20395200b001a5731a1ffemr3213374pzg.13.1712152017232; Wed, 03 Apr 2024 06:46:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712152017; cv=pass; d=google.com; s=arc-20160816; b=vLux3jxUJUxVxqb2sLQJAgUzeEwYaVFbp7kLUIRK0A2l4SWZ5BvVKOenvcJSuydw7c mb08+eFK2fyRdLzCS44Mrws1H9ocor5RkdXbNlBY+dDtYVKuc7fmeSX1j1SxJkijFCrQ LtmsblRN8g0TEtXp+D1neYMSRyyAHDqK2AEJ0alV2mK83MhQfqT+fKlMWclP8RB6bqNI OJdohmBrQ6OlKdjsIg7lptrnTIaiVyzzSlYcY5oGKzr3o1LylyOHV516gDocP7eqUh19 KNrevZGnBcwGWwNYKHtvoXyAInhxaA2QYoXnRAkDyKgOCF/aEeZrdu1kPrSTrvldjAET FZjg== 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=902P16CJPnj1xKchC1BfN1x8nt3eQDIalgicu+1Lvwk=; fh=5KnfS+O0RchOz7aw2lzF3ZBopq7ztC3fP+gP1yWpDpw=; b=KGBBqf3JSC7/FSm7w848o4eQ0p83TB22JH4TMFDbb3L6OxxEc/W9uoTGcjSzzZZ7/H 4wXI4lt8eCdDLooiecYqp2t4noRa/ij43b1Uz/gnDgKC7cTF3EQOyGGtpqAaaKKD9oaM B543AAEreqoNLRQ3HOAbzYugOJkrJ3onRJiQnK49yattCp/bk8wZUu+vmiXrlE13DCha 9LMI0xTfxjb79gNRcufRaFdJYQC/9q14l9bPK3Awc+4X16a3ldC+e/rsTwkFdpgeU2UJ TVFx8rXsFKONThVVRMbMkEbrQHDt3020bcFs7+asQFtqfON9vPEuTZhivKD9Gx1Wq3Xp Asyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpxgkZ0v; 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-129870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c71-20020a63354a000000b005cfbe985481si13279063pga.46.2024.04.03.06.46.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpxgkZ0v; 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-129870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129870-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A585284714 for ; Wed, 3 Apr 2024 13:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D6EB1487F8; Wed, 3 Apr 2024 13:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lpxgkZ0v" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 AF1A1148308 for ; Wed, 3 Apr 2024 13:46:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151968; cv=none; b=CxRvsidxDahS5dLriNm6iJUnUJBoyScCNLQqw/qlh29zs0gpUDeULIICBQZj+i3jo8OUKydpQaVgkv1RRO2lIzEAt+DFYbBHLLNzChYoe4gpHF8tgTeqOc0T2QyD5m7gUDt39oXOcgqkvMdCy5T07l2qReIiHJXjluYhSzPo4ic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712151968; c=relaxed/simple; bh=oNVe7SUbSSVH8Hwzoz+0n5x3tQwhvVYI/rKOgk9P1Ko=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tIyHz1h7tuwYH4qxdXQD8I8n/ZRne4nfP9X+fSrCcz+WCcf97NOpLVUthfxRYe7sUAFQZ2Bh8DQiTGk3UaX76Bef+uDz98RGV+iAdNgz5I9ezrwwHYIWARhlFOGhRi+69YzUF4zCTSDrzI0mn60ezSlPcDb/BE1SlE02VuPSFhE= 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=lpxgkZ0v; arc=none smtp.client-ip=209.85.214.170 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-f170.google.com with SMTP id d9443c01a7336-1e267238375so7357655ad.1 for ; Wed, 03 Apr 2024 06:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712151966; x=1712756766; 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=902P16CJPnj1xKchC1BfN1x8nt3eQDIalgicu+1Lvwk=; b=lpxgkZ0vASiLQ+/wepIN45dVAGmf9Zm+N8OKg48F7O3ybnu/PMWZSCTidHAS/p10km 1OVI1Mmgo8kf03lcg4l3kHsjPyj3vsyqMEfwTDvJr4b4FJKBsordR+ZiTdc/z+R05hlk qjqk+DIFutN2gM1Tg3ByzlZ1TwUg2m4Ky0UOXzray5y5lPZ+C41NScuZZ0Exe3vXcZ8A FeJ7/xSwnTqokTHmXUE67+SMYdCvoQubW8HWAI2XLD023p/5CsZJ2NIGB52+P7q2DTil CXVtLh0MNotVxHBZRawG26x5w8Qki7WtZM9536mRQbbPXrJKbCdx4AqnrirQMIujtGHB YZ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712151966; x=1712756766; 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=902P16CJPnj1xKchC1BfN1x8nt3eQDIalgicu+1Lvwk=; b=PwKS/SXGDBU492QSxZXP6WDMSk09KOXmFQd9kOcMo0FS4h2yL6+3tHHslBahdUFSC+ fTLDUlX2uRibwRUkL+FcOvOxwlAdgXETGeUPpEviwnI9HIYyAxDXX0hlcwrAQcnxenmL 25KsrnFQSB1u3LNkd564BdieVf2gE15d2pNUvhPQc7hOaSDeht6EC+RC2Z1AbV15oF9E Ix2N8EHFIuHuYPIH2zFqDffsJrPhzSatj01mzH1IopOhtCEybGFNkVSHA35WAcQZ7uN4 uPZU3hz5SGixDzFdPFA0IPR+1+Q8+tnF5QrpUWHV0rxyU8r5QbnX5Pl4pVvoVl7cc1d8 DB6Q== X-Forwarded-Encrypted: i=1; AJvYcCVr/dCOprbhXxnxoHLkHDph8XgL2rcBav9LOEHOn2aY6cxSyu2/O7kOX3jyMwHPE7wxuNMd1gKWx3jqJgFJC20DZl6Q/xcno2+HTFL6 X-Gm-Message-State: AOJu0YzAP4taZzgs9I0yx1PvqxtNvdErfpERBmhGCR1Ymc3IZqcqDGoG OJnfgYhUqbBvLhgB4fz3QltkBxKKq6rQ55bJC4UQeQf+fjIMLkbx+XiArRjeew== X-Received: by 2002:a17:903:2282:b0:1e2:45f3:2d57 with SMTP id b2-20020a170903228200b001e245f32d57mr3249524plh.6.1712151965699; Wed, 03 Apr 2024 06:46:05 -0700 (PDT) Received: from thinkpad ([103.28.246.48]) by smtp.gmail.com with ESMTPSA id d5-20020a170902654500b001e290812d49sm1720356pln.226.2024.04.03.06.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:46:05 -0700 (PDT) Date: Wed, 3 Apr 2024 19:16:00 +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: <20240403134600.GL25309@thinkpad> References: <20240401-pci-epf-rework-v2-0-970dbe90b99d@linaro.org> <20240401-pci-epf-rework-v2-3-970dbe90b99d@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 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. - Mani -- மணிவண்ணன் சதாசிவம்