Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4545399imm; Tue, 11 Sep 2018 13:41:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdavOfdZTT0c+f60CLjqIrLC3w0Cj7M/4V3VXiDoqcykIotyXkxZzFjFjOgo/3oiNY1MAysg X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr29611098pgc.367.1536698485599; Tue, 11 Sep 2018 13:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536698485; cv=none; d=google.com; s=arc-20160816; b=GbKeRB25ted6K+UFmeNrj9zoAFTq6VKD7y6hCgFl8qUueBb+w7V3W4iyyvU35B5W9y Hw+foXa1+8G60j8S2gnKodP3mgDFHhmoU5EHNTzuMYxwGgKFc4Dc9/xgpWv9MfspYGah FHZUDCcRoJytchBFzSXmFnaIEBcJ3nFdWh0t2v2o2FlEB2RgOCoi/r8mQhAFXzhr64vj F8I76CBqkYm+yaPsfDXzc+IZBD0nbmFbufw+kuCU0OMeINmTwPhyIgp/89Yz/2klbaJk QlgWSVh0roDge8S9/APlXxNSQbH0+TK8Pcr3wVwBm8mneCs6q8i1XWgozrft8LepO3VK kSeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=3wpATyC2rPh7i2ORv7wIUI+snZXA41gT5Y1yjKNjRds=; b=wE/hdhh0cZTepUScvMDYwTgwDtyjcQyCDvSD9uDHGp77dlWgwAiTyOQ8t1VdsL79rZ OCwiibyjUSweIwci7id9LXwxSVeOVSE8u8aPTT+mMX0foGAjLpTpsD0yAmPYQW5/0gH7 5OR1z2z/hIwRLREaVs0kZOmyLmLoagi6LO5hqlP5n/JQhVFq598NwEwgQkUELahbHDBM XHY/Y/XRlXPkFLfmHqRSs008HkcbXeqKImo87cBZnjfLsMXCP7BUSeFydAFK4R40tH8h 99iD/McXZsDrGRs7RKZuhkZWAoUugVfh6+bVOD2uX3prEIjNJuw73e4AOCXBpH70eSiZ YXRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=XtZMgZLG; dkim=pass header.i=@codeaurora.org header.s=default header.b=XPzIolQI; 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 b87-v6si22424280pfm.5.2018.09.11.13.40.40; Tue, 11 Sep 2018 13:41:25 -0700 (PDT) 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=XtZMgZLG; dkim=pass header.i=@codeaurora.org header.s=default header.b=XPzIolQI; 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 S1727675AbeILBlV (ORCPT + 99 others); Tue, 11 Sep 2018 21:41:21 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42646 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbeILBlU (ORCPT ); Tue, 11 Sep 2018 21:41:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 35798607C6; Tue, 11 Sep 2018 20:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536698420; bh=bm6YGDI5aHm7L9BhLRKhwEWtg/w7tozyNjfyBTBWUxU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XtZMgZLGd1+yyR0y6fSAfe7IfnC8oCO8g+qN7jzvF6FlHYAxNkBJk5TdLaowsYpiS 7gM+aLhgfrLcgsSHvTRQyDFS9I+RFRWwLFUYoa8S1sXcmgUYcl9UiEvLMJeC1iR0HY qspO2CDFcdWSe8jUtJkU6bbX/S47rLaVwm4892Lw= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id C2F09607BD; Tue, 11 Sep 2018 20:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536698419; bh=bm6YGDI5aHm7L9BhLRKhwEWtg/w7tozyNjfyBTBWUxU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XPzIolQIsxoi+QgYj/fgm78wjVlZDe5IXG4I/PMH0oFH/ky9MGFSkyTrkzJLuU2sJ U1kUGdYZcDOve++4/T3QRxj3hqvgxh9f/8Gj1XxM2IgFf5/pv70qsuM2ymoIAe+gZQ 8Wbh0nXjr09a2tbol74Fteq7zF7pYSODla5IJr4w= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 11 Sep 2018 13:40:19 -0700 From: pheragu@codeaurora.org To: Greg KH Cc: Manu Gautam , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ckadabi@codeaurora.org, tsoni@codeaurora.org, rnayak@codeaurora.org, bryanh@codeaurora.org, psodagud@codeaurora.org, Satya Durga Srinivasu Prabhala Subject: Re: [PATCH v2 2/2] Embedded USB Debugger (EUD) driver In-Reply-To: <20180905111800.GA30003@kroah.com> References: <1536096853-30473-1-git-send-email-pheragu@codeaurora.org> <1536096853-30473-3-git-send-email-pheragu@codeaurora.org> <20180905111800.GA30003@kroah.com> Message-ID: X-Sender: pheragu@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-05 04:18, Greg KH wrote: > On Wed, Sep 05, 2018 at 03:01:26PM +0530, Manu Gautam wrote: >> Hi, >> >> >> On 9/5/2018 3:04 AM, Prakruthi Deepak Heragu wrote: >> > Add support for control peripheral of EUD (Embedded USB Debugger) to >> > listen to events such as USB attach/detach, charger enable/disable, pet >> > EUD to indicate software is functional. >> > >> > Signed-off-by: Satya Durga Srinivasu Prabhala >> > Signed-off-by: Prakruthi Deepak Heragu >> > --- >> > drivers/soc/qcom/Kconfig | 12 ++ >> > drivers/soc/qcom/Makefile | 1 + >> > drivers/soc/qcom/eud.c | 338 ++++++++++++++++++++++++++++++++++++++++++++++ >> > 3 files changed, 351 insertions(+) >> > create mode 100644 drivers/soc/qcom/eud.c >> > >> > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig >> [snip] >> > + >> > +#define EUD_ENABLE_CMD 1 >> > +#define EUD_DISABLE_CMD 0 >> >> Why not use module param as boolean? I mean zero to disable and >> non-zero to enable? > > Never use module parameters on new code, as it's really hard to ever > change them. It also doesn't work for multiple devices of the same > type. > If not for module_param, do you suggest we use sysfs? module_param also provides a facility to control these parameters through command line too. If we can't use module_param, do you expect us to use __setup(..) API? > thanks, > > greg k-h Regards, Prakruthi Deepak Heragu