Received: by 10.223.185.116 with SMTP id b49csp899154wrg; Fri, 16 Feb 2018 08:58:01 -0800 (PST) X-Google-Smtp-Source: AH8x224k6WVYStIKY4D6gboV6i/Xmwyi09FKNgqfFHP78iAMyg92k3Dt6rJ4AUuMG08RmtIprR8i X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr6313581plt.368.1518800281056; Fri, 16 Feb 2018 08:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518800281; cv=none; d=google.com; s=arc-20160816; b=VT30WWe+30SFYM1Azx3cfETl3OdOwkvYn47qeQ1XowdIGO+JH2NrrdffP+Imn/PRix lMe/K+F0FhoBlEU09VSn5FjUuII21TYlZq8FDz1bkDvC14t+lL0ZlBfqDim5m3qzlMn7 b+MUncQkpdupHw/vfG8dGk6zpQRd7B9hsGppbKIWui2ZADaL/9SyIgAPYC0STgT9G3Cd kYJu8MzfSJ90mvs9dqOJdymT/nvs3rndmgjyV5/b2DGWN9I/lZABPpmkt1Einw/DRsqh 2y6UIBm79FFoJfX0wQIYnaSMLF6J0Z06lEamefB560625WAHSjrSVlGlFPvYkYs/gGP7 bVQw== 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=ttLkm9uiVJ+PINHxONWYXVqkPTr540Gydl3yDFL9/eU=; b=opXn+dzHfS0PodwS4J9e7e74z69SEytfP3lVl4jdaid4q4fds6yArIbTxEJthAjuqF utxQhG9CBIG435D5XGI9+nQRm3sxEbGhhN83ripxiS3w4Iu9ymOjjF1C9clGryf7+sNC 6TDup+svkxcvlJBzMcA3xmsZBMMpOTFMDAqCB56dtWf/PSR/0+cD+5yXDyd3iRIEhMGC zx3/wPTZRfIGoQNY/K0M0jpNsUVU6642Bg15CC12vJvM/RT/mOBOTjECnFKwIOAOpFKG ByOARW683aJe3kmMGck6m7o4QiuGlLs/59S3MOoJUrDp5qUffdW7rVMt6/H2AIKXOOID BRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=IgHVpA3U; dkim=pass header.i=@codeaurora.org header.s=default header.b=G86PJQbw; 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 o33-v6si3373843plb.772.2018.02.16.08.57.44; Fri, 16 Feb 2018 08:58:01 -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=IgHVpA3U; dkim=pass header.i=@codeaurora.org header.s=default header.b=G86PJQbw; 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 S1755753AbeBOUbP (ORCPT + 99 others); Thu, 15 Feb 2018 15:31:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:42460 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755739AbeBOUbN (ORCPT ); Thu, 15 Feb 2018 15:31:13 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B3B5A60585; Thu, 15 Feb 2018 20:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518726672; bh=n/mVM1I4OU9hFzd9q65LaLCPShkWJPqcBXZUn4LnOdk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IgHVpA3UuO2Pabh7XYcr4hKzV9GnEmFsHdPGpNYcvLDZRX0urGwIAtmY+jFlPw+VM /o4z8Aolqm6wh2Mysb8QRWIXfo8NTr3rDSPR8um9B6Y3Vqotr+B0dzUMdwRvcMaSpN JZG3GaTo0f1gCYPppIc0045/E9d3Pq0nSHIG+mNk= 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 B8AEB604BE; Thu, 15 Feb 2018 20:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518726671; bh=n/mVM1I4OU9hFzd9q65LaLCPShkWJPqcBXZUn4LnOdk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G86PJQbwYeU7wMqzar7TF6+B1KPHCS6sebU7CJ8lKPzg3NpBTht6pNawwy23Etcqv 1FzU2zG9klBCCP3bW2q57SvVDwJiy3xRM9/XxTupd9mk3XGG8ps7Hii7vrw2w8wr/f TxNScvPVL3ErUdRHJ7ITd7HHWpb9/JOJHOkFE+pU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B8AEB604BE 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:31:11 +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: <20180215203111.GD23714@codeaurora.org> References: <20180209165735.19151-1-ilina@codeaurora.org> <20180209165735.19151-2-ilina@codeaurora.org> <20180215202141.GC23714@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 Thu, Feb 15 2018 at 20:24 +0000, Thomas Gleixner wrote: >On Thu, 15 Feb 2018, Lina Iyer wrote: >> 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. > >Well checkpatch is not always right. > >> >> 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. > >Can anything of this be compiled with gcc < 4.3? > I don't see a reason why this would be compiled with a older GCC. I am okay with ignoring the checkpatch errors. I was just not sure if I should. Thanks, Lina