Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4916153pxu; Wed, 21 Oct 2020 08:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX1sZit3Id/E54r3hPOxAJnOaGXvTTSkgTlCZAoAEpHOYslhOHgUcqDBW9mOmhEwYsUkba X-Received: by 2002:a50:c01e:: with SMTP id r30mr3478580edb.176.1603293930650; Wed, 21 Oct 2020 08:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603293930; cv=none; d=google.com; s=arc-20160816; b=KdiBfuo02HoReaDqNuW6eel7lWdIe3vrEqbvyGgnXLvpOX7W+jaiDlOdRQE6CSqIaM aQSLp3JwqTkwKHytsqLaOaUBgOSAxczza0R7Cp3JAmkcVWYJA7f+an7BXp3B5uUibcpH 53/a0WeJPSYUFtlgIpU7S9fKCU5uWM2ybjJl8s4r4hWTGNMjLS5EkNaXRgtuwR2QoTy5 aInCsCIQYvxb72QQbkwFfCbW/hOeZVihzH10COrE/e5KENgPW2EsjqpnYeykF/PsNLFP rkXuCRRAZXK2iT1vOUDauYiXdQR/tTkk/TtVucLab9Bxi2Y9GmQ+B0wKU0bbtLXIzbCJ w5og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VJt9mpGw3XVLr896N5J+yAHDMbRZltPHKTigqN+nL2A=; b=sW7FZClyODUMOi2VxUhAOMc2tisG9xTUapKROCIIJn2L9rsXS+BOXr4uxARJkXd2WQ p/J+zYGRe7+efyKsCr9tsVkXC9TqGH5bD5Q6/8Cbei0B2HOicIamlSG+TH1EzVab1Cka conaAFMwSz4FCaIJ4KA449JqWJHKWQDeKD4xqXb86W+d2HGAxBZFSOdv0/DuaIrJUM4R 7/D9v+tSA03gXqSQhvAPf7bW8/YIVldkqr2I92QSak7AJ0RTMsevN1DxFz2eo4nA7SOA xAezxuK29jry5F60ZP+6EfBfIxObNUhVFS6m1OGVAVGfiyPL+qHiS/q+JqHq06xzILg0 xuQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gACjmOgP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si1654557edm.359.2020.10.21.08.25.08; Wed, 21 Oct 2020 08:25:30 -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=@linaro.org header.s=google header.b=gACjmOgP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502458AbgJUPXy (ORCPT + 99 others); Wed, 21 Oct 2020 11:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502253AbgJUPXy (ORCPT ); Wed, 21 Oct 2020 11:23:54 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32B66C0613CE for ; Wed, 21 Oct 2020 08:23:54 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id h4so1309830pjk.0 for ; Wed, 21 Oct 2020 08:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VJt9mpGw3XVLr896N5J+yAHDMbRZltPHKTigqN+nL2A=; b=gACjmOgPvCkWNF7wjR5zlSrIOcPkspaajkYXUm27/lMdpQgZC6kA8xfliZmASpA4sd x1/SxpB7Vcc2Zx2bW7/Aqo4qeiTjg+vYSt8wZJUoCWrm/13vqk+T31WCsnsY+rUFDQ8E xOhY6dN6aBQZL1cX12GfJCfPT8J9GOXjuw8Ks83sRt9+F2xOMB6V3NvyLlqm11wxi7xk NAMflSjrgUHQpAOr13ym/NOAvq/PQyzLppAuEp+8OjUGSe5vGbTmoZ3Bje1RfE/ZmdUH /J/u0WUKwD2WSN1adturfNYbdx8QDdJxV8aDf5xNhbqv1LnJBwbzPW+7/3iPLiQ6hj3h SaMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VJt9mpGw3XVLr896N5J+yAHDMbRZltPHKTigqN+nL2A=; b=pwIy5YKNCBhhqm9IVUFWzVWYUV4RwLx40Uf7Vpb0dWMtQtTXyt1VtLwxXTCJBt72Gr 7ClE/7HxsRi+lBthB+pIFfeUebCZdtrybuwC6s5SraqwD4bpAhRxoAXzzQkNU6awTWtE BlDHrR0M4wNvzmxI4r30wVW+WNQ97Mj8h+LMZgAElZ9vgs/l8UUd6FMWYx2+Ff3y5LNW RnW3Ey+dO+Oz5CFNYj4JfQxhey51AP5WlceSuCSAw1nL08h2MIDRpz3cEnkvvRfmafuy BZ65lXfihGHR3QKLO5HMlLO2T+2LZxw9GzcBZfG7QIqcuC0632ksJrCjM7MARD3TMXGW dJMw== X-Gm-Message-State: AOAM531wjZYpW8OpqXFP8yDfbqNnHzaDUebhoQLKoRc6kXN7OnmIJAsd ndZBQzQCqeb+TK6jhrKT+BmO X-Received: by 2002:a17:90a:aa90:: with SMTP id l16mr3865288pjq.0.1603293833626; Wed, 21 Oct 2020 08:23:53 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:70e:2a27:314a:6d22:ec47:a603]) by smtp.gmail.com with ESMTPSA id z5sm2615951pfn.20.2020.10.21.08.23.48 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Oct 2020 08:23:52 -0700 (PDT) Date: Wed, 21 Oct 2020 20:53:45 +0530 From: Manivannan Sadhasivam To: Hemant Kumar Cc: gregkh@linuxfoundation.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, loic.poulain@linaro.org Subject: Re: [PATCH v7 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file Message-ID: <20201021152345.GC3334@Mani-XPS-13-9360> References: <1602907457-13680-1-git-send-email-hemantk@codeaurora.org> <1602907457-13680-3-git-send-email-hemantk@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1602907457-13680-3-git-send-email-hemantk@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 16, 2020 at 09:04:15PM -0700, Hemant Kumar wrote: > 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 I've already reviewed this patch. Please make sure to collect reviews while posting incremental revisions. Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > 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 >