Skip to contentSkip to conversation

USB: serial: visor: add vendor/device IDs for PalmSource devices from inf file

PATCH New Adam Simonelli 2 participants 2 messages Nov 28

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 USB: serial: visor: add vendor/device IDs for PalmSource devices from inf file

PalmUSBD.inf from Palm Desktop 6.2's driver defines two PalmSource 'devices'.

Vendor ID 0x13e8 in the inf file indicates PalmSource as the vendor.

PALMSOURCE_DEVICE_1_ID (0x0600) appears to indicate PalmOS 6.0 Cobalt. No devices were actually released with PalmOS Cobalt, but a development ROM from a Tungsten T3 made its way onto the Internet. This ROM can now be loaded and booted into RAM on a T3, which once loaded, the T3 now presents this deviceid.

PALMSOURCE_DEVICE_2_ID (0xff00) is also defined in the .inf file, but there is no known device or ROM with this id for PalmSource.

---
Changes since v1:
* Fix compile error when changing from PALMSOURCE_DEVICES_2_ID to PALMSOURCE_DEVICE_2_ID
Changes since v2:
* Add note for what changed in v2
Changes since v3:
* Fix up commit message
Changes since v4:
* Don't handle PALMSOURCE_DEVICE_2_ID

 drivers/usb/serial/visor.c | 3 +++
 drivers/usb/serial/visor.h | 3 +++
 2 files changed, 6 insertions(+)
drivers/usb/serial/visor.c +3 -0
index 5706c46c49c2..b985f9c53e1c 100644
@@ -75,6 +75,8 @@ static const struct usb_device_id id_table[] = {
 		.driver_info = (kernel_ulong_t)&palm_os_4_probe },
 	{ USB_DEVICE(PALM_VENDOR_ID, PALM_ZIRE_ID),
 		.driver_info = (kernel_ulong_t)&palm_os_4_probe },
+	{ USB_DEVICE(PALMSOURCE_VENDOR_ID, PALMSOURCE_DEVICE_1_ID),
+		.driver_info = (kernel_ulong_t)&palm_os_4_probe },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_0_ID),
 		.driver_info = (kernel_ulong_t)&palm_os_4_probe },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_S360_ID),
@@ -133,6 +135,7 @@ static const struct usb_device_id id_table_combined[] = {
 	{ USB_DEVICE(PALM_VENDOR_ID, PALM_TREO_650) },
 	{ USB_DEVICE(PALM_VENDOR_ID, PALM_TUNGSTEN_Z_ID) },
 	{ USB_DEVICE(PALM_VENDOR_ID, PALM_ZIRE_ID) },
+	{ USB_DEVICE(PALMSOURCE_VENDOR_ID, PALMSOURCE_DEVICE_1_ID) },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_3_5_ID) },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_4_0_ID) },
 	{ USB_DEVICE(SONY_VENDOR_ID, SONY_CLIE_S360_ID) },
drivers/usb/serial/visor.h +3 -0
index 622d639ce74e..c99b8b8f999b 100644
@@ -32,6 +32,9 @@
 #define PALM_ZIRE_ID			0x0070
 #define PALM_M100_ID			0x0080
 
+#define PALMSOURCE_VENDOR_ID		0x13e8
+#define PALMSOURCE_DEVICE_1_ID		0x0600
+
 #define GSPDA_VENDOR_ID		0x115e
 #define GSPDA_XPLORE_M68_ID		0xf100
 
Signature · 1 line
2.55.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 9 lines

PalmUSBD.inf from Palm Desktop 6.2's driver defines two PalmSource 'devices'.

Vendor ID 0x13e8 in the inf file indicates PalmSource as the vendor.

PALMSOURCE_DEVICE_1_ID (0x0600) appears to indicate PalmOS 6.0 Cobalt. No devices were actually released with PalmOS Cobalt, but a development ROM from a Tungsten T3 made its way onto the Internet. This ROM can now be loaded and booted into RAM on a T3, which once loaded, the T3 now presents this deviceid.

Quoted 4 lines

PALMSOURCE_DEVICE_2_ID (0xff00) is also defined in the .inf file, but there is no known device or ROM with this id for PalmSource.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1