Received: by 10.223.185.116 with SMTP id b49csp768141wrg; Fri, 16 Feb 2018 06:57:26 -0800 (PST) X-Google-Smtp-Source: AH8x227pW2lACVcjwmf8R6zgmsTLUd6QNhoJL6VSF9z1MwXE1M8qmsZZ4a4++KADQzzsndKDxuhh X-Received: by 10.99.124.2 with SMTP id x2mr5453845pgc.184.1518793046434; Fri, 16 Feb 2018 06:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518793046; cv=none; d=google.com; s=arc-20160816; b=IRRKLMWRc32hMrMQkCW3liQTShI/Tgrnyh8wlUNhhJdYRPz1OXH4kpcn93ateT+VCT a6RXc7QflHWlY6vkKJS0GEDU9P6NUkLInV3G1MeRSrpyGXS5NzHpJM4Yj6XJxSrnPxVV M2mrK/EFG2q5qEdMEEWdSPPGcJfGriESFPMM/JeGFdQICIDqHeY0ctaMU4yMQM582aVf LCMgET0GSYUSjpHYyR/4Fl2ykQKRIAU2uYqmgyZ7YKfTrmgiykZdro/iNb2c49j2/7Yo cJnzU1xVRY+esia0WpChgdTrzfXgC83N7UkkzYeSUF+cKHK4P2hnCH8pQTKZf2KYtBOj QEtQ== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=AK83a37t6r50mKgb80Vu63TQqrgjG+BoHgcePmTublo=; b=wiKJKrGEmiuSh14j9N6CeV+smltj9ZjTlDCN0EfFCXW95N9Np0+HGS0rRNgmX4OWFI qsIZaFmovGwLji9Xj4/ADJ41iot/w4jyEPDBwAdjLWlb94QOPF5g6tDsnu8B5pXLgT4L KuhjdYRgvmdVjsaxICXSUaphXbK8q90poIpcG32OJSla3BLl1pd4w50ri8mibcm9OZ19 v7PdQzdEdFkm8dje8p9fzL+KaKK45fh5WQXa5lfUPK/Oyu1YuaiXH8vj3BNryO3QjXdy kdMSB5trnKD7tm89PxiRWZuDHpHqkbVhexV4BeeK4ivlvFIrS24e//IF/fOAYUn2Simq 8GsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=I/9WEoQH; dkim=pass header.i=@codeaurora.org header.s=default header.b=TCmx8L88; 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 y10si1928992pgq.548.2018.02.16.06.57.12; Fri, 16 Feb 2018 06:57:26 -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=I/9WEoQH; dkim=pass header.i=@codeaurora.org header.s=default header.b=TCmx8L88; 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 S1033889AbeBOUVp (ORCPT + 99 others); Thu, 15 Feb 2018 15:21:45 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:40552 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033275AbeBOUVn (ORCPT ); Thu, 15 Feb 2018 15:21:43 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 603EA60585; Thu, 15 Feb 2018 20:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518726103; bh=u1VNYf4vq2kN999RDYIdQ7idOfrovhSfaVCQdiCL1Y0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I/9WEoQHe9STAYOTChQS0Ns84ZWVHv5VivE6IbgYWwHtCdfc3mWijWyRzZMiUEw3z 60ehUusEs9jyLyMqx537U3sgqiakxdPVx4AH9qgUebNE7RQBw1euw50eXeNlOiFHRL GbSu2k4sgpvfB+bZKzxD+ObpUXewro/LZC5DuW0k= 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 localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 582BD60585; Thu, 15 Feb 2018 20:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518726102; bh=u1VNYf4vq2kN999RDYIdQ7idOfrovhSfaVCQdiCL1Y0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TCmx8L88h/7MGvHY1NdEb0poxXQEEHHViadJb20OWjIiiK9sJAg8WDa9xRTLbpB/7 rTrU5S58EUQEUZp5wG0fG8ejWvYCBSdWMBlEabhSxx2EZaoqrIHPHYwH3qUrAMq453 Y0ET3UX/kNoBvuc+xOHUvZmNWSeGPS+jRCe/zY+g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 582BD60585 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=ilina@codeaurora.org Date: Thu, 15 Feb 2018 20:21:41 +0000 From: Lina Iyer To: Thomas Gleixner Cc: jason@lakedaemon.net, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, asathyak@codeaurora.org Subject: Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs Message-ID: <20180215202141.GC23714@codeaurora.org> References: <20180209165735.19151-1-ilina@codeaurora.org> <20180209165735.19151-2-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12 2018 at 13:40 +0000, Thomas Gleixner wrote: >On Fri, 9 Feb 2018, Lina Iyer wrote: >> +enum pdc_irq_config_bits { >> + PDC_POLARITY_LOW = 0, >> + PDC_FALLING_EDGE = 2, >> + PDC_POLARITY_HIGH = 4, >> + PDC_RISING_EDGE = 6, >> + PDC_DUAL_EDGE = 7, > >My previous comment about using binary constants still stands. Please >either address review comments or reply at least. Ignoring reviews is not >an option. > >Aside of that I really have to ask about the naming of these constants. Are >these names hardware register nomenclature? If yes, they are disgusting. If >no, they are still disgusting, but should be changed to sensible ones, >which just match the IRQ_TYPE naming convention. > > PDC_LEVEL_LOW = 000b, > PDC_EDGE_FALLING = 010b, > .... > > Checkpatch doesn't like binary constants. I guess I will need to keep the enum definitions in hex or decimal. I will remove the binary from the comments though. commit 95e2c6023b0e4c8499fb521697f79215f69135fe Author: Joe Perches Date: Wed Jul 3 15:05:20 2013 -0700 checkpatch: warn when using gcc's binary constant ("0b") extension The gcc extension for binary constants that start with 0b is only supported with gcc version 4.3 or higher. The kernel can still be compiled with earlier versions of gcc, so have checkpatch emit a warning for these constants. Restructure checkpatch's constant finding code a bit to support finding these binary constants. Signed-off-by: Joe Perches Suggested-by: Andrew Morton Cc: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Thanks, Lina