From patchwork Wed Jan 24 17:00:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjian Song X-Patchwork-Id: 13529430 X-Patchwork-Delegate: kuba@kernel.org Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2161.outbound.protection.outlook.com [40.92.62.161]) (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 5C95D7E774 for ; Wed, 24 Jan 2024 17:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.62.161 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115648; cv=fail; b=VzD9QzHC9sxwqU0GmrC+JX79YYZY1kIlATiecJNgJKb/U8udzLahSCF8qk8hL9022WZOd+IAIAyQgfqAKj4XTobO2W73VMCDK90bRQTzkwIX9nYWHjDdsNI5o93gn+2eb7tbhR0sYwJebH5hbWdaqxF2WKBPjTcPnn3Twm6n7+8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115648; c=relaxed/simple; bh=HCFE15hhhCzY7AxfUl4epowycEHVa4ZbaA5H6ZzyGXY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=AgzcXR9xa96rADQ3SvyGAw2R/KtlhS0L6+NcK1qDJkWK+awc4GYvlK3lhN6HR1jyhxrNOjdzfCv5VVwpisgioY3jmHdmMqO06vhxIXLT8OqoWpCEgjen+EcTmGk8HG/BiepBT4q4L/y3760rATHf0gcDweCackOQN0A7YO5pLxw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com; spf=pass smtp.mailfrom=hotmail.com; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b=rJaAlgSt; arc=fail smtp.client-ip=40.92.62.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hotmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b="rJaAlgSt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DyDVpQNKWSYGrKA52zip7lhhfHZoprFr+4U5ODxCjW4wsC+v5MNH1fziH8dGKSVLB8GCgurKObIZJ1fKZ+1VrJ1fJLchbnMZi5W/TeiLiMTLbfcjxn72aOPF3uYnFvFg+2hfETjUY0+0ykIMxz0ihjOrO4Tvoxd2BurIOGya78+gN0Tkh99mtcXjpqmavrK3ozgIu2p13VSh6gUygK/NU1eoMNG7MVRluGk9RUb0vF1DonGu98q8tXCDozLKA8kmZhBIXdKlBq/wi5yc6bqR8mPgHLqyKnLykzlbWeV+b7Vd17vc2siaF0jWBcPrEg1F0tR3KglRt9d16de0P10d4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=u1bNUaprUgF+W03xjmZkX0ARuAs7sGxl2P1Y2Q8mYRI=; b=LLmDHNeIFe3T9r9vG+uL9sN/m8jZPRGbSXON+EbKvPOPWnxVk94OYX8at/NKNj0pCh0+4kCbPB0rk29mlR9ND3YhLCxp0e80sSD7n7z3eLm0pCu/vz+vjT03lHn3M5GM1u3HNuzja4OcVXcHgCcwtsq+Am7k3aLNTdGaxmRXrteXl/0RkjpeOZEa8WyTEWXITWU53JXNrfI6+QYvKUQR56GcRqg+xVAUSlTibcuiNZ0rT9QSnYv0MJIuoWc6xG2tKbcqXBWxoUc2BVlEvGq7/ImwVdZGlBIhmn4GXNWCJW1QjwauvBmTOqDBWk1TLDBJUaUDwI0Ze7qtZWT9ZZ0x8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u1bNUaprUgF+W03xjmZkX0ARuAs7sGxl2P1Y2Q8mYRI=; b=rJaAlgStszpDOr/sGX9jmYhKTFPjEtSXMOnP7nam5iyPBkqeDift5zBICNXWz3j990kp7hH9XUsN0x4t9r7r8RL3xUcg0DMB2sVkjAFJ/lQu5cux8nIATuS8LWPe69SH56K0QbQFUSutM0iSJ7ZtrA2awgGfeTzBXkuxyr6PR/7WEpJyT5htWU0d/UVYG+YmUfSmFvGADeZ1A8fBVHdkJ7OfX/APLf9pQTPX2KDU0Beab7etmtlgX0138OxHCn1gtCEfh9fP7Hf33vZsBxXq8RVLlvtHjHal5NSx58Jk62oP2AYcLjm3KdENhD54p0Iv1suGEx4LiNJn6NjZbL0fgQ== Received: from MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:14c::12) by SY5P282MB4936.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:26f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.24; Wed, 24 Jan 2024 17:00:40 +0000 Received: from MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM ([fe80::4b5:c5db:e39a:e48f]) by MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM ([fe80::4b5:c5db:e39a:e48f%3]) with mapi id 15.20.7202.031; Wed, 24 Jan 2024 17:00:40 +0000 From: Jinjian Song To: netdev@vger.kernel.org Cc: 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, linux-kernel@vger.kernel.com, vsankar@lenovo.com, danielwinkler@google.com, nmarupaka@google.com, joey.zhao@fibocom.com, liuqf@fibocom.com, felix.yan@fibocom.com, Jinjian Song Subject: [net-next v6 1/4] wwan: core: Add WWAN fastboot port type Date: Thu, 25 Jan 2024 01:00:07 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240124170010.19445-1-songjinjian@hotmail.com> References: <20240124170010.19445-1-songjinjian@hotmail.com> X-TMN: [QbKri85XlZziw+A6oQzSP/9CseaJQfRy] X-ClientProxiedBy: SI2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:195::16) To MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:14c::12) X-Microsoft-Original-Message-ID: <20240124170010.19445-2-songjinjian@hotmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MEYP282MB2697:EE_|SY5P282MB4936:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cd6cff8-324c-4425-2e0a-08dc1cfdfe48 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 52EYR7rWf4E0I987kWnFohcE9dyA3VdfkkRj6x8B/Xqezf4TAMgbLg0n0v4zoE6oSZtjzGtXYgaxB0KI2oCAtJg1JiMX0YPX39+p0QQ0yrU1owTQR6VYuLW0b2S9+5wDSbKo2SKwP9AgqLGmvDOtF4aIN9+IivL8EdXXGjjowthbKsEUllbz32rZNgcvgfnR9L8AQZmd57WXZ9wLoapvExO1YtKSH/FJ8YDzoY5H1L6oK09iMG7Rn81lIuUQQ3N8pf6sCEE032wjopv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91dWpw4u4FFhWprDchy9EfsnRqg8W3TQaKuEdKq+3SS/hVWjLbz0c8IQLvtJex4IcaDhU4FM7/cYLxHCl0MX4PaTDg+BjLfNpRekKsPj4Grmm4Znwbf5HMAQDrm0HceZECjQ09T01iiFNJrKSvlebNTZUJzfRwIu3uexnK97pH+ULiK/dTEbnTFvJ7sKstxYg8u4NwpXLMmMU54HaSpEvfL6+RZHstut4Rl/n3epMvq3yPmmopvypjNZCRZbOb/Qq9GiNM1gjgiGNAJ7V1FBlM6YUF8+sameemBYXe0jFhMbKzLGIH8XeLP6b8uO67h84ca5Z2kvLB7I6uP6Ut4dguMoHp1wqGOgU3sgR3gEsLu50YQUxhc92hRqgf5bKBGvVFTVTvTbQQ9mqCVsRGTYVcWkiA767h/0p2D5GUWYnZRjPkoiZXQmmucdWoUEYvrDSfp3vPXnfyydvXLqTYJ33Gv/KdhXe0KRvN8eZY/q79aWAExu00HhlXYCjWKq7Qxnvjngqu7yfyGUi0QdfwvYd2D7at/yMYY5n+Y3k= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-746f3.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 1cd6cff8-324c-4425-2e0a-08dc1cfdfe48 X-MS-Exchange-CrossTenant-AuthSource: MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2024 17:00:40.2597 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY5P282MB4936 X-Patchwork-Delegate: kuba@kernel.org From: Jinjian Song Add a new WWAN port that connects to the device fastboot protocol interface. Signed-off-by: Jinjian Song Reviewed-by: Loic Poulain --- v2-v6: * no change --- drivers/net/wwan/wwan_core.c | 4 ++++ include/linux/wwan.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c index 72e01e550a16..2ed20b20e7fc 100644 --- a/drivers/net/wwan/wwan_core.c +++ b/drivers/net/wwan/wwan_core.c @@ -328,6 +328,10 @@ static const struct { .name = "XMMRPC", .devsuf = "xmmrpc", }, + [WWAN_PORT_FASTBOOT] = { + .name = "FASTBOOT", + .devsuf = "fastboot", + }, }; static ssize_t type_show(struct device *dev, struct device_attribute *attr, diff --git a/include/linux/wwan.h b/include/linux/wwan.h index 01fa15506286..170fdee6339c 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -16,6 +16,7 @@ * @WWAN_PORT_QCDM: Qcom Modem diagnostic interface * @WWAN_PORT_FIREHOSE: XML based command protocol * @WWAN_PORT_XMMRPC: Control protocol for Intel XMM modems + * @WWAN_PORT_FASTBOOT: Fastboot protocol control * * @WWAN_PORT_MAX: Highest supported port types * @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type @@ -28,6 +29,7 @@ enum wwan_port_type { WWAN_PORT_QCDM, WWAN_PORT_FIREHOSE, WWAN_PORT_XMMRPC, + WWAN_PORT_FASTBOOT, /* Add new port types above this line */