Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1043987pxu; Wed, 6 Jan 2021 10:47:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBJ0gaWVodZg/9xX3+l1NoniqTn04mNZy2gs0YrYfcBDWNsUo2sGliqzJ8su6soq4qbJmG X-Received: by 2002:a05:6402:17cb:: with SMTP id s11mr4703111edy.119.1609958836761; Wed, 06 Jan 2021 10:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609958836; cv=none; d=google.com; s=arc-20160816; b=mAXh+YTVtENngbxOPQWjwtIRtz3LAACpQUxTfY4zIHo53RIS/1tyXKgSnkYrCiUtBl VXhaNjGfIU9+JE8CCALiAWwVsnw2GAZRLUIHoHI1wdyYd8OTdNEtvzAA1ki5ma6nx4Y3 jBjV3uBYJSt0UiGn01hZNK4eTUxeq3Dp6C+aXGCJN7U01+NQJ2yTIZEFeDEPbFc1sCgE 4JU9We5XfRqVbH3ksic01YK02zuYVnexhTQFnOH487aYMC1XcJpcNzpwj2lPY1iIs4So aOyElQvCVeaMSZ/l+Gqe12lp2azVB+4yo812ePEsFtiETe5kY5b6fy7MsVC70lK+Vzih nCIA== 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=UQRkZaztrlm0Pr6eEKB29NttxySPeboKRQ1q4gcdOo5mKO5Q617wmpnVruoNH7Tb9N uBDKzoviL1Oee+Oeql82JFUrSvTxkNCSKby2ptSb3BY25o4vEOUZTwDp5FwA4BUhEnFF voHzlrPUMGxXqPeRBJvROZT/kDhrPV8Rb8rZPL/gZHCxyNSJ5tbuu8U8j2S1pKhhbgup x91ezUAwcWf6COnwSY0lqjPPlt+wD7d6KmERXrKyj3+hLK6WIEsP0GKZMfxW4mRd8q3w v7Kd228GulW7mjhJku4Pz92lWbZiW3+M+lVs5XyUlD/naOtr7iTliDaOCkfVbU0Qs4RR yKDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=acwbEfVc; 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 ox13si1246130ejb.70.2021.01.06.10.46.53; Wed, 06 Jan 2021 10:47:16 -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=acwbEfVc; 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 S1726773AbhAFSpU (ORCPT + 99 others); Wed, 6 Jan 2021 13:45:20 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:60593 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbhAFSpU (ORCPT ); Wed, 6 Jan 2021 13:45:20 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1609958696; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=vTSJJj/mqYlqSjy1P4jPSBlecvXpEXbz9kGAuxBK598=; b=acwbEfVcmQQ36U8Tt818VTH0etqH6IpYy27Pnl+yAPnfy4+OKgrI8PTK+PMQ7m0PeCrmTyMS mcObfv3Ax4kWjVXZaNbW9quJY+QbHU4P6GTCGSRYPJtUge5q9/rYKPuZU+PVvo4bh1XO6UCC lnlzQhNMXwIluPwRsUgf5FwdmUc= 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-n01.prod.us-west-2.postgun.com with SMTP id 5ff6050ab95fc59326d995cf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 06 Jan 2021 18:44:26 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4298EC43465; Wed, 6 Jan 2021 18:44:26 +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 01E0BC43461; Wed, 6 Jan 2021 18:44:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 01E0BC43461 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 PATCH v18 1/3] bus: mhi: core: Move MHI_MAX_MTU to external header file Date: Wed, 6 Jan 2021 10:44:14 -0800 Message-Id: <1609958656-15064-2-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609958656-15064-1-git-send-email-hemantk@codeaurora.org> References: <1609958656-15064-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