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: 135999 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp805430lji; Wed, 16 May 2018 04:39:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFw4R0aN+LaMwzvBpBWKdLWF0UQwq8X6J7RkMUbMc+zaLiqzHE6RQOwDThOe9VqCAyJ7Xi X-Received: by 2002:adf:83c6:: with SMTP id 64-v6mr551654wre.270.1526470779824; Wed, 16 May 2018 04:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526470779; cv=none; d=google.com; s=arc-20160816; b=Ljizvo/TII0/xVYJXHN+k0cq1I3mR4tO9gATfMmbn1qRZqr1W/eeUeYgsgE0//c7xF y1EdDAtHP4gipJxMLrnIWI9YjIj9DOn+2qHF12h5pNacK5uqsQzy+uVq0nzEa5fBAWng ZiYXEGGigR0wIX0kK2+a8oovPaNitFshSd8+RvC2C1nJH6B69ts728oqig1/m4LO+aKd dTPBRLUgGdqFcuZxfzgYLeWEJiEPC4wZ81hm6Si3shGxNxLo2QhP2HwcL/kHA69H2Tgn +y1KzbsrQUSayWiuVCUNB2IQxMAS6Pb7Rk70GXHwoS424ipqvtgJ8ESGeDQbho+P681e vp8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=p2j0sFpbJfjNbr/fmsy9hy7alF20eImaNIL5vi2I5g0=; b=DWVpmaVhZTdTe5pXqXj/GFR6O6Iu5KIdl38PAfLBVuZW+AlmVb0HN77DwZHP7dFUQB pZq2IZh4+8DWOBfXxspcfBPKzhr6YREyJyivwhixPIFsEQtv1kkAzFvi0e0Awwj0jt7Z cyZ6v/9unizNPrpPu9QnFeUzqi5J+lNtABC2Ddmz63sf07GgGsJ05WHcTFial7E5N+lE +gH8jtp07bzPiJoMmKG8+Qq9HsXY+LiLOKSxfVyjYgr89OrIn2u+HD2uvxSjMrZju+8b bAn3YbgLqaHuw5//YPmSi70iqmlh87Jvkfuol/itQNpah6M9wNnQbikhafM/RqaCjIRK bU2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XPzI/tBG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id u9-v6si1903778wmg.105.2018.05.16.04.39.39; Wed, 16 May 2018 04:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XPzI/tBG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 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-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 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(+) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel 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 */