From patchwork Fri May 25 14:36:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 136926 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3675103lji; Fri, 25 May 2018 07:38:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqnhfLJftBNb/sBJs/qL3SUPNWTtJyesMVH4EQgPZeuPnK6XK5aFwLQ0EVpruti9uaR56iR X-Received: by 2002:a17:902:8305:: with SMTP id bd5-v6mr2880102plb.13.1527259109169; Fri, 25 May 2018 07:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527259109; cv=none; d=google.com; s=arc-20160816; b=kV1erwi9W+cywJWcg08SG16/+8O2nEHYXq2x/EpwlyS2JhWAUOjAmd7I+IjHxyOV7e ddNwFHrc2vu13juQZdoqMTrZWxA/WO314N+1v7xstgH1dEBegmQFNeEbI9mgA59HXXUx ztpPjNlTBmA8gG2aBLfgpPZXUViYg8Ed5jk8uBdJbcC4Y4kfC1re05jjOuXP+AgdNpW7 ONrdNnjyCtZMR0WzQZtVgjU5+oQaP0GX2le1VD0+p0ub3Q9CyjMB8gH3XxmhsDGBgw2a GMBHZqS4PfUhWEdEnTUQV5+uoLnW41rods97RYHRsAAWaWKW504vPGXvznXUJRcKwKVK FpoA== 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=ap4tnZBcfA1x6gjHFYqMZKYNlNWBlSsLFh8KcN91Y2i/xQZHA1Bo6ei4YzVLExi5yM 6K+mE7iL3sVurVGKVMFh//HvOQXUfVu9Qsa0xHtC9OWIMaDgQygu9dy2Ke0fdbjmjc82 GD6W4WWXAZSTThxEBKbMSnui+hXvkvDE7aV5AG0KjBODg14nr4sa1yJCP1jcNOR+TL3F MCZEPhrOAXViL+LIk5Hg7CKAVDrEXSqhOXh/onkfEdVU++3S5xDTCbqnu5DnfHYb382k x5r+vIwNyHgT9pnOTjYugOAc3RLAp7UAQ6wh0T4YWoQ+iUiSG0M162j6cc0oy+xy1rQV BfFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PE0HWr0y; 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 j33-v6si23992444pld.151.2018.05.25.07.38.28; Fri, 25 May 2018 07:38:29 -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=PE0HWr0y; 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 S965052AbeEYOi1 (ORCPT + 30 others); Fri, 25 May 2018 10:38:27 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40243 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936298AbeEYOiY (ORCPT ); Fri, 25 May 2018 10:38:24 -0400 Received: by mail-wm0-f65.google.com with SMTP id x2-v6so7864576wmh.5 for ; Fri, 25 May 2018 07:38:24 -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=PE0HWr0yQJFDoSKPFM7ASJDP83LZNO18XAIA1tY3NZyM0kr7I1F/I3bFNUo8afnJmk DqZl833F0wCaiaIz6sjSVfqq5MUN3bzXUTZyAOiLZWNtu11IZasA3QvPGFHw7fhhAY4C zpnyOnkVXOd6vv4qMR7PYSO0mT7N7qHDwtnqg= 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=GyNqAICaa9lKECh3VAZOh8JBkYDjjcGqaXfm93kTlK6gy/h2aYNxCF82sncmRsN1oC YOuxTIv5tn+vybgLG093ZIQxJzM0U60NhABQ1O6jdOn+L6bMv60npia6pYIN0pdpZd3x x5suIX2uCmNpxFd6lcUrW3kz+6Co8NId82mFnaHcjFskrvAobaEW2D56A/o3Hcz9QC0H icmw417QJ2ubauxnB6vrV2HDOBhmlivWwhd40EPx+MYivlZ5TJZOyX5aPYrk7C3tAGey 1+dqXxafi7KKTFzjonDnkWTEEw2j9PSbv45Zf8H8HEu13JdhSH3ZZ7dZq3S5t4IRcPqj 4p8Q== X-Gm-Message-State: ALKqPweSeYcpL4o0hwWZ0ZbMCDrc9sLKP4/TaTvDZsnVmrAF1iZfKX7c ArJbsVQPAoWbKq3glOAW6BbjKw== X-Received: by 2002:a1c:97d3:: with SMTP id z202-v6mr2034768wmd.66.1527259103610; Fri, 25 May 2018 07:38:23 -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 r6-v6sm26165729wrg.73.2018.05.25.07.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 07:38:23 -0700 (PDT) From: Srinivas Kandagatla To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v3 2/8] slimbus: core: add need_tid flag to slim_msg_txn Date: Fri, 25 May 2018 15:36:12 +0100 Message-Id: <20180525143618.820-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180525143618.820-1-srinivas.kandagatla@linaro.org> References: <20180525143618.820-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 */