Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp40468pxu; Thu, 3 Dec 2020 18:46:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJygPl6tV7YxEvC0QUTmhizHYQcwrB16Q+QKWUicnQWLVGHyT20dOjzmWPAZCBDYuiPkG0uq X-Received: by 2002:a17:906:3687:: with SMTP id a7mr5188674ejc.210.1607049963871; Thu, 03 Dec 2020 18:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607049963; cv=none; d=google.com; s=arc-20160816; b=x+gY8RCu6yf2rneG3O+Omb0m9tMB80KEe/zJMnlIaofcsiv6oCHMVLtUmH1fLxJw8O bYPHkHOEWH1RtHAUYqnB7NbDYISHA5yTKgL6v4/N5J9p9Pa4dIMI3OwU7tMbvn3pvz0d sSpKEXCa0Mc+xI+WIg9wZ2H4Hd5vBd3BODLfHRT/yfb4CCLNh57vCGAMX9vwAG39RJfF cXl3lNikTngvXhJxzaJ/LvhCINfRMJeSm8iViKNm/ozdUO/u2yrd5QbuoCT1B5b9WVjS K1pCLeb8v7zewgfOnhK80UeZglRiU6xDhNiYMBHuNwPeyfB2yMX+fsU84ksgDK15Gon/ 6O+g== 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=qGJPi5DdraH48HJypg2BY8KEPKtHnlnyqN5KGGUYMd7YYsycGbnaNPPL+eHYNkkN7X g27ETeEURG0inqYEhJ/uwA1kAYII5R/A3dVc/oL2KWpcpWO4kQaHx2bza2igtT1hGodb 9ZYOITK+lRiuQCa/QNYA6k4Q9tGKbxAzlaHHpbaGwh5bl/p839Ul+uS+2vHyW/ijp0h2 Y8exyxwSiYqQ/5z8TOcxlN6xNi8WuJ4SU1lHo/1OhA6PGthEiAyUPl2mHw/mZ1IAPEsX ObpuuIPJMQKT0pg/t8M0NjdHKLXZ7lM+uZRvH+unpIKjGm2Uka1iUpOwDiEbaohyNvHy HeEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=hvhugT7q; 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 d19si2207887eds.173.2020.12.03.18.45.41; Thu, 03 Dec 2020 18:46:03 -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=hvhugT7q; 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 S1726873AbgLDCmz (ORCPT + 99 others); Thu, 3 Dec 2020 21:42:55 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:25936 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgLDCmy (ORCPT ); Thu, 3 Dec 2020 21:42:54 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607049750; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=vTSJJj/mqYlqSjy1P4jPSBlecvXpEXbz9kGAuxBK598=; b=hvhugT7qFUhji4TuB3qxoy45CKpvFTuSAxe+2AzXFmaNQKf1Pc2Kd7zpHUQsiFgMCEkNjFdC wa1IhHHqbpVL1ewO3m3sRlSRqRBmpQN+RWlKzn/eZ7XRCarnWs6RXiydHoDwuYvZwV/RfVCD tD7aIG0RPAXupgod4u4Y91P7NSc= 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-east-1.postgun.com with SMTP id 5fc9a1f835e04c51abad9d7e (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 04 Dec 2020 02:42:00 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A53C5C43463; Fri, 4 Dec 2020 02:41:59 +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 B996FC433CA; Fri, 4 Dec 2020 02:41:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B996FC433CA 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: [RESEND v15 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file Date: Thu, 3 Dec 2020 18:41:49 -0800 Message-Id: <1607049711-31776-3-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607049711-31776-1-git-send-email-hemantk@codeaurora.org> References: <1607049711-31776-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