From patchwork Wed May 16 11:36:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10403651 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 70AAA601C8 for ; Wed, 16 May 2018 11:39:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EDA428578 for ; Wed, 16 May 2018 11:39:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53A942866C; Wed, 16 May 2018 11:39:41 +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 8D0D328578 for ; Wed, 16 May 2018 11:39:40 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 30AD1267611; Wed, 16 May 2018 13:39:20 +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 1CF56267265; Wed, 16 May 2018 13:39:12 +0200 (CEST) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by alsa0.perex.cz (Postfix) with ESMTP id 34DDF266F44 for ; Wed, 16 May 2018 13:39:11 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id v15-v6so554363wrm.10 for ; Wed, 16 May 2018 04:39:11 -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=kop1X9UoEwWP69B2WuA6tdzOmbS3f24bCaePwaN7Tu8=; b=XPzI/tBGGW06nb2vpa7Ryqhat1kViXmWM5P3nR6OcfSn58u6iop2tDYCT6IQotgxmL hADNiZ2wbKNA5hzSPJ3L5K96JGaTLJbTu4MCH6XJ3vAow8vh76wZjAXTzZig/3BNwIH4 1xhMUTOj/Jme/jWk14v6cgbj6FTDkQCeYDegU= 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=kop1X9UoEwWP69B2WuA6tdzOmbS3f24bCaePwaN7Tu8=; b=BouQITf2an9qNMXmpvsPmSDcLbOdtGEcRwDcHJivyFyM6tYLwekpnnCYQsHQqp2TwV 8PaxBAjc1mIbOXMAIUpwXbB8Cyjkx3avRvbhrhVmFiim+c3AYIDuY9dlIHy9tKpBJb69 F896+5RzG0kQ5e1GYqxgVh0U/IKX4wyvKNMO2eQ2m3qwgd8Zz5a/lHuvO0YR7Tk8W0Xi 49d4cBux5ZOqzolmTy7sPwMudA7h1EYlv9Xy5KtvxdQsjksq0O4BzIDuFZDzYfdt8BAQ M0nW/1xYC62nYTUCmFgQ9E7z5DVt2ieoInVD7QftRpSK1sryDzr+cKoBfem3kOiztbv1 0i0w== X-Gm-Message-State: ALKqPweYSo5HXbjt5/jtA937ihyKGUs7KYuTHBGFvVYCJmhUAk8PiSKc GoF4Nzdxx+gNHHimXmgSGecOYWa9CXk= X-Google-Smtp-Source: AB8JxZo6jjtNm0n4YjzCJBEHJ/nhlvEA08VK6ulBQAHTua8eoJ6AMFqO+RMr9956dDY8rg+GLzXDPg== X-Received: by 2002:adf:bd03:: with SMTP id j3-v6mr581637wrh.138.1526470750917; Wed, 16 May 2018 04:39:10 -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 k126-v6sm4504263wmd.45.2018.05.16.04.39.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 04:39:10 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Wed, 16 May 2018 12:36:38 +0100 Message-Id: <20180516113642.28136-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> References: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 3/7] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/slimbus.h b/drivers/slimbus/slimbus.h index 79f8e05d92dd..c0450f469e07 100644 --- a/drivers/slimbus/slimbus.h +++ b/drivers/slimbus/slimbus.h @@ -113,6 +113,7 @@ struct slim_msg_txn { u8 la; struct slim_val_inf *msg; struct completion *comp; + bool need_tid; }; /* Frequently used message transaction structures */