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: 10427627 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 A15D26025B for ; Fri, 25 May 2018 14:38:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FADA29767 for ; Fri, 25 May 2018 14:38:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 845232977D; Fri, 25 May 2018 14:38:47 +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 AA8ED29767 for ; Fri, 25 May 2018 14:38:46 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E0F1026768E; Fri, 25 May 2018 16:38:30 +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 B7E5726766C; Fri, 25 May 2018 16:38:25 +0200 (CEST) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by alsa0.perex.cz (Postfix) with ESMTP id 10B43267646 for ; Fri, 25 May 2018 16:38:23 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id o78-v6so15292462wmg.0 for ; Fri, 25 May 2018 07:38:23 -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=gvnqEDXFgFti9xCy5CIPvltiYmT6q0rGjft6bZB0YK29ItpBQaSt2YTUZIXId2CtoB 8rRLI/qvzAsTJpfs7Pr6E7SciW6zxeTtKPA/DmzDj/6yJcv5hbsjv0XsUTvS7TmLUyCK 9q0mq7u/3LtG+5Mi+RhqX9xdeIKWgKFY1BYFAGk/8a/C7v89St/tr938g07vnVJB1XSd Sqj5uiWX6OgrZEvVtK7UNsdnf+atfJ3XsYPFT11LPCipihnzbm/jVem3pvx+cPIWDK9X vFHU31xH9N+iO4Nrtz5Se2Fo+t6kxl5Kaxa/YtY0jd6600LMvCSBTOnq3me9qHbNWNE0 uVUg== X-Gm-Message-State: ALKqPwe603Q42AEAkKwYNm303XCC+FA/swI0naDykPeb5czfYXFPjpN/ +rhUSoJ53vVWZeg94KkyOvCQ4onC21Q= X-Google-Smtp-Source: AB8JxZrIwK7vwcoKRc2auSHwupOP1hV9hWmycvBo0nZSwqVbppVCx/UoRVBuqjU1LzXXHZYyr6doFg== 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 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> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v3 2/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 */