From patchwork Thu Nov 16 06:08:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 119016 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5204495qgn; Wed, 15 Nov 2017 22:08:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMYQeT69BKjb+inNJQHMDjZTVtquDBYkjbaUslchKwMSe9XCEVi9cWDypvTvxTCzYfiGGow3 X-Received: by 10.98.216.193 with SMTP id e184mr683973pfg.98.1510812525679; Wed, 15 Nov 2017 22:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510812525; cv=none; d=google.com; s=arc-20160816; b=iiF/+BvkiiFnweY0wfMQ5O6LByMmYCmA3ZDtAw7FIsmfuMyM2dvdYgGwaoZuDGfdqt M+GGxsLcwYtqX0dsu/KZmBkNAqfyMeCRjRIuD+gFa72K6iQ9sypQnpCX4EJ0hc9RXJw3 O2l0swcEqq2QB/BwQ7nWNjw5R/5LhhdOcLyUVFzLhxSGTLhm3A7AdMUsgxY75JnVfmLG amI07z0GaGak7a2J5cxbwZl6cA+jzF10lqja//oHpqhJXEiuV+2I+O2WPLknwc5crkI4 fvUJWtpytjkZOAavEN0LNLcJqNnrmD4Ichf5n936NODxV8do85DxN8p5WgEKOzi9w0mM gprQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jvNlGUOlwSNGtzcsujAfiWqtwP/o0fghXNjSpShGPEI=; b=etXpojjGFyImoUwjXJP/a+TOK2XE6i4JT9IWijG0sNN4rii2A5Gmliv2hPcbEMOnkb 6JDrUSd4CRGDzcsSOEBkM8XX1nr/sTooGQ8kgaRE0KGDzzTCHLVA3T6rsYqFNQnQp7ju jK1BspKNP/WDOKeJKBNn9FK7b/7tyDncXc6Gwe1qgw2iklThPgR7+h3VSMNIZFq9TIKs n1XhI1JaAnH42/00fc0RRArT2SHkFxmfNS6PjqKYS4vHGLKb/IBpEhy8JxMqlDNjyTaa mINj03ZGEfjnYPwULDBha5QANJkN7mWnv+LTFLxDxCmGYt3a65woTOOVMgPBbqP2d+l5 2vpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HSaxxDez; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 b61si312152plc.385.2017.11.15.22.08.45; Wed, 15 Nov 2017 22:08:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HSaxxDez; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932485AbdKPGIj (ORCPT + 10 others); Thu, 16 Nov 2017 01:08:39 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:50690 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbdKPGIi (ORCPT ); Thu, 16 Nov 2017 01:08:38 -0500 Received: by mail-pf0-f196.google.com with SMTP id u70so14076577pfa.7 for ; Wed, 15 Nov 2017 22:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=CT08wopn8y2RS5iw5nZGOGSWM42dVwFtfivxyzG+IGg=; b=HSaxxDeze0K2Mc1UcWLe7HQrHfxmNPAF/kzJQz08bS7txpKjBDZ78F3NnLtn1rq+P3 34XEYwmyPHYFOMPvIwDhEJUBtmRS3d8BTeQ/Q7C2YLDTr8tRkWABVl+FWpLn7huatnkB P+ka8m3lkpdXlUFPobKhWUzt79CKaQffIq7Xo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CT08wopn8y2RS5iw5nZGOGSWM42dVwFtfivxyzG+IGg=; b=GhahHr5dGFWnS6coN9O87UQO3Zfo3I/rYlJwJb2JxMsZxussTzTfL30xpvvfoolg/y euDPiM+QfqqjG+DrgtfGPKQjAbkqSKtBHX4hq+V97G/lJProCLqLU/VemAFdXghrec6J D0ulIRbjmhpFitx0FX484UqcBNU4azJEuEhSCQjF6xulUdrqokLBnt+E34EQN2Cl5AjS FZQMCENn6vZ91FBFry4SmuOl338tOQqQOQxhnUwEnAWQRZ1sVaN/8laS6GYC57RbMf2S sZgPStQgwd2NTon/RZy6W5dN63sQhDoQeLZdG4JtN6QbI6ejChRArbC0rWcG0hT7uzUo 8RZw== X-Gm-Message-State: AJaThX474bp66pygrSLD90Wix3LZ2J7XBeNnKohEWAmxTykaUxCeccxx c41GX72pFZL6GBVrIs/x0NrfyA== X-Received: by 10.99.172.25 with SMTP id v25mr614242pge.182.1510812517783; Wed, 15 Nov 2017 22:08:37 -0800 (PST) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id v14sm1026794pfd.153.2017.11.15.22.08.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 22:08:36 -0800 (PST) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] rpmsg: qcom: The mbox clients knows_txdone Date: Wed, 15 Nov 2017 22:08:33 -0800 Message-Id: <20171116060833.5147-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org As both the GLINK and SMD drivers are ticking the txdone of the mailbox (to implement the doorbell) they should set knows_txdone. Signed-off-by: Bjorn Andersson --- drivers/rpmsg/qcom_glink_native.c | 1 + drivers/rpmsg/qcom_smd.c | 1 + 2 files changed, 2 insertions(+) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index 80d9af307b40..8ae81431bada 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -1576,6 +1576,7 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev, idr_init(&glink->rcids); glink->mbox_client.dev = dev; + glink->mbox_client.knows_txdone = true; glink->mbox_chan = mbox_request_channel(&glink->mbox_client, 0); if (IS_ERR(glink->mbox_chan)) { if (PTR_ERR(glink->mbox_chan) != -EPROBE_DEFER) diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index 2d7199e7cb3f..2770b3189e03 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -1280,6 +1280,7 @@ static int qcom_smd_parse_edge(struct device *dev, of_property_read_u32(node, key, &edge->remote_pid); edge->mbox_client.dev = dev; + edge->mbox_client.knows_txdone = true; edge->mbox_chan = mbox_request_channel(&edge->mbox_client, 0); if (IS_ERR(edge->mbox_chan)) { if (PTR_ERR(edge->mbox_chan) != -ENODEV)