Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4621608pxb; Tue, 5 Oct 2021 07:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN9SBltF8HpaAB44yoRAdogEIzvx8j7tbPdOjlcnTvMSgnqMeQhOxOiQnBB6bZbgfcmLGK X-Received: by 2002:a17:902:8494:b0:13b:9365:6f12 with SMTP id c20-20020a170902849400b0013b93656f12mr5360774plo.19.1633442531016; Tue, 05 Oct 2021 07:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633442531; cv=none; d=google.com; s=arc-20160816; b=xWDVGHELlCxbQGUgre9V3y2wHmedOdEBzOPjoFNWKPAdMAadFXZd0PWhUgmSbXBnoJ 1MDqREmMidD+UtjMrWOw7UeR9ueGiLnRkHtL4eBG3IofWXW+fEzJ2GMndGAJ0GYZcHeE oQm4iR5W2iAtDfpABNNe3ok/e6CryrhGjQvl/ISDKGmbpXeN2ah54KycWdMWifc034/7 mdxHY98bhdgVWHA/NwRXfAoY4fpJKgs8Xza7tPDIE9MyFvbqojOa6LG3ugoET7XB3oR+ 2hPOSQGOGvvlfCEDL3W5OR/RJIutjVZUS/Mf1cg3Ysw469LtD5dtGmko5LA6ewuFFj7K Cvhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=LgxDMZbTLmbkmI3rWSDe8ZXB9Ho4b2bgxaujdRTL8SE=; b=lh4lfVV0mN/FVuFJ6cKAjeFYTARVt6GPqRp9QbZt4pInyJz01On8xEZiuUB3gQp5Ub WVGwZ7aF+zgAld9Z/l3u43bd+9hWDvvC/cKhq5pqfGbtBfibU72kuTyaH80rO0tV00MV nIAsYxvf6WdLaB1T5675iBIyD9WcN4/VHx+jm9wNNgBdJ6pjxlk8xVjLTS0SCWp0xPSk NwK8zxG/EK07LKXwM5zxtpZ2nPHVqHwvK+QaDk0Np52LoGMSmVQwY3ML3d9if1vXrEsD SK7kixHxbTKfGydQ8p6diaN4I/nIYmIe8lRBIjrkls5XjRsaU1nWHYeAQpmC9is+9ZRr NRFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="cuHOXcq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si1961076pjk.189.2021.10.05.07.01.49; Tue, 05 Oct 2021 07:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="cuHOXcq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235906AbhJEOB4 (ORCPT + 99 others); Tue, 5 Oct 2021 10:01:56 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:28338 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235734AbhJEOAI (ORCPT ); Tue, 5 Oct 2021 10:00:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633442297; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=LgxDMZbTLmbkmI3rWSDe8ZXB9Ho4b2bgxaujdRTL8SE=; b=cuHOXcq/SS1XRhEIyIVqbLkLEU/Wozm7t5QyFRhdjWznElACKWhkZ5wjJiKQfBRUq7h9yeZE lnGE4zT5X6l5MCW6RQ724EuFulnkOF8BRuYOwgIx3UGd/oE/SEny0ihNGW5T/pCbbR5k16qL N+MfYQjFj78PGZVNztqdl0xOExY= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 615c59e1ff0285fb0a91aa07 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 05 Oct 2021 13:57:53 GMT Sender: schowdhu=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E091BC35A3B; Tue, 5 Oct 2021 13:57:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: schowdhu) by smtp.codeaurora.org (Postfix) with ESMTPSA id B80D0C35A3C; Tue, 5 Oct 2021 13:57:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 05 Oct 2021 19:27:50 +0530 From: schowdhu@codeaurora.org To: Randy Dunlap Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Bryan O'Donoghue , Bjorn Andersson , Greg KH , linux-kernel@vger.kernel.org, ckadabi@codeaurora.org, tsoni@codeaurora.org, bryanh@codeaurora.org, psodagud@codeaurora.org, satyap@codeaurora.org, pheragu@codeaurora.org, Rajendra Nayak , Sibi Sankar , Sai Prakash Ranjan Subject: Re: [PATCH V0 4/7] usb: common: eud: Added the driver support for Embedded USB Debugger(EUD) In-Reply-To: <73c1eb4f-6870-1c30-9b23-d991b8c8b35d@infradead.org> References: <73c1eb4f-6870-1c30-9b23-d991b8c8b35d@infradead.org> Message-ID: X-Sender: schowdhu@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-10-05 01:38, Randy Dunlap wrote: > On 10/4/21 4:16 AM, Souradeep Chowdhury wrote: >> Add support for control peripheral of EUD (Embedded USB Debugger) to >> listen to events such as USB attach/detach, pet EUD to indicate >> software > > I don't quite understand: what pets the EUD? how does it do that? Pet EUD is an interrupt that the EUD driver receives periodically to indicate if the software is functional. On getting the interrupt the EUD driver first does a detach pet and then followed by the an attach pet. > >> is functional.Reusing the platform device kobj, sysfs entry 'enable' >> is > > functional. Reusing Ack > >> created to enable or disable EUD. >> >> To enable the eud the following needs to be done >> echo 1 >/sys/bus/platform/.../enable >> >> To disable eud, following is the command >> echo 0 >/sys/bus/platform/.../enable >> >> Signed-off-by: Souradeep Chowdhury >> --- >> Documentation/ABI/testing/sysfs-driver-eud | 7 + >> drivers/usb/common/Kconfig | 9 + >> drivers/usb/common/Makefile | 1 + >> drivers/usb/common/qcom_eud.c | 256 >> +++++++++++++++++++++++++++++ >> 4 files changed, 273 insertions(+) >> create mode 100644 Documentation/ABI/testing/sysfs-driver-eud >> create mode 100644 drivers/usb/common/qcom_eud.c >> >> diff --git a/Documentation/ABI/testing/sysfs-driver-eud >> b/Documentation/ABI/testing/sysfs-driver-eud >> new file mode 100644 >> index 0000000..14a02da >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-driver-eud >> @@ -0,0 +1,7 @@ >> +What: /sys/bus/platform/.../enable >> +Date: October 2021 >> +Contact: Souradeep Chowdhury >> +Description: >> + The Enable/Disable sysfs interface for Embedded >> + USB Debugger(EUD).This enables and disables the > > Debugger (EUD). This enables Ack > >> + EUD based on a 1 or a 0 value.