Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2967686pxb; Mon, 17 Jan 2022 09:09:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLQXHuH7UIlqa01PG0DRQfyjxH0iE5/eMbV0eGv8/EFu5toQt5CRpfLnzXLOBm5695BRRe X-Received: by 2002:a63:3808:: with SMTP id f8mr19786299pga.435.1642439367455; Mon, 17 Jan 2022 09:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642439367; cv=none; d=google.com; s=arc-20160816; b=YaZTpXZ3XHSWfvDqgN8lHr1/gJ/GUspwssr9QRRjPkqTltD4tIFV8lr0g/TdO5gLfr KmfghyjxjaQKT781gs6Ye0PNIJSweQRxN1P8MhY7uFuNqsU9b+0CFiSzeRE3PWsrVlHK QRr8frFWYsIJCECs8jdXY++U8PeYHw5DKu6X5vw8HmOO9XJsVDmVpCfLcrfeXIAt/efB CW3R//Bs8v+qb2mg1UG4FgJTRw6BzO9M7jQGxGY6iwWV8yI9Gen8XYx+k8sinW/6JBsW M3X7tImKUtgYYJzkfyJ/XapJtPWJVhodoRThQQHU7fxn+HNwtmZ6y/jt41az4nGRTl0h etug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yFV6YNSi4Vb9QBZh0XwgcOfZ3owMie3kscsPISoVnHo=; b=zQxKEAzzsoIT2iQX3M1j0V7MPlo4Md0ly57/en2CEbsVLi3z8+0DzODNUIJsSLdvAA wzteKNlrVpLr/M8MguL9cBP5m02o7gaVqTL6O7ATHSSMbLuBGnkCgj5jysRY9jcFIWxM 5JajusqPdYU19gByPdZ0+3Guf08+qmXa+FWC8HCqKeCLPH1fSV0h2qtzufMxlII2KT0L 3e5COvWFVm1uzAKEBDYRxayIywL555LMVdc5uyGvwfqkgl4L4iT/R6ixAo1rrChkaamZ Ft/X/ceo9FqGd+rbb+WWOIY5fFRQe7uidMbeeMik3w9mH0FJFbi8zY4hlIP+ZjHLGdwk M2QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=m5i0JBos; 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=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si10853125plg.151.2022.01.17.09.09.14; Mon, 17 Jan 2022 09:09:27 -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=@163.com header.s=s110527 header.b=m5i0JBos; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238688AbiAQKkx (ORCPT + 99 others); Mon, 17 Jan 2022 05:40:53 -0500 Received: from mail-m974.mail.163.com ([123.126.97.4]:44280 "EHLO mail-m974.mail.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233028AbiAQKkw (ORCPT ); Mon, 17 Jan 2022 05:40:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=yFV6Y NSi4Vb9QBZh0XwgcOfZ3owMie3kscsPISoVnHo=; b=m5i0JBosUPiN6c7QA3WQi a0iMo9B98P18WhvQCXanKYn+nkH3/nPFK58q1dOq0DKYMd8LgrarJ25Td5OkeT1I Cw9bb4PAu85f1Ci1hlm91bCeUbFvp42Y/2dKhh1MdlJhJvrFLaaM/27nW1s3uU2j ieVVXQqoqMtVkL3cbIBc1A= Received: from localhost.localdomain (unknown [112.97.53.17]) by smtp4 (Coremail) with SMTP id HNxpCgAnPPyYR+VhcIvZAQ--.302S2; Mon, 17 Jan 2022 18:40:26 +0800 (CST) From: Slark Xiao To: mani@kernel.org, hemantk@codeaurora.org, jarvis.w.jiang@gmail.com, loic.poulain@linaro.org, thomas.ulrich@thalesgroup.com, gregkh@linuxfoundation.org Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH net] bus: mhi: Add mru_default for Foxconn SDX55 and Cinterion MV31-W Date: Mon, 17 Jan 2022 18:40:16 +0800 Message-Id: <20220117104016.23046-1-slark_xiao@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: HNxpCgAnPPyYR+VhcIvZAQ--.302S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7AFWUJw47Wr1UJF4UCr13XFb_yoW8Gr48pF 40vrWIyr4vqrWYqF4vk34kWFn5WanxGFy7KFZrK342yrn8Aa4qvFyqgw1SgF12qrWxXFWa yrn0gFZrXF1DXaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UUKs8UUUUU= X-Originating-IP: [112.97.53.17] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/xtbBrRqLZF75dU7ZwQAAsc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For default mechanism, product would use default MRU 3500 if they didn't define it. But for Foxconn SDX55, there is a known issue which MRU 3500 would lead to data connection lost. So we align it with Qualcomm default MRU settings. We also validate it with Cinterion product and find it also works. Fixes: aac426562f56 ("bus: mhi: pci_generic: Introduce Foxconn T99W175 support") Fixes: 87693e092bd0 ("bus: mhi: pci_generic: Add Cinterion MV31-W PCIe to MHI") Signed-off-by: Slark Xiao --- drivers/bus/mhi/pci_generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c index 3a258a677df8..b79895810c52 100644 --- a/drivers/bus/mhi/pci_generic.c +++ b/drivers/bus/mhi/pci_generic.c @@ -366,6 +366,7 @@ static const struct mhi_pci_dev_info mhi_foxconn_sdx55_info = { .config = &modem_foxconn_sdx55_config, .bar_num = MHI_PCI_DEFAULT_BAR_NUM, .dma_data_width = 32, + .mru_default = 32768, .sideband_wake = false, }; @@ -401,6 +402,7 @@ static const struct mhi_pci_dev_info mhi_mv31_info = { .config = &modem_mv31_config, .bar_num = MHI_PCI_DEFAULT_BAR_NUM, .dma_data_width = 32, + .mru_default = 32768, }; static const struct mhi_channel_config mhi_sierra_em919x_channels[] = { -- 2.25.1