From patchwork Wed Sep 26 15:23:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Thomson X-Patchwork-Id: 10616089 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 7C7EA112B for ; Wed, 26 Sep 2018 15:24:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A4E2B21C for ; Wed, 26 Sep 2018 15:24:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5734B2B22E; Wed, 26 Sep 2018 15:24:11 +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=-6.9 required=2.0 tests=BAYES_00,FROM_WORDY, 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 082AA2B21C for ; Wed, 26 Sep 2018 15:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbeIZVhU (ORCPT ); Wed, 26 Sep 2018 17:37:20 -0400 Received: from mail1.bemta26.messagelabs.com ([85.158.142.2]:38630 "EHLO mail1.bemta26.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbeIZVhT (ORCPT ); Wed, 26 Sep 2018 17:37:19 -0400 Received: from [85.158.142.104] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-2.bemta.az-a.eu-central-1.aws.symcld.net id 57/FF-23311-784ABAB5; Wed, 26 Sep 2018 15:23:51 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRWlGSWpSXmKPExsUSt3OpsW7bktX RBr9vWVk0L17PZtG1eieLxeVdc9gsFi1rZbZ4svAMkwOrx7yTgR77565h99j5vYHd4/MmuQCW KNbMvKT8igTWjA0Hv7EXLGatOHLmAnMD4w6WLkYuDiGB9YwS/z69Ye5i5ARyKiT6lnwBs3kF3 CR2rdrJBGKzCVhITD7xgA3EZhFQldi0pxesRlggQGLr9Pdgg0QEehglNh5Zwg6SYBZIklj7tg dqkKDEyZlPWCDiEhIHX7yAWmYgcXpBI1hcQsBeYvr7q0BxDiBbX6LxWCxE2FDi+6xvUCXmEl3 TpzJPYOSfhWTqLCRTFzAyrWK0SCrKTM8oyU3MzNE1NDDQNTQ01jXSNTHRS6zSTdRLLdVNTs0r KUoESuollhfrFVfmJuek6OWllmxiBAZ0SiGTzg7GTwvTDzFKcjApifIq+KyOFuJLyk+pzEgsz ogvKs1JLT7EKMPBoSTBa7gYKCdYlJqeWpGWmQOMLZi0BAePkgivCUiat7ggMbc4Mx0idYpRUU qcVwUkIQCSyCjNg2uDxfMlRlkpYV5GBgYGIZ6C1KLczBJU+VeM4hyMSsK8XiBTeDLzSuCmvwJ azAS0eELPCpDFJYkIKakGRrHvblz9VxWVlx1u31m24lTs7LMcN82PGcj+npe7sIeNw3TShKtz 09xlrlwTmm1p27ySbcvUsyF34mVZPj3aaeFj/Sr03OqUopii1vT5m8sePRT7eHp/h/URCW6bh O7fKlK9Mpb9r1PWLBZdN/loFnenc2JHvVWB/vqtX0uOcnBa1silrD30VYmlOCPRUIu5qDgRAK Nux8LiAgAA X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-18.tower-229.messagelabs.com!1537975430!361960!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.14.24; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2814 invoked from network); 26 Sep 2018 15:23:50 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub01.diasemi.com) (94.185.165.51) by server-18.tower-229.messagelabs.com with AES128-SHA encrypted SMTP; 26 Sep 2018 15:23:50 -0000 Received: from swsrvapps-01.diasemi.com (10.20.28.141) by SW-EX-CASHUB01.diasemi.com (10.20.16.140) with Microsoft SMTP Server id 14.3.382.0; Wed, 26 Sep 2018 16:23:50 +0100 Received: by swsrvapps-01.diasemi.com (Postfix, from userid 22379) id 2A0513FAF0; Wed, 26 Sep 2018 16:23:50 +0100 (BST) Message-ID: From: Adam Thomson Date: Wed, 26 Sep 2018 16:23:50 +0100 Subject: [PATCH 0/2] usb: typec: fusb302: Resolve fixed role power configuration To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman CC: , , MIME-Version: 1.0 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-ServerInfo: sw-ex-cashub01.diasemi.com, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 26/09/2018 13:22:00 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 This small patch set updates the fusb302 driver to correctly report CC line status during attach, when the device is configured as source only or sink only (non-DRP), so that TCPM state machine correctly proceeds with contract establishment. In addition, a trivial typo with regards to the OFF toggling state for the device is corrected. Changes are based on usb-testing (ae8a2ca8a221) Adam Thomson (2): usb: typec: fusb302: Correct spelling mistake for toggling state usb: typec: fusb302: Resolve fixed power role contract setup drivers/usb/typec/tcpm/fusb302.c | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-)