Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3678497imm; Wed, 5 Sep 2018 04:19:26 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdba7Lmuvdv/gyr6CM/9Z4qjSy/VVFQ8tJ2mwWaDsYxSRUOe55a3Sa4BEDOJIvLlnshlCPNQ X-Received: by 2002:a63:f344:: with SMTP id t4-v6mr9408564pgj.428.1536146366417; Wed, 05 Sep 2018 04:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536146366; cv=none; d=google.com; s=arc-20160816; b=L3dDJ+OevymwkV1V/TAo1PsnjiGCMiBPM79ARrJ8WNOZzJWDlGXyBcfseR8tzZ2z0x 2ci0UJwqhrg8RmlkGiTjs835SdZ0Mn/VhnyHtCpveZaw6Lc3e15kKmBJYFEF9pcRYwCa YeI4qhiYRkihx1nBc00vYEEh8DBkGSLc952qE0hMMzA2bo2eMv3XCrSwD3MoR9obUh7t r6GLTCFs2xuHXVKPnxlFOMyD9d+FiNlz9haiqm7Czz0PB7YzV4Spe3XQj5watXif7poo NI75yWZi6UHPesT7MeltVyJcuig90IhZtXiUXoZRYXmdGphaSmFg2g6CsqYv5fMUtXMB MgHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WWImAN9M6l4bo+vGw8HGSH9V4QzbW61kQv3Bwpc2r7I=; b=bio2AZbIem2RhJcWMKbl/5Wh9tC2K0fXKyK7fHDgAK8uk/KiB/ofdTNL2z0uWIJhwC RNS8ekKzTsJb3s8B9JIDh46mLn6qTOlWkF2+YtNzthfyGJ/pDffiHlVx32eUFIV5ZoHK ldFByAPrunVE2rnquKWXVi4zSDhI0CmWz0CW3ffdpdwTqx4lN6XHJ3bZILlMJDs8CL3P aYEr15utcjXYJiV4xrZPvp8bSWzcyiDZFdpCyP1LD+q2Co/dN6BJXZsUzX90Gf3sqpbx aEqUz3xxAmlx0+mYV+oz7YvzxBk+mAWp4SsDd06mgYJsOejETEqqP/HzxuwJDjtP8aql MKeA== ARC-Authentication-Results: i=1; mx.google.com; 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 w16-v6si1796370pgj.61.2018.09.05.04.19.10; Wed, 05 Sep 2018 04:19:26 -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; 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 S1727477AbeIEPrt (ORCPT + 99 others); Wed, 5 Sep 2018 11:47:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53378 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbeIEPrt (ORCPT ); Wed, 5 Sep 2018 11:47:49 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 762CCD5D; Wed, 5 Sep 2018 11:18:02 +0000 (UTC) Date: Wed, 5 Sep 2018 13:18:00 +0200 From: Greg KH To: Manu Gautam Cc: Prakruthi Deepak Heragu , 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 Message-ID: <20180905111800.GA30003@kroah.com> References: <1536096853-30473-1-git-send-email-pheragu@codeaurora.org> <1536096853-30473-3-git-send-email-pheragu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, greg k-h