Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2176656pxb; Fri, 5 Mar 2021 08:59:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyflXhuEGz13fVGfYmSgVRUnxbJlSCioMWayuAm3Wa4BpwVxvIiahZyL58iY+fgHHB+t1vd X-Received: by 2002:a17:906:f0c3:: with SMTP id dk3mr2989797ejb.540.1614963548447; Fri, 05 Mar 2021 08:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614963548; cv=none; d=google.com; s=arc-20160816; b=DCKBQwKdpAL8izc4IE/iCp3TBolUEy/6azj+SJhDDNGSOJ6HWTdkK/ahNRmz7SMkgi vNXKoumv1BFxZhM3FRVbjgOG8CuGKrMAXmH1Vx1wAwGzaG8hC2v0DDsBBhgCKvJ2ivQs i4dYqctWxtOmtPu2fgDzr8GWA5BIeeZg9NJKSpQwOzlS0BnfsJqvywJiwEVyMDlAek3L JkPGJTtndU6j4eOI6qnMVpWd1BbZ0YQCe0SQMwQ9L5gCX8b2IXYiH8sHQr5CwFGvSx4E tYhxCB4piekQy7O9/ipnMJKYNJRgGstcne0HMQ6wffS7ZwIe5etif6SEliEMbDZFTkX7 N9EQ== 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=5oX7JDjpyFM6sShOZapWIE6sOYsNksokkCB2Em8FcMw=; b=QhF8fXdFZ9UnxKQgPzS2K4ec/Ej273XPBvVXoQEWdywtTqmTYSBIaP/x1/UDdfxHg7 i/U4qNc7b/XWGRfK8IdZHwYV1y4BBVt8Rp1LziRcbMekb6mDZJ+YEbf7Ejt67SpGJFjK jDl3iaa+J4YCSFvDTmzo3F0D+H5EbAdNNQrWFVQtXG+KVU3yhg/+vZUtSPS9MxvZYZfY 2av8KZmTJhld+Rgi305bnFVF2/2f4sRg2dNK5hag9mGls5pkXL5dKOECOdK9ih7cMYeZ ov1zycH7XBh/bihOSPlTTIUe3l8kmTkQFu26jJtlfAR46aXxxnzVGdkZmAOrXhntKqms fjhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EqxN9e8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si1794286edv.312.2021.03.05.08.58.45; Fri, 05 Mar 2021 08:59:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EqxN9e8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbhCEQz1 (ORCPT + 99 others); Fri, 5 Mar 2021 11:55:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhCEQzN (ORCPT ); Fri, 5 Mar 2021 11:55:13 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAFDDC061756 for ; Fri, 5 Mar 2021 08:55:13 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id ch11so2409203pjb.4 for ; Fri, 05 Mar 2021 08:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5oX7JDjpyFM6sShOZapWIE6sOYsNksokkCB2Em8FcMw=; b=EqxN9e8rDjI2I2gJOSPPG/q05JnU5yymLBDDd9p6ny16eovxkKkAUbrCkuQSTOB2WH g6zlxso1OMmg9Ebdk6Nbnx5o4aQNreFt48edMlEaavtiJJ7mCrS65A3BOLEdjVhSZ+mg svQQmF4n7dUqon7+f5JiNK/WxfI40+U7YPB4bBRw/Kp+EaQmtNgMxtI9sp7A7OxE3EjE o7KtladbbuHryn65Vt1m/aXtqDmcRDiV/Bass2bcD0rWOKHvsdb54zCUGsLPAeLZK2Qu kwjtxw9epGtY+6puNn5zLVMj+37z++zRhGSFrBWhgb8EC2qCS0sCjNMal2DihjLtBYY/ lBDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5oX7JDjpyFM6sShOZapWIE6sOYsNksokkCB2Em8FcMw=; b=eAzAcFe1OsSA2HURLQbTZKlJYP/K1iIIN2GQy0Yhl76mCF5mQcdULY44fX1AL5AzoL dV7FFNIBRrZGIPHeknMLAsVeV767ec71OoHZkQvSZFmOBx96EKiT/W3QQcd0AlxtVsEv 3V/g54eRHuqeCnXuOlTctWxWJvNq7TMMYCOvhyyTtsWjUajlz60VnlBemc8ygoDjrqrE aNIPFlnbm7Yizn4ygZ6+/xeE9uGoxxbfZuESZIedYq/WxFlKz8lRZMLY24mVTbtIX9kj hOL+l0Nkef5oO9TZeoo3Xm0oVnikqYProJW/1jbohWCZ9TxuRZ3ERpEfkQ1blBcTPsqe 9K/A== X-Gm-Message-State: AOAM531IS7nf4eGYIfj7UKyyMaAaRi9BRrF+mByVSbC6wdCfz2/nC8lG TKiOEbn5v4DFLefKyje3lm8sWg== X-Received: by 2002:a17:90a:4d07:: with SMTP id c7mr11296018pjg.104.1614963313231; Fri, 05 Mar 2021 08:55:13 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id mw13sm2794442pjb.42.2021.03.05.08.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 08:55:12 -0800 (PST) Date: Fri, 5 Mar 2021 09:55:10 -0700 From: Mathieu Poirier To: Arnaud POULIQUEN Cc: Bjorn Andersson , Ohad Ben-Cohen , Andy Gross , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 08/16] rpmsg: glink: add sendto and trysendto ops Message-ID: <20210305165510.GA3885132@xps15> References: <20210219111501.14261-1-arnaud.pouliquen@foss.st.com> <20210219111501.14261-9-arnaud.pouliquen@foss.st.com> <20210304191129.GE3854911@xps15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > >> } > >> > >> +static int qcom_glink_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) > >> +{ > >> + struct glink_channel *channel = to_glink_channel(ept); > >> + > >> + return __qcom_glink_send(channel, data, len, true); > >> +} > >> + > >> +static int qcom_glink_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) > >> +{ > >> + struct glink_channel *channel = to_glink_channel(ept); > >> + > >> + return __qcom_glink_send(channel, data, len, false); > >> +} > > > > Just rename send() to sendto() and trysend() to trysendto() and ignore the > > destination address. > Apologies for not being clear. > Function prototypes have to match with rpmsg_endpoint_ops structure defined > below. So seems to me not possible to just rename the functions. > Please could you clarify if i missed something? I don't think rproc_ops::send() and rproc_ops::trysend() are used anywhere else. So replace them with rproc_ops::sendto() and rproc_ops::trysendto() where the destination address would be ingnored. > > > The same goes for the next patch. I would fold patch 08 > > and 09 into 10 to help get the big picture. > > I'm going to squash all in one. Perfect > > Thanks, > Arnaud > > > > >> + > >> /* > >> * Finds the device_node for the glink child interested in this channel. > >> */ > >> @@ -1364,7 +1378,9 @@ static const struct rpmsg_device_ops glink_device_ops = { > >> static const struct rpmsg_endpoint_ops glink_endpoint_ops = { > >> .destroy_ept = qcom_glink_destroy_ept, > >> .send = qcom_glink_send, > >> + .sendto = qcom_glink_sendto, > >> .trysend = qcom_glink_trysend, > >> + .trysendto = qcom_glink_trysendto, > >> }; > >> > >> static void qcom_glink_rpdev_release(struct device *dev) > >> -- > >> 2.17.1 > >>