From patchwork Mon May 6 14:08:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10931113 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 42B35912 for ; Mon, 6 May 2019 14:09:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3199428470 for ; Mon, 6 May 2019 14:09:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2625128497; Mon, 6 May 2019 14:09:05 +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,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 B4EAD28470 for ; Mon, 6 May 2019 14:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726190AbfEFOIn (ORCPT ); Mon, 6 May 2019 10:08:43 -0400 Received: from node.akkea.ca ([192.155.83.177]:37900 "EHLO node.akkea.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfEFOIn (ORCPT ); Mon, 6 May 2019 10:08:43 -0400 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id BCDD74E2050; Mon, 6 May 2019 14:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1557151722; bh=/mGCmvN54MxGyyYraVOw7L2iG5KRhP2JcxAHB9bIdHw=; h=From:To:Cc:Subject:Date; b=IELrROagDQlPcFzy2PfCSaa0xDZcCxqn2LgoFIqIOMKB0NwAEEsTog7aBm8e+D8Mq RipcBvtHYvqQW7m9y3XnnDWIPgdqcJEFGTcpcRsQ+lF5loLcgpN6k4IdhvOe1EbbxV ii5WKRtXzhg8ss+uguXNYm0nd1hNJ7kByz4kOoaE= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xFsH-OpSSv4d; Mon, 6 May 2019 14:08:42 +0000 (UTC) Received: from localhost.localdomain (198-48-167-13.cpe.pppoe.ca [198.48.167.13]) by node.akkea.ca (Postfix) with ESMTPSA id CD80A4E204B; Mon, 6 May 2019 14:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1557151722; bh=/mGCmvN54MxGyyYraVOw7L2iG5KRhP2JcxAHB9bIdHw=; h=From:To:Cc:Subject:Date; b=IELrROagDQlPcFzy2PfCSaa0xDZcCxqn2LgoFIqIOMKB0NwAEEsTog7aBm8e+D8Mq RipcBvtHYvqQW7m9y3XnnDWIPgdqcJEFGTcpcRsQ+lF5loLcgpN6k4IdhvOe1EbbxV ii5WKRtXzhg8ss+uguXNYm0nd1hNJ7kByz4kOoaE= From: "Angus Ainslie (Purism)" To: angus.ainslie@puri.sm Cc: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Angus Ainslie (Purism)" Subject: [PATCH 0/3] usb: typec: tcpm: Add some FAULT_STATUS processing Date: Mon, 6 May 2019 08:08:27 -0600 Message-Id: <20190506140830.25376-1-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 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 A high number of interrupts were being generated by the tcpci driver. These patches put debugging info into the tcpm log and clear the interrupt condition. Angus Ainslie (Purism) (3): usb: typec: tcpm: Export the logging function so it can be used by tcpci usb: typec: tcpm: Add functions to read the VBUS voltage usb: typec: tcpm: Clear the fault status register drivers/usb/typec/tcpm/tcpci.c | 56 ++++++++++++++++++++++++++++++++++ drivers/usb/typec/tcpm/tcpm.c | 3 +- include/linux/usb/tcpm.h | 2 ++ 3 files changed, 60 insertions(+), 1 deletion(-)