Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1836855pxu; Sat, 17 Oct 2020 02:51:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwioW06EX5t00WGrbSsat5R2YUjrCYQnKG8RWB9BEst9YY9qgS+FItEmbDmgxAcoBy6sgk4 X-Received: by 2002:a50:aa84:: with SMTP id q4mr8588271edc.331.1602928279389; Sat, 17 Oct 2020 02:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602928279; cv=none; d=google.com; s=arc-20160816; b=f8m568G7FdWL++KS00KkzobxsiS7tEUQxMX3MMIge65dRmey8GPDj771RMwXAtdN7s 8VQ1G1zgGYhdfdRJsGyZnBIzwO++WjPgTrnfYRAr44MtpEer+NqfUUt9FYWr148Bg5RV IfDQ7oC4mu3qhw0zKGp+yzrUfcJybxfYI1EhqUlTsQqBFoWxJRY1pPzmop3NnnKW/08c t++eXF7ugOYPqwPczsF632LxjE9bPTgP0TRmLMAo1cY9qUKgmG5uVtddkF1F/6woRNVv liIwQYMs9a62k3JZKbIj8XMy4PqPOi8u2/h/3ZmBm7azbTUuq6rWkBNVH+jkOp1HyPUF gEzw== 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=qucXD7qdX5YeHaYZIM4ZtdQqRSs/itOMZS+owSrSP/M=; b=Nf/dsyA9rgga7c6dfB6aHtfPWmVu9t4HDO3WBsYXqAv+kgFNYDyLOFxRn7VBVHx5Tq vyN00gjhh6Wz9dzcQkCPyz6zIvy06m62HS/MrfkmnH3/f+4LRAIwglM4dwaS2dUd8y8l D9a96YebOSbyAleMUsQeskGZXtdKzemN67EajV1iFjBWo3AUEX8XV2BG2yIE58NhhSL7 /NL5P8U8JPOd2kXFayL4TcXyfA24S0Q5A68K48Yh4SLotih8lImEhBq+c6usw8Y02yRa DAR+7qMBC1A+O4998wRMrY8QE2RXQ/2KOn3VHo9cDXUBwhelbxaJMxF40LmDD1FgycrO vhbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=LuuY3YbF; 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 x12si3774103eje.374.2020.10.17.02.50.57; Sat, 17 Oct 2020 02:51:19 -0700 (PDT) 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=LuuY3YbF; 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 S2436833AbgJQF7f (ORCPT + 99 others); Sat, 17 Oct 2020 01:59:35 -0400 Received: from z5.mailgun.us ([104.130.96.5]:19564 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436769AbgJQF7f (ORCPT ); Sat, 17 Oct 2020 01:59:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602914375; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=qucXD7qdX5YeHaYZIM4ZtdQqRSs/itOMZS+owSrSP/M=; b=LuuY3YbFC+7IIk0NSFVBxNnu7Q6qkGTjLWk/SZBIWW+mdRPkN80ZLaNaVRtuc6UXWHff8ly+ F+ofEEW2bbUeS4e0oBZrBvMDBnesMIWtJlnPv73J3EIiTI3xXPy8FCL3aeYfnu3ldZmsPXzd rdt3fN+IeplwUBY64yH9NZFI5Y8= X-Mailgun-Sending-Ip: 104.130.96.5 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-n05.prod.us-east-1.postgun.com with SMTP id 5f8a6d4c588858a304b2ec48 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 17 Oct 2020 04:04:28 GMT Sender: hemantk=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DA191C433FE; Sat, 17 Oct 2020 04:04:27 +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 2B620C433CB; Sat, 17 Oct 2020 04:04:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2B620C433CB 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, Hemant Kumar Subject: [PATCH v7 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file Date: Fri, 16 Oct 2020 21:04:15 -0700 Message-Id: <1602907457-13680-3-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1602907457-13680-1-git-send-email-hemantk@codeaurora.org> References: <1602907457-13680-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 --- 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 7989269..4abf0cf 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 7829b1d..6e1122c 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