Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp283081iob; Mon, 2 May 2022 19:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMdvN0SLftT4a5xwHhB4WIFCgwwTm3AnHDI3QinOVY40SemczxIHp9bKR630o1wcSIyrlM X-Received: by 2002:a17:90b:388c:b0:1dc:542b:a596 with SMTP id mu12-20020a17090b388c00b001dc542ba596mr2450958pjb.76.1651546084485; Mon, 02 May 2022 19:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651546084; cv=none; d=google.com; s=arc-20160816; b=tvqmL6lf06ds/pHUuFqe5VO29UEBQtGpwMj30zrdKU/wuWr//c6TtgYVb/GVpEl1kw 8NYJqSZ+HupYmSO206QSJCjK0qLIOOfXwD/FeJk+48T+VfspOOS5oo5Un0RFbRTZBC8c jktTCqA2j8KG+90adknMfipGm9YhCHTKpw8LgDPAXRZJu5Syqcl4/dnb/bF3cEQl/KVt D2/IIJdEHXkdR7tzCboU50VyT3weFKdO+vXNIFbI0UiadrI23cCFtGZMa9JLowJZuDcF poAnJlCLzKTlgumBiQ2d7rpNqJrmjQHdqzux+9PNCZXvetdpjR7ueUlsls3nLy3k9Jrx eAkA== 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=bLBOGDgcmNltK6UF/fMVaVtqnF7C3zMmNOYidlKN9Rk=; b=YThb5ee4uT7Aaboaiw+pj6rL93XQW3ffu1/5dVYokpK3jKUCHoxXuXln1Fw9/0osTF Mj4i9yqY0l21sgl+1tfzKUmrBSWxgoLlssldAnGia5sy/cjLSkfYwUARpxOoJoBBYFJB CHXpZZzNtUKMs6mvhSkgFTz5kf/d/h2HTmDxeOhSdz9JGoJTq7E0yugDV+i/EKBM+0P3 qOsg32Kg3c65LEu1UNfFnDKUL4vyx9BjLdCTqV2ONJzXGeE4w6rbWHudw/CgcIqse0qQ DZBxndNSvsWiLRGkM0Ft2+Spmkur0mG8h7yh8o1i9q06MxCv7VbNuMxyZmAtsPRoZmye Up1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=B1e2Fxc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y8-20020a1709029b8800b00156547bdf87si15090000plp.495.2022.05.02.19.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 19:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=B1e2Fxc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DCA3E377C0; Mon, 2 May 2022 19:48:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbiECCvW (ORCPT + 99 others); Mon, 2 May 2022 22:51:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbiECCvR (ORCPT ); Mon, 2 May 2022 22:51:17 -0400 Received: from mail-m975.mail.163.com (mail-m975.mail.163.com [123.126.97.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C330135864; Mon, 2 May 2022 19:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=bLBOG DgcmNltK6UF/fMVaVtqnF7C3zMmNOYidlKN9Rk=; b=B1e2Fxc1Zm6MuCdZqEX8F BZFFiFweM51pGDkYTn3vN4Vc62+vzBSRGoMBotMOuhkMtZvUBucXTkbfcz/ADnSU w5nvXLIkUNS0s+aB6UIkl6GrEHZalttD+mFF7cIm99k8XWzHPpVl0bztNoALaGms TRwAE/dMvSD/gtY9TBT4Jo= Received: from localhost.localdomain (unknown [112.97.63.58]) by smtp5 (Coremail) with SMTP id HdxpCgBX2zgil3BiSChTAg--.9943S2; Tue, 03 May 2022 10:44:52 +0800 (CST) From: Slark Xiao To: mani@kernel.org, quic_hemantk@quicinc.com Cc: gregkh@linuxfoundation.org, loic.poulain@linaro.org, slark_xiao@163.com, bbhatt@codeaurora.org, christophe.jaillet@wanadoo.fr, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] bus: mhi: host: Add support for Foxconn T99W373 and T99W368 Date: Tue, 3 May 2022 10:43:49 +0800 Message-Id: <20220503024349.4486-1-slark_xiao@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: HdxpCgBX2zgil3BiSChTAg--.9943S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw4DWr1ftF4kWF1DKr4xXrb_yoW8Cr4xpF 4SvrWjyFWkJF45t3ykA39ruas5uan3Ary3KF1xGw1a9w4qy3yYqrn2gw129FyYv398XFW3 tFyDWFyag3WDKFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0p_WlydUUUUU= X-Originating-IP: [112.97.63.58] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/xtbBAwb1ZGB0KLK3cgAAsf X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Product's enumeration align with previous Foxconn SDX55, so T99W373(SDX62)/T99W368(SDX65) would use the same config as Foxconn SDX55. Remove fw and edl for this new commit. Signed-off-by: Slark Xiao Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/host/pci_generic.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index 24c94c23d78b..6fbc5915ea36 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -371,6 +371,15 @@ static const struct mhi_pci_dev_info mhi_foxconn_sdx55_info = { .sideband_wake = false, }; +static const struct mhi_pci_dev_info mhi_foxconn_sdx65_info = { + .name = "foxconn-sdx65", + .config = &modem_foxconn_sdx55_config, + .bar_num = MHI_PCI_DEFAULT_BAR_NUM, + .dma_data_width = 32, + .mru_default = 32768, + .sideband_wake = false, +}; + static const struct mhi_channel_config mhi_mv3x_channels[] = { MHI_CHANNEL_CONFIG_UL(0, "LOOPBACK", 64, 0), MHI_CHANNEL_CONFIG_DL(1, "LOOPBACK", 64, 0), @@ -560,6 +569,12 @@ static const struct pci_device_id mhi_pci_id_table[] = { /* T99W175 (sdx55), Based on Qualcomm new baseline */ { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0bf), .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx55_info }, + /* T99W368 (sdx65) */ + { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d8), + .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info }, + /* T99W373 (sdx62) */ + { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d9), + .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info }, /* MV31-W (Cinterion) */ { PCI_DEVICE(0x1269, 0x00b3), .driver_data = (kernel_ulong_t) &mhi_mv31_info }, -- 2.25.1