From patchwork Sat Feb 2 01:05:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Gupta X-Patchwork-Id: 10793907 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 52BBE13BF for ; Sat, 2 Feb 2019 01:05:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 445E832F9D for ; Sat, 2 Feb 2019 01:05:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38D0B32FA0; Sat, 2 Feb 2019 01:05:23 +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 D3C4E32F9D for ; Sat, 2 Feb 2019 01:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbfBBBFV (ORCPT ); Fri, 1 Feb 2019 20:05:21 -0500 Received: from mail-pg1-f174.google.com ([209.85.215.174]:36401 "EHLO mail-pg1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfBBBFV (ORCPT ); Fri, 1 Feb 2019 20:05:21 -0500 Received: by mail-pg1-f174.google.com with SMTP id n2so3733836pgm.3 for ; Fri, 01 Feb 2019 17:05:21 -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=Sa1ciNy8pRx/KrtY2VWU9CsfsGmI7o3gdzHAObdc0Fo=; b=h9fmesthbpWLOEabR75hnCFe8K13c8IxyBoEMHqx1rVOMoCq+/b346Mw7bK8CNjf/f OxL+hUkmiOfbgx+Ytq/mds1YHWTp45lE2F0vgPeRlC5CfmBO9R68yo9T+1WfMYjgICxi r/m/t73z/DnXtRMFHAIrgDlmjiN79Syb9ywD1BSwfNieaATa+HMMyRv1VNZFtMoD8jKy 03VhYKb/+yzMk2d+DQ+83RR5oxO0gTX4DFb0XIa0iV3VQRMwIN790sz7Hmczt8ydxHkE igSdiZeM1jYICsDvSiU0tmKLrLqR9XA59cdXP59wiMVhmPnBEb8igLVbHNfPUXpNMztz Fo3Q== 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=Sa1ciNy8pRx/KrtY2VWU9CsfsGmI7o3gdzHAObdc0Fo=; b=JoMklGA7+YOeLO1V7ssJOmZzmsIT2XgMFdezYkcYQlZIU8WbmJrGgjfEqxwNbH65dT daXRu7NNaqRUwsDWVnIdkX2fi8gbwRJkYWu7b+oXhShRzPsJ/gS40d2Hr78p+PW+eTJn SG8qASX/zL3wNm9OLi3tz2LxalogVGKQSi6Y4Z9W5ak2JHa3stPW9aPqVWV8GeLuQe18 oGQt/62AXMqIp7jmQwdjVlENqyOybZT9pyYlwZe9s3Qn5w/ozLYcWLzp68hcIgVMncki oSoInPpo4Ph4JDysEYniku/w6EBfqAr+HDyeos8oTkbZUJMk0pA1qwUduP+aECdDPkXS ihMw== X-Gm-Message-State: AJcUukfpVc6ocmMXCKqWoyofk7qoGMxPzFusmy7IveHmxkDxAauClMwB XvDMDlqmnnD90g5F4J4yWTo= X-Google-Smtp-Source: ALg8bN5VJVpVOQ5O9TmMoehe/oKDrqTwAGZ4QTQ6Pik80HGfxFZX9Y1/B6zCgg6W+axZPG9ROTnWQA== X-Received: by 2002:a62:46d0:: with SMTP id o77mr42188980pfi.172.1549069520786; Fri, 01 Feb 2019 17:05:20 -0800 (PST) Received: from ajayg.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id f6sm13158685pfg.188.2019.02.01.17.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 17:05:20 -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 v3 0/6] Add support for firmware update on Cypres CCGx Date: Fri, 1 Feb 2019 17:05:04 -0800 Message-Id: <20190202010510.25016-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 (v3) 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 | 881 +++++++++++++++++++++++++++++- 1 file changed, 874 insertions(+), 7 deletions(-)