Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp486409ybk; Wed, 20 May 2020 04:51:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOCTongPeLAl0urB+x5GvBNBdinT2BI3xypgvGG1pEjHBkizzjQffspT2qtXjvT3A/f6I0 X-Received: by 2002:a50:a9c4:: with SMTP id n62mr2858028edc.347.1589975476925; Wed, 20 May 2020 04:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589975476; cv=none; d=google.com; s=arc-20160816; b=bTgN2jCcTSk+3lZGpX5i0VwoATc6C8RahuqF7V6ImZKB9K7GWTKCmR4e5X1+5RpynJ ft8Lt7ImHVP17FGIUcHPzomssk6hMhCGcsV/nVv3G1Vpg55z/51mzWTEgLue661viA/+ m74MyUtQWo82JAuCvzlQUUcYdVJ5wx/5xGimps/NTbsbc4Xua5Ior3VXB8Pt90E7Sedr br2MsYFIoeKuzwEYjA/Ta5PHuc80rFWynDOVoriODxRCos9zCG3W3QoJ4uBJb/yP9bw0 OJx2a3UOkJorDgOHX7Vcb/nwrGUet0AXyIFs51akrTlcLFrasX+tTkXeqKdo/WQ4cBqd sPFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=3OpVKOn0ZRe7HzCnVSUWPgWjv3VMDukQE7EMO2gIL7c=; b=RNY+isTgYhTeGHn4Uo4Jwew8DiC5hyFLpVZjunBn4+fsOCVCXpBURGRmHJOdrvZJIJ h0JO61Yem/xPH4gg1iTASbdfkilsZ7hqHtfVZkfll+P0FDHIT88Y7BZ90/MB8abpyNSg TEEBLG+iEqq8bW1bGhAWma6PKZBuJdf0OpGaPZjnSjowwenf9Kfk4WkqhuQ1Lo4Ky/10 Te7DbEseaLUc8MB4z6PB+sGt6bO/MSOFg+56wUq5GgyWth6fKJJGZODsQpeXxAOFtAUY 8IDAt3WJHEWDl9jA7yCEc8/wz1sR0NUqzbKEJKIhkeEASlTnKjU898Ow9k2HM6VCUpek uDag== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr8si2054147ejc.593.2020.05.20.04.50.53; Wed, 20 May 2020 04:51:16 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbgETLt2 (ORCPT + 99 others); Wed, 20 May 2020 07:49:28 -0400 Received: from mga06.intel.com ([134.134.136.31]:34265 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbgETLt2 (ORCPT ); Wed, 20 May 2020 07:49:28 -0400 IronPort-SDR: luJ9WmqpTkppN5ANoXkKYFNr6zVaLQf4/WRuOkByLeWokAi01j5vhmVeqMd+cbIOMoG2bUJOB5 IUMiyNIW4IUQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2020 04:49:27 -0700 IronPort-SDR: a/+Fpg54o+8PTDC2WA+m5PdUJa0V8mJpZ3R5KEtl27Vp1YaBQPYo9Gd+f4hN621W9nP6OxLRAh AaEUA68Jxk4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,413,1583222400"; d="scan'208";a="253582839" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga007.jf.intel.com with ESMTP; 20 May 2020 04:49:23 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jbNDx-007pYn-Jd; Wed, 20 May 2020 14:49:25 +0300 Date: Wed, 20 May 2020 14:49:25 +0300 From: Andy Shevchenko To: Avi Fishman Cc: Tali Perry , ofery@google.com, Brendan Higgins , Tomer Maimon , kfting@nuvoton.com, Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , wsa@the-dreams.de, Linux ARM , linux-i2c@vger.kernel.org, OpenBMC Maillist , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v11 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver Message-ID: <20200520114925.GQ1634618@smile.fi.intel.com> References: <20200520095113.185414-1-tali.perry1@gmail.com> <20200520095113.185414-3-tali.perry1@gmail.com> <20200520102452.GP1634618@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 02:37:13PM +0300, Avi Fishman wrote: > On Wed, May 20, 2020 at 1:24 PM Andy Shevchenko > wrote: > > > > On Wed, May 20, 2020 at 12:51:12PM +0300, Tali Perry wrote: > > > Add Nuvoton NPCM BMC I2C controller driver. > > > > ... > > > > > +#ifdef CONFIG_DEBUG_FS > > > > Why?! > > It is made to save code size if CONFIG_DEBUG_FS is not defined? Nope (in cases I have commented on). Try again. > We see a lot of kernel code that is doing it. Cargo cult, okay. So, somebody should try to understand what they are doing. > So could you elaborate what is the problem? Problem 1: ugly code. Problem 2: some of the code is not guarded (seems never been tested with disabled debugfs). Problem 3: it's not needed. > > > +#include > > > +#endif -- With Best Regards, Andy Shevchenko