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: 136123 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2011633lji; Thu, 17 May 2018 02:01:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqauPWKm64w6dheheK0UPiQvpHZ8r91R7b/Gt2DLFMtivJhsYPYdAd9ePSFVY3tYxkbG2sp X-Received: by 2002:a62:404f:: with SMTP id n76-v6mr4391983pfa.185.1526547669322; Thu, 17 May 2018 02:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526547669; cv=none; d=google.com; s=arc-20160816; b=fykFxGga9LfR7XnDY4/rEu1wEjYFg6ad4k37X9MLYpgpMUDRwBiSi3Ws47EiSIdcBS c6ESty9571A8aPgyJx3aDlf7AypO0ziB6wQ0kc8b+nKGhbgoPr0DKv9DA1n9leF/E3/p vIBw/VONZ3+utzChWKaPMvRkxCDJIkGbOEawH5/mtP/Iqg839ysGqsonmccv9KdKqOea cG5VkbvgkNN4LxaZ9Lc/eaZgO/m4cTILuH8z85nFNxCQ+tYYxPYeIlsF0BclfEuBdP5B 9cgooNaqgbktOlGmZFPuwWb64q0j3/UP7V7PyneWnVhIk4+TQaU1CN8ZCMmKAore3WzO iWWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0NJFO6su7aIrVN5C6zfM1WIOBkuoLZrsN0oLxSCKfNI=; b=uT1Sww6FQeVSLQrF4mZAP709DA2x9V4BgQKa9OtVpCpeRhuYYYTDdKGFJa9sLPLQc0 +YhIc6Yb3SMmmkvLVyhZeCvC6K6Sr3BDv5sloL646vVt+gb5QN4AZOEHwhAKig7CWPZU rlAxfrRf+2PV1Vgi6/MyVjNaWtOZLDWa74pYE0zdsv0/jK4ZM6VdwgH0yMVMECi4LgHv NcVHk12wcf1SdD2BIX3+4of5kGAZdsQkclOcfX56qfH7UdwKEquhhzpW7eqco2u0wNCb /6AMWnD7OD7i/qqZbnWuaUbscrViU3BSeGh46buKu331b6y+0Rz9GVivnxdbnTANag5Q z5Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LNAT8DdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si4715445pfe.79.2018.05.17.02.01.09; Thu, 17 May 2018 02:01:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LNAT8DdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096AbeEQJBD (ORCPT + 29 others); Thu, 17 May 2018 05:01:03 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:37125 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbeEQJBA (ORCPT ); Thu, 17 May 2018 05:01:00 -0400 Received: by mail-wr0-f194.google.com with SMTP id h5-v6so4819568wrm.4 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=P0PdBN9XWY/xxihBaL1rPliddc8J6+eYIByCCHPe7Puerkh0BSZynmrwhA6V37G3ys 0fCXuiQr1LNB37eieTu7aZV/a8nd2zIu+JedZUIoJ6ZNnzsOdNBYFF4ZMypzTvwueQQC KqQ3fd3SRbrKGqCDoVYzP6hZ3tlcQxkkPBBNrELOMw3l6G/QxUEkw/mIi4RWKp3K0LiE rAdtk969qC+FAbAReWTiGqQ+q6r1SXnXGaBAv7P9aLGDZawgMSzH5UGKMNZpIOipSmLB VEBcV8SrcuVJ3MB+qvNqr/Rq4T5H7KYYt9DErdzhQBlJqfSkBaqLJxacPII5asnRPLvB RxJg== X-Gm-Message-State: ALKqPwd8HyuFehm7O/IXj184NIdhTHsrPaYoxQwvjGqjAQCTr5giJhZc /PPmFA8YHNThPsGfumBwlxdp+A== 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 Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org Subject: [PATCH v2 3/8] slimbus: core: add need_tid flag to slim_msg_txn 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 | 2 ++ 1 file changed, 2 insertions(+) -- 2.16.2 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 */