From patchwork Mon Jan 28 20:37:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Gupta X-Patchwork-Id: 10784701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1824B922 for ; Mon, 28 Jan 2019 20:37:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 009812C34A for ; Mon, 28 Jan 2019 20:37:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E94262C34E; Mon, 28 Jan 2019 20:37:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90D042C344 for ; Mon, 28 Jan 2019 20:37:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726997AbfA1Uhm (ORCPT ); Mon, 28 Jan 2019 15:37:42 -0500 Received: from mail-pf1-f173.google.com ([209.85.210.173]:37928 "EHLO mail-pf1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfA1Uhl (ORCPT ); Mon, 28 Jan 2019 15:37:41 -0500 Received: by mail-pf1-f173.google.com with SMTP id q1so8538130pfi.5 for ; Mon, 28 Jan 2019 12:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GZ3n6mx94nk7M9R4L3MrD+4xeSVHocEdRmUBub2HU3E=; b=dHVTyN2klPS2vu/6RPFILdqLW4SOyZIDxPn5eXLv2itHBZK4/5/9rVwg0Lbrc+q/Ko jGybN0HJ7tHafuI9Ejjyjm046kjgDwzuSjlMt0johaSPDqfquhNMU0GDySpPtTMPLL4h b4pGvXjQDEo329t6AXrIvmZwDUdeKVeMkeD0y/rzwJYQx5G45dkV881eAPSyal/t9IiB MSSDh7NJa+5To55S8ERM9W1a5DRD8zH07M77hIS4Iv16t+8nmd6gtzT/qimtjSQQSOOV mEO3Br3x+CZjSm0k/M40hZV1NwPhw7RItHVAQXzTYkzK//QooaAqYVu07jq6SSEVHdN+ i6AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GZ3n6mx94nk7M9R4L3MrD+4xeSVHocEdRmUBub2HU3E=; b=bv3YcfLVpRUY7kDiN+V5qR+qnfu6nNK4hAQpmMcm2X+sl4Nhz20B4L7/B6GWUh5UVB GIe+kKLR3cv5M0Ly7JY8X+AQvQGSO/TTBa+01kiTbdh4bEZxEvLTR+y7cz0kHWIc4+zV bkz/KNldfzyxPJdIv8xURrb7loEWXG9DaosdyB90f3HypT1wpOCoSbEsSg1dsVxFxX4m BSA9yv3BA+nLSWbTlSLpYTzq1bvzzsXosc8ip/cXRwAaQ/ac+F417/S7XEhuR21POkfz WL8kevdB9+5VJiiGCCtio3DkbUt2wYo/K1yM3eftEDhzHapZaVCqkzD1sPu41u+VaAIn SPuw== X-Gm-Message-State: AJcUukffOTf89Nh7cNXoOZS6d1/ZmXtKMiecAPGJIStaBxL30aUhoZZ0 LBVbqjZsAXfERmYKlGz9/3Y= X-Google-Smtp-Source: ALg8bN6N23pc+oHsTXog/beLKzh7x3Tb0WSzTbO6fgfXfOQYhxa/dIZ69lFpHs0YEpbgM/Ttey0G7w== X-Received: by 2002:a62:55c4:: with SMTP id j187mr23212301pfb.129.1548707860854; Mon, 28 Jan 2019 12:37:40 -0800 (PST) Received: from ajayg.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id t3sm34628047pgv.31.2019.01.28.12.37.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 12:37:40 -0800 (PST) From: Ajay Gupta X-Google-Original-From: Ajay Gupta To: heikki.krogerus@linux.intel.com Cc: linux-usb@vger.kernel.org, Ajay Gupta Subject: [PATCH v2 0/6] Add support for firmware update on Cypres CCGx Date: Mon, 28 Jan 2019 12:37:25 -0800 Message-Id: <20190128203731.12681-1-ajayg@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Heikki These changes adds support for updating firmware on Cypress CCGx controller. New version (v2) fixes comments form you and Greg. I have tested them on NVIDIA GPU card. I will be posting firmware binary patch to linux-firmware.git repo soon. Please help review this set. Thanks Ajay Ajay Gupta (6): usb: typec: ucsi: add get_fw_info function usb: typec: ucsi: add ccg command framework usb: typec: ucsi: add port num info usb: typec: ucsi: add cmd used for fw flashing usb: typec: ucsi: add fw update needed check usb: typec: ucsi: add firmware flashing support drivers/usb/typec/ucsi/ucsi_ccg.c | 950 +++++++++++++++++++++++++++++- 1 file changed, 944 insertions(+), 6 deletions(-)