From patchwork Mon Oct 21 12:19:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjian Song X-Patchwork-Id: 13844061 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E745DD15D88 for ; Mon, 21 Oct 2024 12:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IjfStAl4X5APuJGdHfqLtnXkKQl7kdSwd8Ar5E4YipQ=; b=kWksWWpQ4JWGHHaxE6aGanBxVn bpkFaznOAtPBbA3nioBzlqO23CFlH3jxxTfm3bnAShOcb+HnH3il/vAXyXyO4JABV6U3ebdoSJSHP FWq579ILcu6qC3cJJ1Vxvt3sqalrVEBOXUB56xx+cpce6v4gzRmyE7G2E9WZsed1HfIF5qFW+NOKq 96Bk5RlGRQHVMCdkeiR2g8C5RTCT7/j5is2Rj0UNQEWYST4rA4b3OXLLpsDhPD9DNeqM1P1jEHkb3 KHYFss2kFZ3wWirEFkRKmkwVplfOcifdjMpuP58CaS8cBNxMj0DAZABqY5XMSwSbujjeW3TEQB1/d 8G1RuXJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2rah-00000007GDx-1Yy0; Mon, 21 Oct 2024 12:32:55 +0000 Received: from mail-psaapc01on2072b.outbound.protection.outlook.com ([2a01:111:f403:200e::72b] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2rOD-00000007Cye-3zQQ; Mon, 21 Oct 2024 12:20:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kyS9GH39wOhBky8vN3oraeu5g7ha7+zJqMnpwYlRNjElc8Wggs9kBGZak4TkggWdRWRtbfRpIW+zgzCbf5A+NxnQsFEFgsggA3ZAt7Hd/sKJ6B0h/HGZwiSG8WBiWypBujVlUjLvPAKMXR9mKmw560Uv+ca4s+tikIGQv5N5oxUEjIPBU0FNntV/rDmVUv3FWiIAZCxvmdmXB4NSQSV4NzoVCMdGoofjgI0QsvDjmaFjd6PhRpFyztz/XoOqvJrSgeP2pNG6h7KK4hdhEM7LFoYY9AS/W6Yc4cxtJglLjCXzX4rN43ocKUj0W9LueAnv6gL1rF8k48VS7jQ1DpV6Dw== 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=IjfStAl4X5APuJGdHfqLtnXkKQl7kdSwd8Ar5E4YipQ=; b=Id5BEsLo5q6/FL7cXMqMTgi88ocRUjJMHznsOdji5v/PVd8uPwCQugLyJ2TzM0BDx5udJtdy+L1jW9lXtsflPaDpd24IrhsTc70uGVpJ9c8jCTqJJQpP61JQugsQFYkczoDn/OI/tnM7xdCs4xo9pw0t69XzxGI0oh7XT69yooqZvaN4DJE+X22wytCGbjfErI84uGkhVN7SThhG1zYXKHkJKmMnnByG3ARybpWLKc/W6QZ7OW2hoJdzUrQ7sZANRmMPghD7YmF0p1+Mm9X0MJPifvCW+1nchoUjS41F6m9UiOVx/hcNxWgFbT6UaRaF9zUQlNiHjQ2TfbikjryR3Q== 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=IjfStAl4X5APuJGdHfqLtnXkKQl7kdSwd8Ar5E4YipQ=; b=UA4XZgFk9v4yd9w7lOMtSnpUo8PS2TdzJQrYlVaW5iwErbpwIxvKrMf4TFz8UFP99Z5xlOnI+P7gL8j1VYbb0hbXHDYAFYfL+JOW4XniagpuyPX5czCynnaGLcAlXiyy2GDVDeYVdL2D7XYNy0e9NlJ9WwDK9MJu/dA+ySCPOsA= 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 JH0PR02MB7479.apcprd02.prod.outlook.com (2603:1096:990:62::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.23; Mon, 21 Oct 2024 12:19:51 +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.8069.027; Mon, 21 Oct 2024 12:19:51 +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, Jinjian Song Subject: [net-next,RESEND v6 0/2] net: wwan: t7xx: Add t7xx debug port Date: Mon, 21 Oct 2024 20:19:32 +0800 Message-Id: <20241021121934.16317-1-jinjian.song@fibocom.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: TYCP286CA0139.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31b::7) To TY0PR02MB5766.apcprd02.prod.outlook.com (2603:1096:400:1b5::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY0PR02MB5766:EE_|JH0PR02MB7479:EE_ X-MS-Office365-Filtering-Correlation-Id: e287564b-63f8-40d0-0a33-08dcf1caa950 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014|921020; X-Microsoft-Antispam-Message-Info: oO0ctwE2aWz5VWEdvqbUWnCcnzN7uQSNoq92fPjAKFTT0UkGPoOg4EJLtdNlfksWAblMmfzY1OD/yc7GcUcMa/HfyYtzo6qatifELW3zwqZw/GMtxcU8TLWsBBGpmTZFYm91jmp0iLcAuLceDPaLqbUQRwaXgrrNFWWegzTN9kGmixLqHTABCQ2C8L6CmF7PEzCodS6gLiMkm+uC0RxyhiBaZvKIU7Ct8t+GzTRE3bO+2i8l9BjbziJxVRfuDizTaqlkYWw95jYCwjHymIrOxVcriFf6QTHUBovg+zwWdqklBnnuL1z/sV8Q8w15pzeniT9OTDiJsSVWgIK7sJUjgBSc2n39fkQh662HykywRIlboUTzWi8sU0rrPTps9JdVZrL6buds2gRAG9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SFV:NSPM;H:TY0PR02MB5766.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 15H/q9Fwhs7/JqYoPdRyA92C8WPEidVzhUtUwlpi6Q/9TRfhveXIgORmuCWtg51O7JQgvrHA+QgnTpRLbFOmL4KfIdNfkhUkuCXERwEq42lGZow8rNRR1HrqEgEtuK41zBvACU8XSuezikgjxSAOJjjKkEnE4QgijrwroR3gns36/JfWULZyk1kgc63HXIBuJm/JWfyzR17MS7DWjzzEJJuYqwCMJy70LnTvsjBM9LMLhUcwvrEZ9pJZkv+0zA85pwFfs+2+mUGLWwIDivRhT6RUmlqWfAj+WGmxuXkZldf9urkU5h4odpgyzuICmIt/m4CQeKDaG1+2vBoWRC+EM5grwWwwa+hlUIYpIpXR4zCmlR+/E9RWa1JRN73nRMOlGSHAkjh68ZmGJL+NbKWSk/wKB+52jjDugkmz4KxSfx6+xEAWNj5LK8acY29uCngytPBUQsfKE33b8P7YJQ/JUsyGWIBrAvExU/ZK5TlMFdhU8c7g6ZVzR/IvfByUYcGOP44AjKxmMMi+Sfw4sH3jmdHPh2GMsTAU/xpBmDb6izBNkIMsi0P565SdBwlEIPrZ9X54Zojj2TGj9LATm+C0jU/1aTz644vtRaym579d34nrCx2x8Utpuxc7Wlf7hbzK5/jZmbN2Bk4V90bfwPt3CqBLrN607PGyifqFFVyvD3i39QRLmiqV6lYud9JQdGXB6K1+LohbkPBdbQo4mNknQX5TAKC89/GAplXcYvGXxRAqF8BYA5m83EWbcHwBNnBJTQCa/jcVc1BjFu5zoGOQp7FfXvkbwqxKh8Hzl8x0XSMak/5xcWrb6/Hqiox2huwcbUrqlyqn4j34711XNLk/Oq6D9EfkJOOu0mLymmcIFnorjAoHxwfPmmcMUAtOELPcVXoSz2x05TxUwAxXYNSPy71NxYgydj4JZbfvf1cNVCJh2jiwewZC/BbpI1M9URW84jHc8cejGfPVwTk/iCPepd2pRg19bNXxuHqDMaNAdkDMo3DTbpUVCxPtuuau+uiO/hQqthVDdvYNGmVrZgNLEwRHvMop6MzNtz9GehBP4tCqoNTWHsONgpdEPwl4SWSHMey60M77dHlEIP0aEFAnFAhwTzOx6M7T6GvVTgdaqGt3ZGWAmpbYF+quGqPaWEM6Clf3pJ73YwmSoPrvkd+XfwvbobUZm1L5xVsEmj9uXet0cCJJ407VK7J1i7xDkoQYEbUdI9C0KWdwCGi43qzrcmfBqM99vy/IhbCZZCNzLuZ72VdtUSpj8yThMftx7r4nSVBlb7Ce30RG10bjYVg2nv85URugumw5s36P2PlDlJRbTsTUHLZNXXka3SVbELRXbxWro36z5EQLfb0bMOYD2iNzoi/xqFInlAFRi9DtFl4vYyglbC1wT8LCllLwcUoXsqP/PfnvT7MsAxpyEAYUy3qf1LqGVNtTj7/+pnNxYwxv7sMFuArm/RNxhMqBkEfcIMBLnP4/gMM8qLsktS9rzZW6glCVhiwXUlt+/tQbdn/p4IBhJzoZzzUNvFQaS7zWmiK9SCJHnHU0mJGs1KWXzSkwvOwpr/lQHkC14u4Nkwbgn/z86LekL+/i91NMJX/U4zUP7dnM6/cRULzx1f9xgQ== X-OriginatorOrg: fibocom.com X-MS-Exchange-CrossTenant-Network-Message-Id: e287564b-63f8-40d0-0a33-08dcf1caa950 X-MS-Exchange-CrossTenant-AuthSource: TY0PR02MB5766.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 12:19:50.9817 (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: 49NhrGEHhpCErc8hXVW7m6AK5+J81WKzH2VpiqQIyEgb/T961Dt92OIxVIXXOJaHUxZd7OxjK+6XwHmKoCEFvVJ2V3qpDzZ4uojp/ShfG24= X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR02MB7479 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241021_052002_025970_E6ACCAE0 X-CRM114-Status: UNSURE ( 7.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Debg Bridge) port to implement functions (shell, pull, push ...) by ADB protocol commands. Application can use MIPC (Modem Information Process Center) port to debug antenna tunner 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 | 47 +++++++++++++ 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, 179 insertions(+), 10 deletions(-)