From patchwork Thu Aug 24 07:21:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sricharan Ramabadhran X-Patchwork-Id: 9919237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D55B60353 for ; Thu, 24 Aug 2017 07:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FB102885B for ; Thu, 24 Aug 2017 07:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 848CD28A48; Thu, 24 Aug 2017 07:25:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40D972885B for ; Thu, 24 Aug 2017 07:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751278AbdHXHW2 (ORCPT ); Thu, 24 Aug 2017 03:22:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33516 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbdHXHW0 (ORCPT ); Thu, 24 Aug 2017 03:22:26 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 396AD60722; Thu, 24 Aug 2017 07:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503559345; bh=BaSnwC8YE2ucEARmtimxcQzOcnBXK1CpijaBmcSuenw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3iV57lbzICGFsFBDwAG/FZCCbygqKZD8pnDYCE46L90wvaVR/9LBFbYiA+VIxupb A3Dj5S6kSN2KbfU3l2rEcy5se6uSIbZF1bxhtvN5nwuFUFYZ5M7Y6TSn7WvUBlZDkV X3y6/xe9TPkVrQXJRdJai2EhDrH+H3f+Ft48pgHI= Received: from srichara-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6A33160722; Thu, 24 Aug 2017 07:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503559342; bh=BaSnwC8YE2ucEARmtimxcQzOcnBXK1CpijaBmcSuenw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OV26Oy5E9yLyDw3s8qBdvK3unsr2UpLgCBF5WOLRN3LdfnDfZlRATR4DAxd4+a1yb HrwRr6+MVdKcQ29AY5NGfiXVLmaEjNXnqLGk+tRJx0CwtWVj2AjEFtrzIS3C9P2fNw 6l2nNLsMXONKlyr9o9HFkpPV0DfwX8TsqRAVpYDQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6A33160722 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org From: Sricharan R To: ohad@wizery.com, bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sricharan@codeaurora.org Subject: [PATCH v2 09/20] rpmsg: glink: Fix default case while handling received commands Date: Thu, 24 Aug 2017 12:51:31 +0530 Message-Id: <1503559302-3744-10-git-send-email-sricharan@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503559302-3744-1-git-send-email-sricharan@codeaurora.org> References: <1503559302-3744-1-git-send-email-sricharan@codeaurora.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently if we receive a command that we still do not support, then its simply discarded. While doing so, the RX FIFO pointer also needs to be incremented. Fixing this. Signed-off-by: Sricharan R Acked-by: Arun Kumar Neelakantam --- drivers/rpmsg/qcom_glink_native.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index 50a8008..9a58925 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -541,6 +541,7 @@ static irqreturn_t qcom_glink_native_intr(int irq, void *data) ret = 0; break; default: + qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); dev_err(glink->dev, "unhandled rx cmd: %d\n", cmd); ret = -EINVAL; break;