From patchwork Sun Nov 17 08:31:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Shapovalov X-Patchwork-Id: 13877801 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 990941E526 for ; Sun, 17 Nov 2024 08:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731832342; cv=none; b=twh6tbbGeIsVs46e9V2kyBEMZRHyS6Wa2P7fsu3i2zvgdAjnd0xPMoLjoePSISMuIfUmQO6TUShFHE8VyaExmr8Fex/pJEpZJXg4RaF2GNjJDZ91/YUAryU6VeQQw4FuFEuTSXyez3YYdKtvxU7g01i8QQGxG+6EkmNDv5Lwtqc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731832342; c=relaxed/simple; bh=bEdtzbEoybZw2elzR+5shN7afieydr1cqVkaEADVKqI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qUNcID1YoSlDKjR6e3DZSlcVttD/aMfBJeHBgP0LXcXJhBWCISGS2zSxl3pmTu97U0p9zUfWswSIsGp1CUp/7EWmpe3qf1GPLWabH65sWFHp3cgCZyKLxzthpL5hj1IkHJ6MxfjnuqdqtbQJ0MuUVCaUHL8KbOpIZjm9/NVStWA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=intelfx.name; spf=pass smtp.mailfrom=intelfx.name; dkim=pass (1024-bit key) header.d=intelfx.name header.i=@intelfx.name header.b=J31Kg2or; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=intelfx.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intelfx.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=intelfx.name header.i=@intelfx.name header.b="J31Kg2or" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-37d4b0943c7so2085364f8f.1 for ; Sun, 17 Nov 2024 00:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intelfx.name; s=google; t=1731832339; x=1732437139; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3xqOFH63hSrxX1dILSqXuu7UlXARoGwwkDBC60Jsfjg=; b=J31Kg2orYVJNBZ8e//Rq0DHyUvW1m3mjPr7srLgL4qpNSRf/8F26rS2jqyShispcup 2L/ucFbYK2ZJzkex6KlLKEiRt2KnpGnVoOa5j7Y+rKCOlvyflFMBmbt+pKJ+O+esqhgw uNybT4QMOdJ7qAis19yDhea5hzon2FnuZkq0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731832339; x=1732437139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3xqOFH63hSrxX1dILSqXuu7UlXARoGwwkDBC60Jsfjg=; b=ZcPw/Xi5p4i1nHLGy6LMf+3XDL5E/nxpVdQ3Ur7gM2Y+sGX0/j+gJwGpzZ4qzJJZTs IQZ07GtbZMdi5fsCYaPb2jmksGxP5JDbNEnFI2oNovagly6I/q/PetvWFkEBJ9GOuC94 WKx11gbjboMTm0+Z+EZiAt0jhcSVCTVHcBEK1ykNpMoQ3zj6CG86TmDWxorS5yyp4GhC hjM3cIf3Rvqghi/fTyIHeHDMNFGhPRbnOYoxEIjUIErFbfwMKJ66rmjgjDvYOBxZ3TTT J4iGjqHQUUVUdTc+9xTKCyydX9nyg6GNpzZRg/A0weBwkOkark0qYVKXEKyAsnlD/9bd 9nIQ== X-Forwarded-Encrypted: i=1; AJvYcCUgG6Msule1RjSxeUj7m0/JLBzw9BXBDGU5ydO4kInJkrJMVI/rZs7DTzCF2V/y5eLDhJwE9qM=@vger.kernel.org X-Gm-Message-State: AOJu0YzgGzuH8PbLlk94+GA8b1Bs5c3znS4G4JYlFQKgApnk4au/GTTw 7YIdn63XTUUyGRC9L79GFJ97YfXGIZ94aYwFFzNn9TYw3XL+RBCgrQVY+r2PbrE= X-Google-Smtp-Source: AGHT+IFqkInzKSrfWZDyAqHcKfytVQVzvBRf/xa6VaY1oFjx31mr3qwfdW5qrpoRUwLDctZQXKIcMQ== X-Received: by 2002:a5d:5887:0:b0:382:42c3:83cc with SMTP id ffacd0b85a97d-38242c38557mr659457f8f.45.1731832338731; Sun, 17 Nov 2024 00:32:18 -0800 (PST) Received: from able.tailbefcf.ts.net (94-43-143-139.dsl.utg.ge. [94.43.143.139]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3821ae1685csm9466919f8f.83.2024.11.17.00.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2024 00:32:18 -0800 (PST) From: Ivan Shapovalov To: linux-kernel@vger.kernel.org Cc: Ivan Shapovalov , =?utf-8?q?Bj=C3=B8rn_Mork?= , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johan Hovold , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 1/5] net: usb: qmi_wwan: add IDs for EM7565 (9X50) in "MBIM USBIF" config Date: Sun, 17 Nov 2024 12:31:11 +0400 Message-ID: <20241117083204.57738-1-intelfx@intelfx.name> X-Mailer: git-send-email 2.47.0.5.gd823fa0eac Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org This change was discovered and tested using author's own EM7565 device. This "MBIM USBIF" configuration corresponds to the `AT!USBCOMP=1,1,xxx` on-device USB composition setting. When activated, the VID:PID resets to 1199:90b1 ("application" mode) + 1199:90b0 ("boot" mode, i.e. QDL). The "MBIM USBIF" label comes from on-device help: ---8<--- AT!USBCOMP=? !USBCOMP: AT!USBCOMP=,, - configuration index to which the composition applies, should be 1 - 1:MBIM USBIF, 2:PCIE USBIF, 3:Legacy-Generic, 4:RNDIS - DIAG - 0x00000001, NMEA - 0x00000004, MODEM - 0x00000008, RMNET0 - 0x00000100, MBIM - 0x00001000, e.g. 10D - diag, nmea, modem, rmnet interfaces enabled 1009 - diag, modem, mbim interfaces enabled The default configuration is: at!usbcomp=1,3,10F OK ---8<--- Signed-off-by: Ivan Shapovalov --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 0c011d8f5d4d..9a33393d4ce2 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1349,6 +1349,7 @@ static const struct usb_device_id products[] = { {QMI_QUIRK_SET_DTR(0x1199, 0x907b, 8)}, /* Sierra Wireless EM74xx */ {QMI_QUIRK_SET_DTR(0x1199, 0x907b, 10)},/* Sierra Wireless EM74xx */ {QMI_QUIRK_SET_DTR(0x1199, 0x9091, 8)}, /* Sierra Wireless EM7565 */ + {QMI_QUIRK_SET_DTR(0x1199, 0x90b1, 8)}, /* Sierra Wireless EM7565 "MBIM USB-IF" */ {QMI_QUIRK_SET_DTR(0x1199, 0xc081, 8)}, /* Sierra Wireless EM7590 */ {QMI_FIXED_INTF(0x1bbb, 0x011e, 4)}, /* Telekom Speedstick LTE II (Alcatel One Touch L100V LTE) */ {QMI_FIXED_INTF(0x1bbb, 0x0203, 2)}, /* Alcatel L800MA */