Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp995474pxu; Fri, 11 Dec 2020 21:54:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzW5ZinYGLNujWdMrd2UGLEZjTBFLvsoW4k1H+WJONHMNkIb5J9lKecE7fGEHpZQ9QMcHts X-Received: by 2002:a50:f604:: with SMTP id c4mr2757693edn.307.1607752466803; Fri, 11 Dec 2020 21:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607752466; cv=none; d=google.com; s=arc-20160816; b=Fjpjb7DEun8v0fZzjuMWPefwxEmqHxVAUtRa6p3OMXkLE79VT108QXDJsJ2EXIeU09 QAFK3vGiIMzAqVA0ig3hqw2B0eJqxK786eu0SM1RRMqQKYNxSFnQd0NAL0q6Ydw9k+De ZMEmgY7oaRv+/xGvbU0ThBq/1t9FEvQk4YhZV1r+edjCj+iqBSNSx6tcK+26pGUg6AAR X0KnKW4acT/mQjTU1V9tKe8WTJVvmqW1YZnNzM+GHBev8cuaUbDMawGgTdYq6XKCppaz ffV3xydhYWbb189t2YYWXMAb8Z76M7MhBd4QsL1pmAquLxdc63jHmdlaTCd90Bq3V9LE xtug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=vTSJJj/mqYlqSjy1P4jPSBlecvXpEXbz9kGAuxBK598=; b=Ehygcq4E/WVrTIlReXR9/tZozG+wDduN4o+CV2lTUgvtb8gPRtxmUnE/HnNFOlrjZS pq4VdD6BJ+EGA36V/VbG3TrpjiK3ajlzvzRzR6oVLVNO8YKT7+f57E1G9bXmJ15r5w+P uQ2I/6yMhpX4FPHHX4szKRKmvtvNuVxcqPPDWfeS7u5kbK/XZCiHIAViiffbLfsUUviW 6uQmU5KyWwCN1frcBXzLwJMvm+616OewmRjOGtWgJqj5MIfIDN9wLq4fHBcKq71gltAF bbqtM9dpnt0IfT0MwGr4j6KfCkh7soDBlgrqoGm4F8uq9QLeFu9B9F7ZiJ5MTUAXL7R7 J1WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="E/bkESiL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si5929881ejt.260.2020.12.11.21.53.52; Fri, 11 Dec 2020 21:54:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="E/bkESiL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436697AbgLKHFX (ORCPT + 99 others); Fri, 11 Dec 2020 02:05:23 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:11692 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731397AbgLKHFG (ORCPT ); Fri, 11 Dec 2020 02:05:06 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607670285; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=vTSJJj/mqYlqSjy1P4jPSBlecvXpEXbz9kGAuxBK598=; b=E/bkESiLJaPr7d03yp2z8tWOJlFe6bsdLWpMEM/hXeOuEbvGAgb30ya5FtsE5VMew5F/ozbo Vz585RuAaA06vf3bt3RWIJEKkmaD63QLHuP27L4rpLxaT1a6yv2UN7O5dVlJhLOF0HMO3moZ sTK8Nu5WwBpzSByQCSKEJsmUQ1s= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5fd319f4962b2f3cb71cc008 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 11 Dec 2020 07:04:20 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 53C19C43462; Fri, 11 Dec 2020 07:04:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hemantk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1FFDCC433CA; Fri, 11 Dec 2020 07:04:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1FFDCC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=hemantk@codeaurora.org From: Hemant Kumar To: manivannan.sadhasivam@linaro.org, gregkh@linuxfoundation.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, loic.poulain@linaro.org, netdev@vger.kernel.org, Hemant Kumar Subject: [PATCH v17 1/3] bus: mhi: core: Move MHI_MAX_MTU to external header file Date: Thu, 10 Dec 2020 23:04:09 -0800 Message-Id: <1607670251-31733-2-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607670251-31733-1-git-send-email-hemantk@codeaurora.org> References: <1607670251-31733-1-git-send-email-hemantk@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/core/internal.h | 1 - include/linux/mhi.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bus/mhi/core/internal.h b/drivers/bus/mhi/core/internal.h index 6f80ec3..2b9c063 100644 --- a/drivers/bus/mhi/core/internal.h +++ b/drivers/bus/mhi/core/internal.h @@ -453,7 +453,6 @@ enum mhi_pm_state { #define CMD_EL_PER_RING 128 #define PRIMARY_CMD_RING 0 #define MHI_DEV_WAKE_DB 127 -#define MHI_MAX_MTU 0xffff #define MHI_RANDOM_U32_NONZERO(bmsk) (prandom_u32_max(bmsk) + 1) enum mhi_er_type { diff --git a/include/linux/mhi.h b/include/linux/mhi.h index e36d575..f072605 100644 --- a/include/linux/mhi.h +++ b/include/linux/mhi.h @@ -15,6 +15,9 @@ #include #include +/* MHI client drivers to set this upper bound for tx buffer */ +#define MHI_MAX_MTU 0xffff + #define MHI_MAX_OEM_PK_HASH_SEGMENTS 16 struct mhi_chan; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project