From patchwork Sun Apr 28 06:53:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Atlas Yu X-Patchwork-Id: 1928585 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VRxxl46BCz23tD for ; Sun, 28 Apr 2024 16:53:30 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1s0yPS-0004i8-IC; Sun, 28 Apr 2024 06:53:14 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1s0yPO-0004gt-8j for kernel-team@lists.ubuntu.com; Sun, 28 Apr 2024 06:53:10 +0000 Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 220E03F6E6 for ; Sun, 28 Apr 2024 06:53:10 +0000 (UTC) Received: by mail-yb1-f198.google.com with SMTP id 3f1490d57ef6-de46620afd7so5673531276.0 for ; Sat, 27 Apr 2024 23:53:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714287189; x=1714891989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+M6JDLH8Jgraf1G4ECh+BiCG8+REqh33asJpzfeqnac=; b=vhR50BFisUcDaBZFPxA2NUhEtJRLD7SfHR1bBKiPUZK86ZfHG6q6YsUlF1+Ux4kb3c DUN3DHD5xCHQFlJprQFcokqIqgUezf20P/EpQ/v4VHFko4tiECR5oyPxXRVB8CLYvF3T MtUzlvA2SGBKLFmjlYxtdrQ5ktTG2Qt7SnluxrpXLaF+IeqI78tJ/qWDLvxfdpowFOed K0wL7AaTZOFwhL0UAGhHvZQmfrFgSjDrvtY1xnIjs2MYN32zgQAVqb59ZiZq/tTTuc+u tdtF2gLgOcEwzRr8Je7YJc37kZsLdL2qpmdhmtFDwlznRqKkeo9mZcwXODH7wDngxUlh ciNg== X-Gm-Message-State: AOJu0Yzq38pKk68gtOmzsMLZ5AVYR7tU5yYsyHLrmJAAwPdkYFIwiFdy /trAAcJZPASSXQT5Iqg1xHSHWZdlfVdFmEiJ9gpGLG0KUJ2V9CBMrUjeSSYE3z6TSW9GxNkGi/U ELaiDwZaJwzo1fhecX2QIF1TKbrpIKjxucjVrU1t48qEHumDHlbQQ/6IIBVXEZWv8HPnVNaRGkI v70N4V5XoZFA== X-Received: by 2002:a05:6902:2193:b0:dc6:cf96:2956 with SMTP id dl19-20020a056902219300b00dc6cf962956mr5451919ybb.44.1714287188927; Sat, 27 Apr 2024 23:53:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxDirQouyoBbSJ7Bo56s0JkkXpLbRmgt/g4eL+I88jWaVr73PF0BmXrs5fm1av+a9CjREqnw== X-Received: by 2002:a05:6902:2193:b0:dc6:cf96:2956 with SMTP id dl19-20020a056902219300b00dc6cf962956mr5451907ybb.44.1714287188384; Sat, 27 Apr 2024 23:53:08 -0700 (PDT) Received: from localhost ([2001:67c:1560:8007::aac:c02c]) by smtp.gmail.com with UTF8SMTPSA id c13-20020ae9e20d000000b0078efd245e09sm9471751qkc.79.2024.04.27.23.53.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Apr 2024 23:53:08 -0700 (PDT) From: Atlas Yu To: kernel-team@lists.ubuntu.com Subject: [SRU][M][PATCH 1/2] Add support for Quectel RM520N-GL modem Date: Sun, 28 Apr 2024 14:53:00 +0800 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2063529 Add MHI interface definition for RM520 product based on Qualcomm SDX6X chip Signed-off-by: Duke Xin(辛安文) Reviewed-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20230630062318.12114-1-duke_xinanwen@163.com Signed-off-by: Manivannan Sadhasivam (backported from commit 1cad976a1be9e97ceca5797b7e1000e2f1a9980e) [Atlas Yu: context changes] Signed-off-by: Atlas Yu --- drivers/bus/mhi/host/pci_generic.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index 8501a87c8369..514745c6b1a5 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -334,6 +334,16 @@ static const struct mhi_pci_dev_info mhi_quectel_em1xx_info = { .sideband_wake = true, }; +static const struct mhi_pci_dev_info mhi_quectel_rm5xx_info = { + .name = "quectel-rm5xx", + .edl = "qcom/prog_firehose_sdx6x.elf", + .config = &modem_quectel_em1xx_config, + .bar_num = MHI_PCI_DEFAULT_BAR_NUM, + .dma_data_width = 32, + .mru_default = 32768, + .sideband_wake = true, +}; + static const struct mhi_channel_config mhi_foxconn_sdx55_channels[] = { MHI_CHANNEL_CONFIG_UL(0, "LOOPBACK", 32, 0), MHI_CHANNEL_CONFIG_DL(1, "LOOPBACK", 32, 0), @@ -573,6 +583,9 @@ static const struct pci_device_id mhi_pci_id_table[] = { .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1002), /* EM160R-GL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, + /* RM520N-GL (sdx6x), eSIM */ + { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1004), + .driver_data = (kernel_ulong_t) &mhi_quectel_rm5xx_info }, { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x2001), /* EM120R-GL for FCCL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, /* T99W175 (sdx55), Both for eSIM and Non-eSIM */ From patchwork Sun Apr 28 06:53:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Atlas Yu X-Patchwork-Id: 1928584 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VRxxl3LmCz23jG for ; Sun, 28 Apr 2024 16:53:30 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1s0yPX-0004ir-Rp; Sun, 28 Apr 2024 06:53:19 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1s0yPW-0004iY-Do for kernel-team@lists.ubuntu.com; Sun, 28 Apr 2024 06:53:18 +0000 Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 5060C3F6E6 for ; Sun, 28 Apr 2024 06:53:18 +0000 (UTC) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-7e822d59082so1466713241.0 for ; Sat, 27 Apr 2024 23:53:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714287197; x=1714891997; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pcBRH155NlBnCwb2muD3mMKhAMe3rnXnuqy7iBQNkcc=; b=nW1hdU066epnYOASEWO8JwkmML3d5A/sN+e7CBsvYM9G0MvI7hAUbHTuc6bo8oGf0F NdT7npTONAr4cdOzZBjFWSJOLP78e1vdS5TLfwNrstf2MvLHIFdE0gi7sbCSZ5eU33Fb zF6LDFcgoc2Hkf8sH1dtfU0Cu8kFsyQmGERGI4LeBNNNjvZ6k9YMs09yiqkA8RRnbkBp 8n7NZ5DP0rQmSrkE/wb53L0ghDVP+Yf8+AlNWW/Gj+WlYOVQ/KKn5yrpbsfN9wpYkHyd dYZ37ZWzXefW6ZL4CcdsXg8xebZHIVTlj6NGeRaFeeQP6LwxFwpInxEybif1mZi58te4 Sfdw== X-Gm-Message-State: AOJu0YwpJwsUhIlUIPHwxOOrPXzMlSFLQHecGB7hzfzqSksxzl/mR7nR w94m/LKww6PCpQ1vtpPMl8Y6XLvJIHRW0VLKuywkD8k0CwjZYcNz7WiHawMKtafd5itQHU4YR5F xPQ+zpwreVybHhzf4WGgeERw4rS9vHX9h4jHHfUkt7MjsXaYzXhFdEHQBz8os4rZ6PPoD8SfaT6 6KVgAWqnHhyg== X-Received: by 2002:a67:b407:0:b0:47c:24d2:6cf with SMTP id x7-20020a67b407000000b0047c24d206cfmr6565126vsl.30.1714287197052; Sat, 27 Apr 2024 23:53:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFP+rgsqM2hzQBjHeF8KU/TfXllQg2iakbMsUv3Bef1XdbsaKtS8ihLZGp2bzmvcIEk91ezuQ== X-Received: by 2002:a67:b407:0:b0:47c:24d2:6cf with SMTP id x7-20020a67b407000000b0047c24d206cfmr6565121vsl.30.1714287196763; Sat, 27 Apr 2024 23:53:16 -0700 (PDT) Received: from localhost ([2001:67c:1560:8007::aac:c02c]) by smtp.gmail.com with UTF8SMTPSA id ef6-20020a0562140a6600b006a0943abc0dsm3970018qvb.88.2024.04.27.23.53.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Apr 2024 23:53:16 -0700 (PDT) From: Atlas Yu To: kernel-team@lists.ubuntu.com Subject: [SRU][M][PATCH 2/2] Add support for Quectel RM520N-GL modem Date: Sun, 28 Apr 2024 14:53:01 +0800 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2063529 Quectel's RM520N-GL Lenovo variant is same as that of the existing RM520N-GL modem and uses the same config. But this one is designed for Lenovo laptop usecase, hence Quectel got a new PID. Signed-off-by: Duke Xin(辛安文) Reviewed-by: Manivannan Sadhasivam Reviewed-by: Loic Poulain Link: https://lore.kernel.org/r/20230807030454.37255-1-duke_xinanwen@163.com [mani: tweaked subject and commit message a bit] Signed-off-by: Manivannan Sadhasivam (cherry picked from commit 7b672d703e76094595500afe67db29a4c9763081) Signed-off-by: Atlas Yu --- drivers/bus/mhi/host/pci_generic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index 514745c6b1a5..508d6fe7afd7 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -586,6 +586,9 @@ static const struct pci_device_id mhi_pci_id_table[] = { /* RM520N-GL (sdx6x), eSIM */ { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1004), .driver_data = (kernel_ulong_t) &mhi_quectel_rm5xx_info }, + /* RM520N-GL (sdx6x), Lenovo variant */ + { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x1007), + .driver_data = (kernel_ulong_t) &mhi_quectel_rm5xx_info }, { PCI_DEVICE(PCI_VENDOR_ID_QUECTEL, 0x2001), /* EM120R-GL for FCCL (sdx24) */ .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, /* T99W175 (sdx55), Both for eSIM and Non-eSIM */