Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp820530imm; Fri, 5 Oct 2018 12:20:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV62L1rhmFw86dXu+kiqxAFx+fprJ0T1JDCKwObBVFnaM6KWs4/IKcCRRZTAg2emsu21RipE8 X-Received: by 2002:a63:30c8:: with SMTP id w191-v6mr11259702pgw.447.1538767247863; Fri, 05 Oct 2018 12:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538767247; cv=none; d=google.com; s=arc-20160816; b=oDc6kslQXe++aEFW/VUs7Ps+xbIZMflE3FWrfznrbWslPuHHlqHxMkWDyvo8whRffy BjyrVdF+Vvlx/AbvpxMa7TaetHJwtzKNT7jQsBqxO8vZHrpsPe2oHrXwSOr46RPhVaeI 8n6xXR8fWM42jUuUuXpHVOPlIjpz8oGa1nzVhRxY61qYD9PEStu7Xd9HZdJsn8aajI1R EqdXnYwYHiVYmCmVadzmQLHnlwQk4kg9p2kK1fZMvw4KIDCP7QN8KL0RZ/1vEyd2e6b7 shKnuMyL22AKWFxJLp5ullC69+Mhb2/GFgA5duPshhBm1ShZ+eSDWDFXecZO/0kYkkD3 g8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dU9c8JHPYR2/663AtMNEdXCx5pLw15C9VAUGkLHPUnM=; b=eDeLyvit/3ssHcUD2R0s155lB/25zkqbrsXKhRj1aMwwHttsXTnhYpKM0+OEE2W+Y9 eln5QzKOkVscYBKQNS+miaH/L8q5M/dx6EGmVy/1ZENodN/k09b6KSMhvXntRPNMqNWQ QuVmT/jiY81x7LnbSBSOCJ06AdQRwXx1jJvt5hyJfx1+gX7h3wOa5TnCB+Uq1Dzk9Udi C0hIVhsRXDhueQZqTICNxfAEwjEL9n6AY9+7EO8X8Hhv9NCKaGkwJRkIYK4jUMvHPqjj 7j2jZh1QYkqyB5VPjmdMqX93XI9OoJDUxddtmOFncQwzyMun4uh2QPAb8wQBnjRtCD/c istQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WuHwQVm1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si9342591pfk.252.2018.10.05.12.20.32; Fri, 05 Oct 2018 12:20:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WuHwQVm1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728674AbeJFCUU (ORCPT + 99 others); Fri, 5 Oct 2018 22:20:20 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33303 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728061AbeJFCUU (ORCPT ); Fri, 5 Oct 2018 22:20:20 -0400 Received: by mail-pl1-f193.google.com with SMTP id s4-v6so7269915plp.0 for ; Fri, 05 Oct 2018 12:20:13 -0700 (PDT) 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:user-agent; bh=dU9c8JHPYR2/663AtMNEdXCx5pLw15C9VAUGkLHPUnM=; b=WuHwQVm1L2Ebbml/5Zzpbxoyc+mTpORPr6OMs1VFLxdVkZ9mVZN53noxH/lnXWkYP1 LZCsQmhioXlE90WCKrU9EQFGF3tgz4OT6sSDak3vHzz79Av7BMqD3f4fcrgK0jxQbE4P 8Oobrd8baih8BWS8zWMyHoFrxGbcuJuzENm4U= 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:user-agent; bh=dU9c8JHPYR2/663AtMNEdXCx5pLw15C9VAUGkLHPUnM=; b=pJotYrlnpjT4AKNbWC3IwzZa0sYMSqNCfsWBiyyEU1j9Q+lVjoPugZLIIVZ85o+DLb gyzT+pAY/sZZFrAzm1lnmxIiYKkPJ4QNTjKn7UWMSom5opiYJQYMFbcpYcWiLtfvPOl+ shB5dkijY1A1LTlYNrVqHKLAS0NmmmR5KSAesnhzeFi3mWKlQnIqI46yyXMbee7gFW78 Qhfs+6uvyhZ1qwVyJSv4sXGDOSaiDv4MY+Mod5/06GeYivRLTtIIGRs0f+hgubfViakT LI3PNqAYLNSrXh1sdWvXk3NGIIP34vIXZW9XbCo7EywdKANSlp1LXXxvWH92xoiJI3s0 K1lw== X-Gm-Message-State: ABuFfoiCL3bHMZM7P97a4JiQt6+UT8+YAAX20K4vqaUx3qP7TMzIMFIe 9mAdemcxBW+jjPMwd7n8b5oJRA== X-Received: by 2002:a17:902:33c3:: with SMTP id b61-v6mr10005950plc.52.1538767213030; Fri, 05 Oct 2018 12:20:13 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id d10-v6sm9498762pgo.2.2018.10.05.12.20.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Oct 2018 12:20:12 -0700 (PDT) Date: Fri, 5 Oct 2018 12:22:57 -0700 From: Bjorn Andersson To: Arun Kumar Neelakantam Cc: ohad@wizery.com, clew@codeaurora.org, sricharan@codeaurora.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 1/4] rpmsg: core: Add signal API support Message-ID: <20181005192257.GB12063@builder> References: <1538722776-13648-1-git-send-email-aneela@codeaurora.org> <1538722776-13648-2-git-send-email-aneela@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538722776-13648-2-git-send-email-aneela@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 04 Oct 23:59 PDT 2018, Arun Kumar Neelakantam wrote: > diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c [..] > +/** > + * rpmsg_get_signals() - get the signals for this endpoint > + * @ept: the rpmsg endpoint > + * > + * Returns 0 on success and an appropriate error value on failure. I like the fact that you're using the return value to pass the bits, but the comment doesn't reflect this - and you don't handle this properly in the TIOCMGET case in patch 3. > + */ > +int rpmsg_get_signals(struct rpmsg_endpoint *ept) > +{ > + if (WARN_ON(!ept)) > + return -EINVAL; > + if (!ept->ops->get_signals) > + return -EOPNOTSUPP; > + > + return ept->ops->get_signals(ept); > +} > +EXPORT_SYMBOL(rpmsg_get_signals); Apart from that the series looks good. Regards, Bjorn