Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3396293ybt; Tue, 23 Jun 2020 00:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzug+s9QQvgR8SmK9DTBUL2lDXP5TSJ6MRWC2hb6l+/GPxTq39hszK9NXcJSgkfBSr3vkod X-Received: by 2002:a17:906:29d8:: with SMTP id y24mr1730022eje.212.1592899085183; Tue, 23 Jun 2020 00:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592899085; cv=none; d=google.com; s=arc-20160816; b=zTdRzEU+nG2CZEnA1XPFHnzsnhqBWiuHmcp14umObo5TSCP6yEVMA9boQLAFR9a7oG UzEiUPLVe5O9hFgfN4tJosA1xULevo4huPSx0yDB4gQaIbCt2TuXvVMhG6jOat9CVsru o5YGaEaTF/DwjKtYSQ7CmDWPrvJXe56LZZ5j5YgD50vRGVcpb6fvi3WLOev1eIX39MdW u5AuX/qxVRhueyvMvzzCgUZt5QJZ4L8b6q/HVTQe1XBnGOYA/CjwgCTjn7eCJdsujeBa mVZraPFTA5kH8WSND+eI8JICA1tH2td67KxZFb+ix8byHzUH1F0LChZJjJ/16xFeS93Y KYag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=VH2f8geP5bsEeviiLJElCQbL4T/ZyD7yVRFLLYJHgAE=; b=Mi16SjXufWWVtDQLMM1xhwB6cUr0/1d2hE7MCGIPrJQecx0CoKjqh626ITwvEY5NGE bxvQyPCQIp7COwaZz2GnJ+LD/J8Knf5PfXdE3MotI1P3nyUpnfw5HiLEiJGc5IB9r2as qANiwHmsMvIqNuAur2xWVURt1rwC0X9ZBfcwXQZJISa9apLCUfEjbRghKKT62ryd5IAb jMf+ZVjnCPPk0UZODXYi1syH1QzwFH99SUoh8+RRkyEPpm65PSHxE7DO1Ny0C22gIMNy XhnTESqE895XjAgW8+9D7aVoS1zVKxu6tZWETuen0NDlUiQ0A/6iUXk6thq2BJd1VFgq A2NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si11515361edp.466.2020.06.23.00.57.41; Tue, 23 Jun 2020 00:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731539AbgFWHxy (ORCPT + 99 others); Tue, 23 Jun 2020 03:53:54 -0400 Received: from mail-lj1-f176.google.com ([209.85.208.176]:40604 "EHLO mail-lj1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731158AbgFWHxx (ORCPT ); Tue, 23 Jun 2020 03:53:53 -0400 Received: by mail-lj1-f176.google.com with SMTP id n23so22284766ljh.7; Tue, 23 Jun 2020 00:53:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VH2f8geP5bsEeviiLJElCQbL4T/ZyD7yVRFLLYJHgAE=; b=JwnrqjQNipKc8sxqbHzLIwHcvmjUMnWy+FOi9l0CrePM3BkLqVxgXOjCo+L+HGMQs9 1MIsr/zdG3pEXyntr3m4DTqj3A0CBQMMXsobb/2dkykUqZqvgJDHkigeKXx1+6WlIQrJ Zz3BzLjHk2UjYRtP5u+YLBvP+DSbrW26fOfLa27z24mVrCDm07TPDy7meYcNb9YgB49z nngYsy1+95vPW74l9qs+Jm0l8yYSi3miXy3utZC9fufFlA5MG4mvuylI4Xp5qllZuhwN TKLgMNoojNpISjvzejSqnJslf7MB41AhIKrcyywvNMN+DOvOJ3IegvnK+e4mIRDHbsXH o7aQ== X-Gm-Message-State: AOAM532zmfKMBl1ldHohO+ycVc9QMTHJ4JrzZ8FNhUx8ctoq1KaXEtsi su9VhboXZdhFA4RfV+l/5fk= X-Received: by 2002:a2e:b612:: with SMTP id r18mr9907331ljn.195.1592898830897; Tue, 23 Jun 2020 00:53:50 -0700 (PDT) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id y188sm4661722lfc.36.2020.06.23.00.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 00:53:49 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1jndka-0000gZ-FF; Tue, 23 Jun 2020 09:53:49 +0200 Date: Tue, 23 Jun 2020 09:53:48 +0200 From: Johan Hovold To: James Hilliard Cc: Johan Hovold , linux-usb@vger.kernel.org, Linux Kernel Mailing List , Greg Kroah-Hartman Subject: Re: [PATCH v2] USB: Serial: cypress_M8: Enable Simply Automated UPB PIM Message-ID: <20200623075348.GD3334@localhost> References: <20200616220403.1807003-1-james.hilliard1@gmail.com> <20200622085321.GA3334@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 11:04:09AM -0600, James Hilliard wrote: > On Mon, Jun 22, 2020 at 2:53 AM Johan Hovold wrote: > > > > On Tue, Jun 16, 2020 at 04:04:03PM -0600, James Hilliard wrote: > > > This is a UPB(Universal Powerline Bus) PIM(Powerline Interface Module) > > > which allows for controlling multiple UPB compatible devices from > > > Linux using the standard serial interface. > > > > > > Based on vendor application source code there are two different models > > > of USB based PIM devices in addition to a number of RS232 based PIM's. > > > > > > The vendor UPB application source contains the following USB ID's: > > > #define USB_PCS_VENDOR_ID 0x04b4 > > > #define USB_PCS_PIM_PRODUCT_ID 0x5500 > > > > > > #define USB_SAI_VENDOR_ID 0x17dd > > > #define USB_SAI_PIM_PRODUCT_ID 0x5500 > > > > > > The first set of ID's correspond to the PIM variant sold by Powerline > > > Control Systems while the second corresponds to the Simply Automated > > > Incorporated PIM. As the product ID for both of these match the default > > > cypress HID->COM RS232 product ID it assumed that they both use an > > > internal variant of this HID->COM RS232 converter hardware. However > > > as the vendor ID for the Simply Automated variant is different we need > > > to also add it to the cypress_M8 driver so that it is properly > > > detected. > > > > > > Signed-off-by: James Hilliard > > > --- > > > Changes v1 -> v2: > > > - Add more detailed commit message. > > > > Now applied, thanks. > > > > Would you mind posting the output of "lsusb -v" for this device for > > completeness? > Bus 001 Device 004: ID 17dd:5500 > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.00 > bDeviceClass 0 > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x17dd > idProduct 0x5500 > bcdDevice 0.00 > iManufacturer 1 Simply Automated Inc. > iProduct 2 USB to Serial > iSerial 0 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 0x0029 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 4 Sample HID > bmAttributes 0x80 > (Bus Powered) > MaxPower 100mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 2 > bInterfaceClass 3 > bInterfaceSubClass 0 > bInterfaceProtocol 0 > iInterface 0 > HID Device Descriptor: > bLength 9 > bDescriptorType 33 > bcdHID 1.00 > bCountryCode 0 Not supported > bNumDescriptors 1 > bDescriptorType 34 Report > wDescriptorLength 37 > Report Descriptors: > ** UNAVAILABLE ** Thanks for posting this. Don't you need to add this device to the HID driver's ignore list to prevent it from claiming the device (see hid_ignore_list) just like for the Cypress VID? Johan