From patchwork Thu Nov 14 08:45:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmVycnkgTWVuZyjokpnmnbAp?= X-Patchwork-Id: 13874737 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2126.outbound.protection.outlook.com [40.107.255.126]) (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 58CAA1C303E; Thu, 14 Nov 2024 08:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.126 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731573921; cv=fail; b=rpSALaDMCZxhluMpqx17Phawe3booH9besO9rfF5Yn2fGBvUy5qocmRBoZwpGo+AhScwdO7r0sF2/CHRq7UIvWxCKzza9Kg1dv58awOkwBvQbeGr4DVYRXbS7ShKzbZ9Jp6lMI7aHuF/fTMTwuJwBs9okTnlp0+QoHy6WjPvkPI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731573921; c=relaxed/simple; bh=Jo9qu8b6mmq0XL73ONqtIgLSpe3rh8MYAZEGN5spXXg=; h=Content-Type:From:To:CC:Subject:Date:Message-ID:MIME-Version; b=ML42vOFIIdvZcwLCASaSkYZYwu47mkcOymNzrTmjWtU0F889lwFLJr++FcwfAEpteFnXhNI0d5MS54m/L2diKWxmYCtrnDaOAKK9eAQdfsOJMlTMX0CyzIDxLxjCQWlNy0yf9hiTKnaDt8F/+8ERzyijCCYqOjF+5JHgseH4uh8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quectel.com; spf=pass smtp.mailfrom=quectel.com; dkim=pass (1024-bit key) header.d=quectel.com header.i=@quectel.com header.b=oHwK1zp9; arc=fail smtp.client-ip=40.107.255.126 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quectel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quectel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=quectel.com header.i=@quectel.com header.b="oHwK1zp9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cAZ8hu9BhNOClPZIGkl1lIEuwJpEGWOBUmgbovshngpnHe/96hU5tQjM51dUdz6OyyYWYGCYeHHY76p5WD309vRZwBsrUu4Y3EJN1NH20wkZnyEQ0U7//75s6kOmrKcsv2y768DBDs6aXe3m8Wc1oI3HwdI8CQqgwsRM3vHD/08nWCpX1l1uS/tETWO93QGcP1WTf+b+XeWe7E5aGoPVkn1jezW9jNG2Jt8c3UnaVf37HP+yIyCZbbkRcI/nQtzy8rlHHHlMVOO/msrkTvqr1u+Z3WXSIwjKpQ7EjbV47xzrLh+ehj4p+n9R6LfTYFPaCKjeyaGGjO9iFsGzE6zM7Q== 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=Jo9qu8b6mmq0XL73ONqtIgLSpe3rh8MYAZEGN5spXXg=; b=atkBPnK1r3GxnOebtThecXwW4O5fZYt0oPtfdGEmtVpP4fYp4IpNsigCV1d1kQPC3bkYqG5bZxMmbKtIi/dx7g20+G3LFk7ceAW7Eaxfh7HBj35b3lr+GQnxCaamQJ+maQBii78yhhY3n5fyWZpx7Y2wbA3XEZ5VVWZssNrPbwf34r6UJd3YrENUxIO49u6osjQn6rupbKWCMk491uYPp4gWnWY9NDGddtvBR0DR7K2K+jb9G+mR+l28NNiSxQWofGHkoqHBA4o87DPXBV/5MYsUlPa0xnCP9qnQv22yjEarbwF1usqI10BnDZKpazDJCc2LEtd4MTFKQdAa21nFAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=quectel.com; dmarc=pass action=none header.from=quectel.com; dkim=pass header.d=quectel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quectel.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jo9qu8b6mmq0XL73ONqtIgLSpe3rh8MYAZEGN5spXXg=; b=oHwK1zp9pme1qnuR5GBU+yUaKiSyE9TuhK/XgyG2w6YQdnrrZ2UpXvNy9qsacvIDRc+RntWAXdMWbZgy/m3tYS3BAQd/S+HXHaQh6jo3uy4MKhX7kowXZg+ATaBsYy8+ErFknTgCZVSPGjcqxWBta4sDVIyzpS/K53kI0t7HYYE= Received: from KL1PR06MB6133.apcprd06.prod.outlook.com (2603:1096:820:d2::11) by TY0PR06MB4983.apcprd06.prod.outlook.com (2603:1096:400:1ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.12; Thu, 14 Nov 2024 08:45:08 +0000 Received: from KL1PR06MB6133.apcprd06.prod.outlook.com ([fe80::38c1:829f:64d6:8e52]) by KL1PR06MB6133.apcprd06.prod.outlook.com ([fe80::38c1:829f:64d6:8e52%6]) with mapi id 15.20.8137.014; Thu, 14 Nov 2024 08:45:08 +0000 From: =?eucgb2312_cn?b?SmVycnkgTWVuZyjDyb3cKQ==?= To: "loic.poulain@linaro.org" , "ryazanov.s.a@gmail.com" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] net: wwan: Add WWAN sahara port type Thread-Topic: [PATCH] net: wwan: Add WWAN sahara port type Thread-Index: Ads2cYCQ6XEP0XT3TI+FyAO8qieyQw== Date: Thu, 14 Nov 2024 08:45:08 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=quectel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: KL1PR06MB6133:EE_|TY0PR06MB4983:EE_ x-ms-office365-filtering-correlation-id: 69111338-40ce-4306-549a-08dd0488a4d2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?eucgb2312_cn?b?d0dOWVV4R2FJY1U2NHRVaVI3Mm1p?= =?eucgb2312_cn?b?elBOcG42RzJsczBVQzJROXZhSytvVjcrNWtEcmIwT1BlOTBkZGZBL0o0OTlsZU43?= =?eucgb2312_cn?b?QXJqSjhqYkU3M1N1ZzRCQ05RK3pCLzhtTWFhZUpZV21jQW1obE1lbC80SlRwSjgr?= =?eucgb2312_cn?b?N3lWcXp3c0pDUzNGRUFadzY0RlhocnhPTi82WVFoVzJxbnBjTWZ4T3FxK0lGL2xD?= =?eucgb2312_cn?b?bzJxcTFRMzJkbjhySnpZLzR4dlY1NmUxWDhETzVYcU9NazRmb2VKcjFiYUo0VTNh?= =?eucgb2312_cn?b?WXBMRGhtVDZJQWNKWmw2eVdVN2lwazJOcklaR3FrWlh2a2prcnlIeStEL21nc1JS?= =?eucgb2312_cn?b?eGIwLzdzTGNIYWFIWHJmZm84WHdKNlRkZ0lDMHB0VUxvY0R2TE9JQlpMTUNqSTd4?= =?eucgb2312_cn?b?LzRGYnFBM2lRWE5xR1JiUmFCa21vYmVvTnBSeVM2YmNsVmczZWR1ektqQlFpVHQ4?= =?eucgb2312_cn?b?UTZaV0NWVjQyWHh2ZWtXYlE1QkRLR2p1L1I5WjdScmJLWmpyTkplNjYzdDk5alhj?= =?eucgb2312_cn?b?SDBBbnpkNW1SMS9QbDVNS0ZVZXkvQ3VmYWE1dzNTM3BWSnJZZEYyNE5jMWJsTEww?= =?eucgb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n?b?WU5Dd2UrWDgrMzArTmd3ZWxDTlhJbzRIOWpMa2ZJTGRoS2xkdEVUeHBXVnNGekZt?= =?eucgb2312_cn?b?YlljOVI0cjcxSDFFYmhHZ1VmbVI2NTlnUzBtZGJESzhLY214bUhsOElwa3NWTER5?= =?eucgb2312_cn?b?Ukk5S1l3SC9IcElpZlNOL0dXM25aMlVrSldwQmErQzF3eVR0U2ZIWUhVdlRSS2w2?= =?eucgb2312_cn?b?QXBqUVIvOGF1cVNrSEUreXRYc21VWHE3ZEo5c1dmSGJ3S3JMejYrNEYyU2NzdDQ3?= =?eucgb2312_cn?b?N1ZxNVRreUEvelVZM1lkNTA3anpJNjNUUnJDdktzOHdJdDFsM1ZHT1Bmc0VzTmJx?= =?eucgb2312_cn?b?aVVPVGVUSyt2Y3AyTFNnVXRBTEFCWU1MZXk5NzBoSzF4MXlFd2JLSStRb2E4NDRn?= =?eucgb2312_cn?b?WHBYQW40UmJZQ2RsUXpzSDR5WGR4Zz0=?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:KL1PR06MB6133.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(38070700018);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?N3pnQXorRktHMXdZSFJWeTJS?= =?eucgb2312_cn?b?L0NORE1MT2NQRW12Z2tsVjAvVmdpRS9zYmU3SDJxZndJanVVbElqdUE4WGtZMmJW?= =?eucgb2312_cn?b?UTJYc3hsUThTMWxXeFhLRFFoQjgrNXNvRzlacHF0Zzh4NVRhbHJaemtEY3NqSTZt?= =?eucgb2312_cn?b?cGg0KzdyVGRMa3Zac3dtSTFhemg1UDFTMEZ5ZVpDSndscVpDckN1a2VCLzZCQkZB?= =?eucgb2312_cn?b?N3k4a3dIZkFFbFVLbWhraGlCVE03WG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UUlLRnRSNytFMENLMC9TSjhj?= =?eucgb2312_cn?b?cHo3MEpKRVk1M0FlUDJGWHZISnBLczNsS0N0R2p2VjdwRERkSnNyUEF3TVg1YnBI?= =?eucgb2312_cn?b?WThlbFpjSURObjFDK0Q2Z0dwb2IzbGZxOFEvb1BVSmdzNFdwb0NqNHB6SFpWMGc3?= =?eucgb2312_cn?b?ajFOUEtGanhxeHpTb0dLZlEwTUJHV3ZFcjBiYXZpL21JWmpkZEwwVUVrSGJIeg==?= Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: quectel.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: KL1PR06MB6133.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69111338-40ce-4306-549a-08dd0488a4d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2024 08:45:08.3682 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7730d043-e129-480c-b1ba-e5b6a9f476aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vmjJGVLow0rQztFn+sCrnDsVlvmIgXG1F4cgyHb1f1DvtjWr+SfFhapkXVJOvQoZ1fxGXebuIEwtQ46zuF7X9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB4983 Add a Sahara protocol-based interface for downloading ramdump from Qualcomm modems in SBL ramdump mode. Signed-off-by: Jerry Meng --- drivers/net/wwan/mhi_wwan_ctrl.c | 3 ++- drivers/net/wwan/wwan_core.c | 4 ++++ include/linux/wwan.h | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/wwan/mhi_wwan_ctrl.c b/drivers/net/wwan/mhi_wwan_ctrl.c index e9f979d2d..2c6a754af 100644 --- a/drivers/net/wwan/mhi_wwan_ctrl.c +++ b/drivers/net/wwan/mhi_wwan_ctrl.c @@ -263,7 +263,8 @@ static const struct mhi_device_id mhi_wwan_ctrl_match_table[] = { { .chan = "QMI", .driver_data = WWAN_PORT_QMI }, { .chan = "DIAG", .driver_data = WWAN_PORT_QCDM }, { .chan = "FIREHOSE", .driver_data = WWAN_PORT_FIREHOSE }, - {}, + { .chan = "SAHARA", .driver_data = WWAN_PORT_SAHARA}, + {}, }; MODULE_DEVICE_TABLE(mhi, mhi_wwan_ctrl_match_table); diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c index a51e27559..d2fe603e6 100644 --- a/drivers/net/wwan/wwan_core.c +++ b/drivers/net/wwan/wwan_core.c @@ -342,6 +342,10 @@ static const struct { .name = "MIPC", .devsuf = "mipc", }, + [WWAN_PORT_SAHARA] = { + .name = "SAHARA", + .devsuf = "sahara", + }, }; 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 79c781875..b0ea276f2 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -19,6 +19,7 @@ * @WWAN_PORT_FASTBOOT: Fastboot protocol control * @WWAN_PORT_ADB: ADB protocol control * @WWAN_PORT_MIPC: MTK MIPC diagnostic interface + * @WWAN_PORT_SAHARA: Sahara protocol-based interface for downloading ramdump from Qualcomm modems * * @WWAN_PORT_MAX: Highest supported port types * @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type @@ -34,6 +35,7 @@ enum wwan_port_type { WWAN_PORT_FASTBOOT, WWAN_PORT_ADB, WWAN_PORT_MIPC, + WWAN_PORT_SAHARA, /* Add new port types above this line */