From patchwork Fri Sep 16 14:43:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 12978617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AD78C6FA8B for ; Fri, 16 Sep 2022 14:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbiIPOnm (ORCPT ); Fri, 16 Sep 2022 10:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbiIPOnj (ORCPT ); Fri, 16 Sep 2022 10:43:39 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468EE5F221; Fri, 16 Sep 2022 07:43:38 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id u9so49998846ejy.5; Fri, 16 Sep 2022 07:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=gllMF7rEKjn2stwt8zy38QVQBQaalDndHDH9GUJ9KbI=; b=aGU63eF0ffZjrabeXppQR6A07Z1vdKgRsAOOfVWaru5FTK02mInfQTd44/O915hd3v rnktJEUalIXx5b3WTn7/cUUCvVHv+JQloN0hjM6k5BmUzgF9VDGdCTDAmlYq3wqs4mPx BGIhOJb1lfE8DwyHwPeX7SP7rqqK0mvzzdbc9nwZR9hW2zRbJeN8glg5yVfK7oanoI/Q 4tIHkmohMyhvbcoHh+1ayDXsgyJC2o3OwP2nKl0Ng6zCKq1Aut95LS3hCVewHy+ximsl 8pdqrxCkwOHJmOQzFnr9MKVVFUM+O+6wxuFJMfHup92GBMyrZD1v5yHLGTrEYInFzGiF QG+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=gllMF7rEKjn2stwt8zy38QVQBQaalDndHDH9GUJ9KbI=; b=nIx0LT3o3mlNZLv4R9Qf3Q93FY9QSqQ0zKMABNt9N9bAdCBjVnlfC4mcCubsAhpkNQ zcRatA92kQE+NNXqg4Ps/cjIlURMbgxlRqaZJbOIZ+ZpT4yOSto4QXyxHERJPOTsmrKH u+3jMBW0mf6w37ddHtHRnWYXtUqvcUFNoz1ifJqDFGGvqjIA4lgIpQbDNFLTbI5QHaBa MpcwwvpWUDBSnVEj4KwvtJLy55FqAajgJirWTX7ShCZ1EVXQFALx7lMDhIDRPEjTbxV6 Jp9UN56X472muhkBmkK4l7RVtYIdglSYDIhH8fqUJcxND+ptI+JnfYLEizoWIq3ONr1u o7bA== X-Gm-Message-State: ACrzQf0SR8cmoVPjRmT2dGAZr4sr+azyfWtLL40Lt8vsiTnRdSUmm7Ii 43zqGuIxzyLpfXpe7dl36QkQzxzbhDEePg== X-Google-Smtp-Source: AMsMyM6yuNIBAzryvbRBESypYb/cWw5mw3gBg1Qyg6kFhU6B+DCAix0l11fB0Esz6fJ+QP+eEiwhow== X-Received: by 2002:a17:907:d91:b0:770:86d3:36e4 with SMTP id go17-20020a1709070d9100b0077086d336e4mr3591670ejc.687.1663339416784; Fri, 16 Sep 2022 07:43:36 -0700 (PDT) Received: from labdl-itc-sw06.tmt.telital.com (static-82-85-31-68.clienti.tiscali.it. [82.85.31.68]) by smtp.gmail.com with ESMTPSA id b15-20020aa7cd0f000000b004527eb874ebsm6273792edw.40.2022.09.16.07.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 07:43:35 -0700 (PDT) From: Fabio Porcedda To: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, mani@kernel.org, loic.poulain@linaro.org, ryazanov.s.a@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: dnlplm@gmail.com Subject: [PATCH 1/2] net: wwan: mhi_wwan_ctrl: Add DUN2 to have a secondary AT port Date: Fri, 16 Sep 2022 16:43:28 +0200 Message-Id: <20220916144329.243368-2-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220916144329.243368-1-fabio.porcedda@gmail.com> References: <20220916144329.243368-1-fabio.porcedda@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In order to have a secondary AT port add "DUN2". Signed-off-by: Fabio Porcedda Reviewed-by: Loic Poulain --- drivers/net/wwan/mhi_wwan_ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wwan/mhi_wwan_ctrl.c b/drivers/net/wwan/mhi_wwan_ctrl.c index e4d0f696687f..f7ca52353f40 100644 --- a/drivers/net/wwan/mhi_wwan_ctrl.c +++ b/drivers/net/wwan/mhi_wwan_ctrl.c @@ -258,6 +258,7 @@ static void mhi_wwan_ctrl_remove(struct mhi_device *mhi_dev) static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = { { .chan = "DUN", .driver_data = WWAN_PORT_AT }, + { .chan = "DUN2", .driver_data = WWAN_PORT_AT }, { .chan = "MBIM", .driver_data = WWAN_PORT_MBIM }, { .chan = "QMI", .driver_data = WWAN_PORT_QMI }, { .chan = "DIAG", .driver_data = WWAN_PORT_QCDM }, From patchwork Fri Sep 16 14:43:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 12978618 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3393BC6FA91 for ; Fri, 16 Sep 2022 14:43:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbiIPOno (ORCPT ); Fri, 16 Sep 2022 10:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231372AbiIPOnm (ORCPT ); Fri, 16 Sep 2022 10:43:42 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B685F221; Fri, 16 Sep 2022 07:43:41 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id go34so49941185ejc.2; Fri, 16 Sep 2022 07:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ot7dgyB+KtHLDN7Xyqgw/4QKfFL14qXZyomQmyozivc=; b=TBL9jjzQgiXJcDlPnuYA0DP07U23BwTRwfRHAOhLJt/wUIozpDKbBdwxSdYrxtzZNX 1gwg2rs5lAZnRaTMpYlR/fEVejvKMoY9mplZz5Oux0xqY/sgLqMuPOduMedGkqwJakGU Oo0LTT2C2xFS4/rmCaxLU4gplP5/MR0Wj5eIGlJqBYXdzD73OC7aotFdtXdRUlgfJzpW l9mstCpFOFw9owE6zxP0Zbptb/WGBbL1ceXt/pENXR1VW/jnQbLlSfd0HJVydM/zhNT+ om8nkdTPcDxE/J8l171h9JUw2g5M66ZhYC0vkqWbYpH66pKNuxNNPjsylp0mJYOmxPR2 Gm9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ot7dgyB+KtHLDN7Xyqgw/4QKfFL14qXZyomQmyozivc=; b=7RYqLKgGJ7wCvCtAHukE3QMCu8xH6E8TQOiy88m+MjS3smkwvKcydCQA59GHZe6gni 8LPfZK4Z9X3M0ZA4Aa2V8dbqera8QqjcRDCMv4HTFccTsYhRCskplzjkFtdTwcQ2o1ee 3K0qWyxEyuOd8dhFe49CSrWKOMpLGkB1yKKBcRaVa0Eije+h5I6bW8+FFoL/Wt0+ou2L B6+ohL1ot7HAzbOUlNAcSSAyxy6tL3p0E2zbwjo3ro0dsWVH25FpSEMevAro7IrApQ5W WpUFBeObVSi/lSZjtJ1lbAs7qb7EXrUS4xaVBdkOP+xZy0p/0XS0kw1hgmGTbQZj95sT 1d8A== X-Gm-Message-State: ACrzQf2aj6bIFvsF7+D5y0aciZyaVFg91n6Wl9f1H41gZiLxfm5/q/SQ eJS3HOiq3lGKkcUvPckoDiY= X-Google-Smtp-Source: AMsMyM4dkscApZ9i0ayoK9S6XBYFSlZGHUE4c8o92NL9XHVxUl7n8gZKN152nsNzzBO6NPSSKDVplQ== X-Received: by 2002:a17:907:e9e:b0:77f:9688:2714 with SMTP id ho30-20020a1709070e9e00b0077f96882714mr3915614ejc.208.1663339418500; Fri, 16 Sep 2022 07:43:38 -0700 (PDT) Received: from labdl-itc-sw06.tmt.telital.com (static-82-85-31-68.clienti.tiscali.it. [82.85.31.68]) by smtp.gmail.com with ESMTPSA id b15-20020aa7cd0f000000b004527eb874ebsm6273792edw.40.2022.09.16.07.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 07:43:37 -0700 (PDT) From: Fabio Porcedda To: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, mani@kernel.org, loic.poulain@linaro.org, ryazanov.s.a@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: dnlplm@gmail.com Subject: [PATCH 2/2] bus: mhi: host: pci_generic: Add a secondary AT port to Telit FN990 Date: Fri, 16 Sep 2022 16:43:29 +0200 Message-Id: <20220916144329.243368-3-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220916144329.243368-1-fabio.porcedda@gmail.com> References: <20220916144329.243368-1-fabio.porcedda@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a secondary AT port using one of OEM reserved channel. Signed-off-by: Fabio Porcedda Reviewed-by: Loic Poulain Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/host/pci_generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c index 51e2b901bae0..caa4ce28cf9e 100644 --- a/drivers/bus/mhi/host/pci_generic.c +++ b/drivers/bus/mhi/host/pci_generic.c @@ -507,6 +507,8 @@ static const struct mhi_channel_config mhi_telit_fn990_channels[] = { MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0), MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0), MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0), + MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1), + MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1), MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2), MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3), };