Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3396294ybt; Tue, 23 Jun 2020 00:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykcsZeP4uMirwA4iK+yVs9Eb43+sH3VoRE0FaUjKkXU4E7z8z28qRcgtiIE9YW/QHNdpWd X-Received: by 2002:a17:906:1917:: with SMTP id a23mr18750993eje.181.1592899085175; 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=ce0kgO9wxjZenk5LH8FV5urTNrHqHrYSuWzl0uzzxwgFHm0awlrqGYt4162k5FYyvm WH9b2enwrwtquSiWi/gaAf1ba7+ljLP/jivIeu7SfHpYLJJcfbye8bXNXcwz1JrhrDBa mg2NhjMrPPzxsTifNGKCk8Rh+P46WpEFZlrrPgqrlPz69loKknPGB1awMD4kwZDs/reG rx1GyXvauxKqA6CG8FRqEeIlYWkI37IuTDlJOlb6Z+abUvsH1mTAFyZTA+XwBaXE3pua cRdmhs/zuQVaHm/eWBvFU0LDKuc7Bb+f7PwqX5Ghx90zxz+NLlzMNCTqE4ZVtxu6r7Op veGg== 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=AE10kGr/AC4PeUq4/87K8LAJGB895p/gy2rm/kQ7kJ4=; b=LhrgiJ7a/QK/WHp96+i2dEE9i7GmT0PtT4Ta26T76YwZRluJFlg82qEztwOtIlFycr OQS/mTzg9IMrwaitVQ8ccrzygX6HFqnKNKbiYN7fi+wmh4lVHlvNLJ6Pm+cQzRAC9d+q hY8u3dAFhngZbz8UG7aCh/eX/YOEidRlbtWvQehaKN+eAqX0PSTdoy4948fis1LRgZEN HPP8zGtropkPnWTXhi4wRs9Hwjp82aP2/5+pgrHGtYTsDDVFv0eljDg6RKVULMWD8wOC GOJgdeIopWKKflTYp7g4KwoIk8dX9kKicYxhYPRhe5xXEeZpnfNfSZ/K6DK4vVbzSPOc ypdA== 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 ck9si10412907ejb.371.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 S1731579AbgFWHzl (ORCPT + 99 others); Tue, 23 Jun 2020 03:55:41 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34335 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731041AbgFWHzk (ORCPT ); Tue, 23 Jun 2020 03:55:40 -0400 Received: by mail-lj1-f195.google.com with SMTP id x18so22294333lji.1; Tue, 23 Jun 2020 00:55:37 -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=AE10kGr/AC4PeUq4/87K8LAJGB895p/gy2rm/kQ7kJ4=; b=rKq8nnMYLJuroacmlhkM1JyLFstkRVgn4skw0GK4do2KeeNyBDkc7yndzYbtuR7kV1 voyTyGoxkAKA2vr26OSq7r3psCvMdQPXX9MvuYjVoDRySWqaMrTyKm4Ub4KeP5fx6cVZ c9vTOu3Y0QXf4BuQ8oRbOjLkWUX7WyEdCwExzIlSWhEkiAxfj7r+o/hknHVjhpqLRtGi zT0fUVRAEG5amFCutL/VQ959EW76fg0+LZd5XlxV6iz6w8wq5SFYoTjXyFxNWjbyApxY 9/Jem1wnICUfs5lvIuGhSebuj63zJe+j76aWPS6E8oXthUk9v+3n7cC78ml56uyPgllk NGGA== X-Gm-Message-State: AOAM531JfvCAFZrIB3dw9jo703M33850r6iKED3iHwPQQxmuKJHnZtfn yQksTd/M83PXAmfkcTnhNTY= X-Received: by 2002:a2e:7203:: with SMTP id n3mr10502869ljc.231.1592898937196; Tue, 23 Jun 2020 00:55:37 -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 q26sm3136567ljg.128.2020.06.23.00.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 00:55:36 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1jndmJ-0000hb-DM; Tue, 23 Jun 2020 09:55:35 +0200 Date: Tue, 23 Jun 2020 09:55:35 +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: <20200623075535.GE3334@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:09:51AM -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. > > Oh, FYI I think part of the comment got dropped when you amended the > patch > I don't see the defines in the comment here: > https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git/commit/?h=usb-linus&id=7527d963dff544b0ddfba4319824c50f2a892aeb > > I think I had to temporarily change my git config with this to make it not drop > the defines: > git config core.commentchar "*" Thanks for catching that! I added a leading tab to prevent those lines from being discarded. Johan