From patchwork Sat Oct 26 09:09:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjian Song X-Patchwork-Id: 13852149 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01on2129.outbound.protection.outlook.com [40.107.215.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 702B91C2309; Sat, 26 Oct 2024 09:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.129 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729933793; cv=fail; b=Xt23fduCWyuH71lbkfbJHnCtPbhqIQpgWD0az/yh7F/dGMBRjIhGYVxpg46xjy5NW1dLUqJmq2uqaphHP9c1tlcGlGlqSZ3bb0u0gNU1wMHGlq4NfNXsCH10JvleBE2Ae2iL9ZAso/RWqkcGYbMNkTzA6+QkuVPNl5mdpUjnDHc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729933793; c=relaxed/simple; bh=WcwIZGiM3sZTIBd5QeH+u5XtDhrnFximja7csjqJaMg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=dgWGAXvhn1p9OewK47T7ragHqhDYuI+zZfLwMZ93Jka6wbn3xsykFODEvDKZPMHF0iklMw3vC9Km2xpmCbGvuZ1A81hI0sbImqpw+4j81VJo8UY1FRcPzOvnM8upUraelB2pg+M6G28h9KlX3XuD+/gGxsyBt33ZswWCIHCzLiY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fibocom.com; spf=pass smtp.mailfrom=fibocom.com; dkim=pass (1024-bit key) header.d=fibocomcorp.onmicrosoft.com header.i=@fibocomcorp.onmicrosoft.com header.b=uoY8lkYQ; arc=fail smtp.client-ip=40.107.215.129 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fibocom.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fibocom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fibocomcorp.onmicrosoft.com header.i=@fibocomcorp.onmicrosoft.com header.b="uoY8lkYQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jF7kd59iZKLFlkPVt1VWmk2x1pxKlsQ6is2GizSQLRTlvF6yfQYz/aGllfHtpcySz9H8YtS9C+is0PeQoeLGLy+q7c+yaLdaaRDIWA9ElCSsNS6t+neGYiYo0EXMn/Xo4wErFFJC43tpV867yBjXTXDZXtnO7tDxZiLN+n2TgdA/TOQJ2Yn/MeZ0qUkvGJZp6rUTuH7r5XLLfJ6UOgMxy9BovaEbdg0tMBDueh9vJay76vAA+Kd/YV1KptWUBjh+1RAZyjRH/xkV24yxXmiGLxBf+8bCG6F3R2F9Dfrw1i+cgYgceSp5SLGi530pqeyxs7e+RyWIz3Cn+lQM0LLUjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lC3Prtefwqu3GALnMyzAl6bT9nFE4z17kD9iHSr/b7U=; b=BmGI8oJFCuz2Sj9DGr70njwd5Yyji6AsLoSuey40WisBYD1QqDy5W19bv6eySgW/SZj30xDB52Z0v0hE2ORSQM3fxP0ieDNM4cDHOEC1Z6O2QCcMRqRUv0KTIsQqTOPsC2POPrzvuIx5o1exda9BD8wNQcmEa8S8DrUxKrTpDO9EDrx9Ee0GYEuz8UCbuWnIE0U+9uZ6Skiy4GBRgguddB+raqqpF+tmp0zu6PBLlLVnqCjQtnYaN/eCb3bwqzvktRLqooNWgGAC/4fbEzoQIZ9fLE2A8VEzh3n80HFCVUaEKbeR6WkUKZaZFnCu7qnAn3R8kN1GLMgcYmy1MDOo1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fibocom.com; dmarc=pass action=none header.from=fibocom.com; dkim=pass header.d=fibocom.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fibocomcorp.onmicrosoft.com; s=selector1-fibocomcorp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lC3Prtefwqu3GALnMyzAl6bT9nFE4z17kD9iHSr/b7U=; b=uoY8lkYQVK6rCkznLj4pZPX5X9BnFnUMQISMJuWNOlO+lggbqpWieXDaLx9mbVXW5stIxTUvYkBCOunr8mnc6Arj+nNgNdnvpTDrCMHS+mGASnEXdn2+Si76jDufXeGS2AegQJHPivBu/Pswp0vaZ81dNrz3Aep8AXHMMg7woPw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fibocom.com; Received: from TY0PR02MB5766.apcprd02.prod.outlook.com (2603:1096:400:1b5::6) by SEZPR02MB5864.apcprd02.prod.outlook.com (2603:1096:101:73::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Sat, 26 Oct 2024 09:09:42 +0000 Received: from TY0PR02MB5766.apcprd02.prod.outlook.com ([fe80::f53d:47b:3b04:9a8b]) by TY0PR02MB5766.apcprd02.prod.outlook.com ([fe80::f53d:47b:3b04:9a8b%4]) with mapi id 15.20.8093.018; Sat, 26 Oct 2024 09:09:42 +0000 From: Jinjian Song To: chandrashekar.devegowda@intel.com, chiranjeevi.rapolu@linux.intel.com, haijun.liu@mediatek.com, m.chetan.kumar@linux.intel.com, ricardo.martinez@linux.intel.com, loic.poulain@linaro.org, ryazanov.s.a@gmail.com, johannes@sipsolutions.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, angelogioacchino.delregno@collabora.com, linux-arm-kernel@lists.infradead.org, matthias.bgg@gmail.com, corbet@lwn.net, linux-mediatek@lists.infradead.org, helgaas@kernel.org, danielwinkler@google.com, korneld@google.com, andrew+netdev@lunn.ch, horms@kernel.org, Jinjian Song Subject: [net-next v7 0/2] net: wwan: t7xx: Add t7xx debug port Date: Sat, 26 Oct 2024 17:09:19 +0800 Message-Id: <20241026090921.8008-1-jinjian.song@fibocom.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR04CA0186.apcprd04.prod.outlook.com (2603:1096:4:14::24) To TY0PR02MB5766.apcprd02.prod.outlook.com (2603:1096:400:1b5::6) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY0PR02MB5766:EE_|SEZPR02MB5864:EE_ X-MS-Office365-Filtering-Correlation-Id: bcbf2b85-6f80-4753-9975-08dcf59ded2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|38350700014|921020; X-Microsoft-Antispam-Message-Info: EfusXeaHVghQQw6S2YIx1cZwnS94B4txKqThuGmZpv9f+1PmpdKQG04d+s+zVO3KM5xE4eH6LPxcMCMPpodNTvxdf5k1ZC6Fz17kX2LhR1qGF6phhdQ9kLTGz6kP/urRzkVhpCcuRiupglZwfQ3ncF2NfQ1P4P9V/eNrqdhynkC2+ckZOHZPaCqFQiohAhQYZs7kW+/r1lzlz/O3a73ofsexZEEvgkU59lV/q6WZukFGXJmcN2eKnttKdFHZOi/DGhxUf8DDypIZP2sYpwgd2G65Jdc3yOmrLxGHV3pbfUjquUxtQUJ1A6vBWgwAf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j35eAQgu5KEz/l8bSKoiTRT X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY0PR02MB5766.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BbUDO8WDyzWQ7dlc5O3EgMo3xH4GoqtoeyyU1u603SBbY1VCoQMD8UNgrf4j1bwOJR7uoDaQJ1DivCs8iHstUfcEPCIZttYhQR1HqWi/MBDw09G+qDCJmDiqptkzuMElwm9HHk2zdJk3jO6ICzrxfpNZAEBplAjGrkT4jhK02QUkWPDvykq1umie8kiAwtwyEG3RxTdli7zMSbqv4qH/Ng4Tls2Z/cz6wdNLZwNGHRcjcpiF10ob6kMEDVej+RVFPjCsWDukLVdDHOIWVzz5oW4U2p7ZkGnxpPsPokf/ere19wGJnWC7vS4JAsoIuiZHcZgvDzAlmFKb2Go9w0SzeaOcpaG7QgzTDlHb81K4LIVY3pDvxMRM8cXRvaP4W4PCEsJGns4zFbWkVDdPbh2wAKmHqu0K8CUqzaDDUfat31Wg6LM5PkIK8WaVzQu0UYmiS1aEvMUmoDJideS0FcpNBLKoaz6Ay7b+LBInMPdmDrUwMkeRmXjMEn9URGwCu6srsJz394FVbZ3poFZRORyKX/GlnFyQlcmOH7iYa+4njqdVxu1P4N/UAH/G0iS1r9H4Eu0xr72wWoOI06PuQgx9JLqwH+89P5Xo1OgfG9qXhegtzwylqJBTaBXQLHDj6eADpqcZ+CtWBJWkEFKDjll0XhgkvuiULW0zGlMZf2F1OGo3ddsib7KdA1afJSIT+k6tXNKohOjSXQ977p7Jl+jkRQ+CuGg17eneifrJjkq7aomxZmMRYYHgds9OKBZ9At+QETvGbGpR5r3qzL98GO2pv3e4pVGTEfeaFEJ9ICG9xf4sIVHGU/qWtwO5mr6E8R8qPwVA3uPIjkTc3ojJQIIsZu6xN0pYxU4PhtNhGDWZjRUiPCDGfm+SXhN9yheftgn1vEecQ98z7N3oolya8nbWeCv4vL6QTG6EmyzAKpZ8/GORetYT6V7wGJRqv+xgTiapDMETnv2iHpuKG2N3xHCr6Fx8nkqScd25vAKfeS/K/4E072b+zdKRHBOZKcIXfVsBj6T8yVbsV2c0rxmSjU6jXMx/XrzrEpwzAcYdNyvBL1FJ9ij/Ti0GQyN/JX1qqjL4wj6vGe5x0FILGcwDRnFBZ0yq6em3PkSVigpr7+WsAace4issmxwPwxIExWIqtIaWP/dKdCKNdaOyQPpoE3XRaK8ec9B+O0g7o+P8oT2xAfwG4pNtQXGu5J7GlC+Ywxvwi5ijtVb8ixuXdxoAvomkwyjh7TGJNzet2V+pf10Psqgs5wvvZPNOxdx96wN4EKRJ8sBxI+93h9kgaypdKOuMhltigHXitc7td+/it1JUPjldHyfAbb4+KjRWa5CMQjkghTJtKOWsqGWYxlIKwoOS/nTXx9VMf8PGT5xEATU7Y2u+8YCqcmOBmAnTK+A+yKTeVToXhUxJlHZ6peItNaq6saSkFji1yPYGjYUxkHHrBmYqkPCMQbtpW0nyHPZtAWLq4PWwH5lnhwpCSeMWBuRJcCgryWvJyUyKgJ2ytzJ5DzCggzzokDt9Fc+fz/kfDawlQZnXhd/bYtLRziTh1Loh34JGdHrz5tikbKqDqB/cvaptcg1EoQdrpQChBUhw/vHMREo8Wvzc/vCNlk61Op/B5A== X-OriginatorOrg: fibocom.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcbf2b85-6f80-4753-9975-08dcf59ded2d X-MS-Exchange-CrossTenant-AuthSource: TY0PR02MB5766.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2024 09:09:42.1947 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 889bfe61-8c21-436b-bc07-3908050c8236 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7EP5ZlgWDoFWX2vWMmWVjjblGLTFn5qy6ZOyWgyOj1IcBEo+giJdmlhTzrotOysYJCgfaxB9otYjmGM+Sf10FPURW3b3gmhcF5Du7XXc9Wk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR02MB5864 X-Patchwork-Delegate: kuba@kernel.org Add support for t7xx WWAN device to debug by ADB (Android Debug Bridge) port and MTK MIPCi (Modem Information Process Center) port. Application can use ADB (Android Debug Bridge) port to implement functions (shell, pull, push ...) by ADB protocol commands. Application can use MIPC (Modem Information Process Center) port to debug antenna tuner or noise profiling through this MTK modem diagnostic interface. Jinjian Song (2): wwan: core: Add WWAN ADB and MIPC port type net: wwan: t7xx: Add debug port .../networking/device_drivers/wwan/t7xx.rst | 64 +++++++++++++++--- drivers/net/wwan/t7xx/t7xx_pci.c | 67 +++++++++++++++++-- drivers/net/wwan/t7xx/t7xx_pci.h | 7 ++ drivers/net/wwan/t7xx/t7xx_port.h | 3 + drivers/net/wwan/t7xx/t7xx_port_proxy.c | 44 +++++++++++- drivers/net/wwan/t7xx/t7xx_port_proxy.h | 1 + drivers/net/wwan/t7xx/t7xx_port_wwan.c | 8 ++- drivers/net/wwan/wwan_core.c | 8 +++ include/linux/wwan.h | 4 ++ 9 files changed, 188 insertions(+), 18 deletions(-)