From patchwork Thu May 17 08:58:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10405995 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 C086460247 for ; Thu, 17 May 2018 09:01:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE6D428A05 for ; Thu, 17 May 2018 09:01:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EA86289E5; Thu, 17 May 2018 09:01:32 +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=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9229F289FF for ; Thu, 17 May 2018 09:01:31 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B28D326735E; Thu, 17 May 2018 11:01:08 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1A50A2671C0; Thu, 17 May 2018 11:01:01 +0200 (CEST) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by alsa0.perex.cz (Postfix) with ESMTP id 7C9A4266DF0 for ; Thu, 17 May 2018 11:00:59 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id w18-v6so1059950wrn.6 for ; Thu, 17 May 2018 02:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0NJFO6su7aIrVN5C6zfM1WIOBkuoLZrsN0oLxSCKfNI=; b=LNAT8DdDiXUAFhEVgrAqI2+2Mj5PUAwPyUYCX80wROlrrz+BuH61cMW6dbB9nUu78/ A7+LvsSZKHLccAbji49UWJS5+JmMg5C4iJgILq2H+aLAsRMAimc5dsuzMcDfKylC1gi0 PlNDq+RHKGXtQAnkhgr16OvzX2e7BRCV2/MP0= 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:in-reply-to :references; bh=0NJFO6su7aIrVN5C6zfM1WIOBkuoLZrsN0oLxSCKfNI=; b=cfv9Q2SaMXdMYO1JIcvT8P5gkPeN6dpCqJh1QHcPSw9wBJnTIL5QnD3EMQLFUWsTqT h0SqluJYSf0CGZrR387byzvz/7UoOUdxnxDkvVuKVFmpyZjN60Xh2jGJLR7GHVYYGZAo zAfLBjTjLFmllyETeBpreTxpJzkoI8LbCTxBGt+EQhOvdAj0T5V+0kTNYpTcEGBACahh paZnmqkR/xwEYt98I1NQPr7+0sCYF+41cKnXWhy4cKPDeOXXRyJpRx0lbURjNa7ITXL9 nIjPDbUDbrOImOqkUoKz1P9sdT7BuQ4pI2K++gr4DsQT8KsdXzs2rFC+Bg/gquxf+Bv+ vhfw== X-Gm-Message-State: ALKqPwc91H/qjt6wmviizWAPyOo40Vjd56IGUd4ILo8bCULfj/v9ekJb WhTA8bYOU9ii5fviFufRybtSVSlx+PA= X-Google-Smtp-Source: AB8JxZpqrzY4g+X8OvqMmq1xIQeEPpKB+aK3keZNpU+RQUokWnqsACUy1lafQzRVU66iADvz1JrqZw== X-Received: by 2002:adf:b083:: with SMTP id i3-v6mr3304123wra.52.1526547659265; Thu, 17 May 2018 02:00:59 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id y84-v6sm4123098wmg.44.2018.05.17.02.00.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 02:00:58 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Thu, 17 May 2018 09:58:45 +0100 Message-Id: <20180517085850.14276-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> References: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 3/8] slimbus: core: add need_tid flag to slim_msg_txn X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add need_tid flag to txn, this flag can be set before start of transcation. Having this flag would avoid calling slim_tid_txn() multiple times on the same txn. Also it is handy for controller drivers too. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/slimbus.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/slimbus/slimbus.h b/drivers/slimbus/slimbus.h index 79f8e05d92dd..3ec5a85fba8e 100644 --- a/drivers/slimbus/slimbus.h +++ b/drivers/slimbus/slimbus.h @@ -102,6 +102,7 @@ struct slim_framer { * @msg: Elemental access message to be read/written * @comp: completion if read/write is synchronous, used internally * for tid based transactions. + * @need_tid: flag indicating if a tid is required for this txn */ struct slim_msg_txn { u8 rl; @@ -113,6 +114,7 @@ struct slim_msg_txn { u8 la; struct slim_val_inf *msg; struct completion *comp; + bool need_tid; }; /* Frequently used message transaction structures */