Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp863680pxu; Thu, 3 Dec 2020 14:48:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXYbOesEi1rZ0cpzxnHoxBBYry2o+gDsWpXIrFBbZJ6Ko4aMFVX30WTAL+1cAUSkxfx3hP X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr4676127ejb.175.1607035732695; Thu, 03 Dec 2020 14:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607035732; cv=none; d=google.com; s=arc-20160816; b=mPZOWPmrugYVzjEpcocbC+9dNxLK8zWEIPd5F2Sov5AEdfzUGkAMjwsnX6KYBvmd/p kwWY38ntB8q/W+rNwZIK2y6n4/IQuAfmD08UL0EaFxD072glzHMr1e9WGVIt1s+fP5Dk 6Gl4O6jECRT4wkHdRSKVtzkccVy4GeD20TOrdCE0NwxV0gysJjotTQAU5V3dEN+Td+HN U1PqZoChj3eYjM5Bhas0XkzSbHSLiXUR9tmygUjzORSM3qC8xokp+BtQrOvGN+tpUQGd lAXj4SMTt2NvZRjrJ2uR9BtZcfY8J3ZpyVsjTX1UbiWdx3XNOEZdTgwdtiIFtj2XUEZ5 wG9A== 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=rcWTziaXE7YfToJ7IJAjWKxB1ib5PPQ68Gh41e2F6OJgvhMm7vNhuo+Jd0+ZvLC/6S vt0rtBOjrcGFlJ2GTtEG7KFdwXEzpuFUc474Eu6ksjsclyypmVrUSoQyplG8HZUaQuUv bM2GXR6p49bRQixKGE43q59crEeIBqvUTnUVcNrCMRyqWDaFkQa0YYckVczBHIblQOUv mZkwtWcLZWXV+9mLiepF1IyWe0jNYHak4nooGhmrC08Ev70oX8LEkUENKRRXQ5jdjy8d sk0Y0KvIYv5ECUdbFrnNfC9oTPM3BxUTqsg3/4bkqg4l2rOB3ukmU+3lJoTn+IzG+EHN jm6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=fNas1aXz; 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 t17si232779eji.269.2020.12.03.14.48.30; Thu, 03 Dec 2020 14:48:52 -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=fNas1aXz; 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 S2389336AbgLCWqe (ORCPT + 99 others); Thu, 3 Dec 2020 17:46:34 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:36577 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388795AbgLCWqe (ORCPT ); Thu, 3 Dec 2020 17:46:34 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607035569; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=vTSJJj/mqYlqSjy1P4jPSBlecvXpEXbz9kGAuxBK598=; b=fNas1aXzb/lwaO0fH37JYZcZpDK9XsBjpImD2W2926LMY9ZOxgRRNQrPcjtEzuQVjC41B4AS 1vSTo/6JpnDKu2Lo/svMXm2Ty7v694YXUhV0FWDLjGCMsPxpU68IZcVdsujxaWp8CSHV/lgM Tx6syuSYsBULWM7ba1pytaTr9ng= 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 5fc96a86b50fb3818a7daa66 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 03 Dec 2020 22:45:26 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8F014C433C6; Thu, 3 Dec 2020 22:45:25 +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 61747C433C6; Thu, 3 Dec 2020 22:45:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 61747C433C6 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 v15 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file Date: Thu, 3 Dec 2020 14:45:14 -0800 Message-Id: <1607035516-3093-3-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607035516-3093-1-git-send-email-hemantk@codeaurora.org> References: <1607035516-3093-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