Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8440570imu; Thu, 15 Nov 2018 11:35:25 -0800 (PST) X-Google-Smtp-Source: AJdET5dekAP1xcRaD3mqMq4335vphU6H2xHfaAOUog/1rUg80oQwb0xDzoCVzrKD8a2BrT4cNlC8 X-Received: by 2002:a17:902:9881:: with SMTP id s1-v6mr1475947plp.328.1542310525364; Thu, 15 Nov 2018 11:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542310525; cv=none; d=google.com; s=arc-20160816; b=TRy8v9J7fo2dFAR3Ci/aBaFC4u789DZrzuhAh7uNbPGDDLXNaCRKKFsFeJaM0pHXLA 9uakrLEfnfpaQBlLIXM84QV+kmzINJLjqO6ZJd+e2yJ0QULK9vbc4w4M55oSoQUOVyD+ JXOjy6rqT8Db+zCUxauHkanc/5iS/qLzZsjLGut5SkXLZdNCijN34trdAN3mNotYTLSE CxfJhnVEOruN1d9zC9XJjoifriblc27zHI94xBe+8DgMDh47UaBwSuXmNW7X7DlrdbF+ PEBF62ZVEK1f6E7RZq8NT7OR0nLEznw7M+PMDMznPVfOw9cAinxDxqO1WRTAHMtKXB0A Pi5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=8KKZKRZ60vNZodG16lL5qmvUf9TagrkGZSoYm+JaZW0=; b=0+GHUZUXERkPqqv9tB6Sk7XQorED6AbgAz7iByNJiBwL8V/vRsEH/B5fHfudAZA3vg sBd9cOLCDQ/DttGUglZ0w3yUY3zIAUqmHJSIC65UCtyWJ3NZRPj5D1SLQ/DqRQ8NeDc3 0g9HdW+I0X4Srku8NtCbTLn6Bz7oYIv20Lr+0MBaTNd53ayM7hVK0Nxn+jKGqm+YNypV eGQ7lFuOyTGEaaXpHXFaybovVw8d+6miM56PdGqfl1KZFjw44Queci0qcZ/zsnmi+Igc xbibQ1i3zqQfmjs1ChgirpBjG+5pqec+14H2gnulU9cOvo7XgruvqK/IfR/lTcOumJuO C9vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oxauPVpA; dkim=pass header.i=@codeaurora.org header.s=default header.b=oxauPVpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si26418518pgl.419.2018.11.15.11.35.10; Thu, 15 Nov 2018 11:35:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oxauPVpA; dkim=pass header.i=@codeaurora.org header.s=default header.b=oxauPVpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729586AbeKPFmK (ORCPT + 99 others); Fri, 16 Nov 2018 00:42:10 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:51330 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725742AbeKPFmK (ORCPT ); Fri, 16 Nov 2018 00:42:10 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DD62E60591; Thu, 15 Nov 2018 19:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542310382; bh=qYs4IoEqgQawc1eY/ZOr/BTEa3/G6umwSXFET7yXgqY=; h=From:To:Cc:Subject:Date:From; b=oxauPVpAkbRWPsUM8J8Bnb06RaqfS+mEMqduinB7IVkkjpAZKe1k27vR/Ec/CwfA8 9t41uurVu1PnEq3GuGAD7yr2A1Iubf4febIbHLLoXRl4Ckh/r5soQkfUpK2nRhg00H w2/TKYGcy+pj2HyKw/AeVef4L58gagyBCUJweyas= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from pheragu-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pheragu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2316C60251; Thu, 15 Nov 2018 19:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1542310382; bh=qYs4IoEqgQawc1eY/ZOr/BTEa3/G6umwSXFET7yXgqY=; h=From:To:Cc:Subject:Date:From; b=oxauPVpAkbRWPsUM8J8Bnb06RaqfS+mEMqduinB7IVkkjpAZKe1k27vR/Ec/CwfA8 9t41uurVu1PnEq3GuGAD7yr2A1Iubf4febIbHLLoXRl4Ckh/r5soQkfUpK2nRhg00H w2/TKYGcy+pj2HyKw/AeVef4L58gagyBCUJweyas= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2316C60251 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pheragu@codeaurora.org From: Prakruthi Deepak Heragu To: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, ckadabi@codeaurora.org, tsoni@codeaurora.org, bryanh@codeaurora.org, psodagud@codeaurora.org, rnayak@codeaurora.org Subject: [PATCH v3 0/2] Add Embedded USB Debugger (EUD) driver Date: Thu, 15 Nov 2018 11:32:52 -0800 Message-Id: <1542310374-18474-1-git-send-email-pheragu@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a series of patches that implements a driver for the control peripheral, EUD (Embedded USB Debugger). The EUD is a mini-USB hub implemented on chip to support the USB-based debug and trace capabilities. Apart from debug capabilities, EUD has a control peripheral. Control Peripheral is on when EUD is on and gets signals like USB attach, pet EUD, charge phone etc. EUD driver listens to events like USB attach or detach and charger enable or disable and then notifies the USB driver or PMIC driver respectively about these events via EXTCON. At regular intervals, the EUD driver receives an interrupt to pet the driver indicating that the software is functional. Changes since v2: - Remove module_param and add sysfs support instead - Simplify if-else condition - Change if-elseif to switch case - Return -ENOMEM - Got rid of unnecessary checks in sysfs store function - Updated the dt-binding Changes since v1: - Remove EUD_NR as it is an unused macro Changes since v0: - Remove select SERIAL_CORE from Kconfig as this patch doesn't involve anything related to serial console - Changed the dt-bindings to remove extcon and replace it with graphs to represent a connection with client Prakruthi Deepak Heragu (2): dt-bindings: Documentation for qcom,eud Embedded USB Debugger (EUD) driver .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 41 +++ drivers/soc/qcom/Kconfig | 12 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/eud.c | 338 +++++++++++++++++++++ 4 files changed, 392 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt create mode 100644 drivers/soc/qcom/eud.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project