From patchwork Mon Dec 12 07:50:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1714830 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=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (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 4NVv1r63lyz23yh for ; Mon, 12 Dec 2022 18:50:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1p4da3-0002xr-PY; Mon, 12 Dec 2022 07:50:31 +0000 Received: from mail-pj1-f42.google.com ([209.85.216.42]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1p4da1-0002xb-Tj for kernel-team@lists.ubuntu.com; Mon, 12 Dec 2022 07:50:30 +0000 Received: by mail-pj1-f42.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so14797045pjj.2 for ; Sun, 11 Dec 2022 23:50:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=om+dd58tNQcAqes2LYRvBiIzzlqs24UzyU1jIov+bSY=; b=saKnnOeQ2psJLUinEND9yIMvFnMIaJwQJYvBwwhoUA4/+7bfxKW3kpY96mq4+bSn27 inOxfZPOSIPDfrpcHtqhHuSQ2U+KJQcrKmb2vF+mcnMZKaaWQjACZeT8xnsmAamRHGBU 8bVYbuVs+f9m/xxa3455lKLUZnMQkApqaj/3ZhwN8jugT6zCjBMJ5b4GQVQGTU8XJxg0 NpwuEHINnlPKcrb0SfDPl5Nw8jpkLZiX/PJuKj3jyhW20sTi3nAlL9EoTdiTLLDrIZlq r8s10RUroD7Qmt9UGBrivm0UC/oJZ57jNISIYC6X4RT7g5Sa7xR6m/jpLR432U9DhO69 GGbg== X-Gm-Message-State: ANoB5pn6tTYT7xJcjDZiKPC7/QL+wgRu5Nd0LPd01zcLiY7dHeiP6Bct HjJ33lpod3Ig7rFgmIo6Ae/TmLWlLpM= X-Google-Smtp-Source: AA0mqf4JPtrSOEAP3iwmLzfAwE32IGfT/i35PjTYUMOEgeggTVM+dhqNOiHM6OznACKeUmX0Uz/26g== X-Received: by 2002:a17:902:ab92:b0:189:6076:ab95 with SMTP id f18-20020a170902ab9200b001896076ab95mr14330512plr.18.1670831427825; Sun, 11 Dec 2022 23:50:27 -0800 (PST) Received: from yewun.. (61-227-116-5.dynamic-ip.hinet.net. [61.227.116.5]) by smtp.gmail.com with ESMTPSA id g10-20020a170902934a00b00189758e2b99sm5613615plp.92.2022.12.11.23.50.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Dec 2022 23:50:27 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][SRU][OEM-6.1] Enable CCCI driver Modem Logging (MDL) Port Date: Mon, 12 Dec 2022 15:50:22 +0800 Message-Id: <20221212075024.3165087-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.42; envelope-from=vicamo@gmail.com; helo=mail-pj1-f42.google.com 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" From: "You-Sheng Yang (vicamo)" BugLink: https://bugs.launchpad.net/bugs/1997686 [Impact] Missed Modem Logging support. [Fix] Two upstream commits currently in linux-next for maybe v6.2. [Test Case] With corresponding libmbim fix in https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/merge_requests/161, $ mbimcli -d query-trace-config [Where problems could occur] This adds an logging channel that is only compiled when WWAN_DEBUGFS is on, and takes a specific command to enable logging. Should be no harm in general, and might have side-effects when turned on. [Other Info] This is not yet available in mainline kernel but in linux-next, so OEM-6.0 and above are all nominated for fix. Unstable/Lunar/OEM-6.0 have been nominated in a previous thread. M Chetan Kumar (2): net: wwan: t7xx: use union to group port type specific data net: wwan: t7xx: Add port for modem logging drivers/net/wwan/Kconfig | 1 + drivers/net/wwan/t7xx/Makefile | 3 + drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 2 + drivers/net/wwan/t7xx/t7xx_pci.h | 3 + drivers/net/wwan/t7xx/t7xx_port.h | 9 +- drivers/net/wwan/t7xx/t7xx_port_proxy.c | 12 +++ drivers/net/wwan/t7xx/t7xx_port_proxy.h | 4 + drivers/net/wwan/t7xx/t7xx_port_trace.c | 116 ++++++++++++++++++++++++ drivers/net/wwan/t7xx/t7xx_port_wwan.c | 16 ++-- 9 files changed, 157 insertions(+), 9 deletions(-) create mode 100644 drivers/net/wwan/t7xx/t7xx_port_trace.c