From patchwork Tue Jun 28 15:19:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hans Verkuil (hansverk)" X-Patchwork-Id: 9203443 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 898B26075F for ; Tue, 28 Jun 2016 15:19:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B158285E1 for ; Tue, 28 Jun 2016 15:19:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F9AC28606; Tue, 28 Jun 2016 15:19:57 +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=-14.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL 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 1A3DF285E1 for ; Tue, 28 Jun 2016 15:19:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752327AbcF1PTu (ORCPT ); Tue, 28 Jun 2016 11:19:50 -0400 Received: from aer-iport-1.cisco.com ([173.38.203.51]:47981 "EHLO aer-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154AbcF1PTt (ORCPT ); Tue, 28 Jun 2016 11:19:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=864; q=dns/txt; s=iport; t=1467127189; x=1468336789; h=to:from:subject:message-id:date:mime-version: content-transfer-encoding; bh=hvYhJuQ3+/ArBNoxifbYW05ko9Kv2m815YaV9cA3vlA=; b=M5Wv7eanSEwB9bdurCLiNJUxVZREGClxBsEJEq/3FkaYcc4AIfaO3kda 4aOAItyV/uL0z4EFnMf0kqp9eDDMDnzug1bKN8G4QXK5Y0bltzPDBt95x yfJAD2KJmXF1ilD9uxZPjt3Qzwz3dzhPVxeNqFrX6qVQD4RLStYMl4CK6 w=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DNAQDFlHJX/xbLJq1bhRG4I4IPgXuIA?= =?us-ascii?q?RQBAQEBAQEBZSeEdgRRNgIFFgsCCwMCAQIBSw0GAgKILKNAj2KQNQEBCAIBJIE?= =?us-ascii?q?BhSeMDoJaAQSZAo46iUiFWgJIjzceNoIIHIFOOjKJMAEBAQ?= X-IronPort-AV: E=Sophos;i="5.26,541,1459814400"; d="scan'208";a="677970251" Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2016 15:19:32 +0000 Received: from [10.47.79.81] ([10.47.79.81]) (authenticated bits=0) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u5SFJTb8027817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 28 Jun 2016 15:19:31 GMT To: linux-media From: Hans Verkuil Subject: [PATCH] cec-adap: on reply, restore the tx_status value from the,transmit Message-ID: <57729581.1030709@cisco.com> Date: Tue, 28 Jun 2016 17:19:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 X-Authenticated-User: hansverk Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When a reply to an earlier transmit is received, the tx_status of that transmit needs to be restored. Otherwise the status that the transmit was successful would be lost. Signed-off-by: Hans Verkuil --- Note: this patch sits on top of the cec topic branch. --- drivers/staging/media/cec/cec-adap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c index 5ffa839..98bdcf9 100644 --- a/drivers/staging/media/cec/cec-adap.c +++ b/drivers/staging/media/cec/cec-adap.c @@ -801,6 +801,7 @@ void cec_received_msg(struct cec_adapter *adap, struct cec_msg *msg) /* We got a reply */ msg->sequence = dst->sequence; + msg->tx_status = dst->tx_status; dst_reply = dst->reply; *dst = *msg; dst->reply = dst_reply;