Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1475007ybk; Thu, 21 May 2020 07:45:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRTXCvMGR84mS7kJYPuN/QtFKddI+vIVCGY3R+xUkzHPReSVNKwTnTGCkwDFDBXXZwHqlG X-Received: by 2002:a17:906:13ca:: with SMTP id g10mr3860773ejc.433.1590072333933; Thu, 21 May 2020 07:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590072333; cv=none; d=google.com; s=arc-20160816; b=zfc3JHijBX2yBOcbyPDM1S12qfHZqTYy995LQ7GJMxEqiXHj8qiNzGlUwgQN/ZEJsM a3YF5W/cSHUYYNVJa8DnB545I071/+5VkgoIGNLVau4ahLI9dSBs16oSP5dwNitihVbv fTp8FxtPiMkAFnvWlcJeDZRC1O+W95m3dDt5NaqHtkXnRU0YGKUdhhBAY+srWj3a5Tjl duGRVwDva+vCjmwLpw8StDm9NfQW8dtRIJ9TuPp8pxpjHtybaAbjM6P7sthO1GzzfJIL POfC2/Ywgy3fynkOmjf8I3i/kv6rEjuicGjQ/BfAdR3yb/uSYPEYcgKFKHFAIRm5JogX mpvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tuQ1zvOklpezgOq1qrrrAXi9Q/2zL0O9meBuAgy373s=; b=R3fAr8O3zyJtt99TDKK5MNPOCpftO4q5LlPem2ZcfMHv6oa6SBLFiLYx+JzxwpQkxB po9C3yfzR4xtmomZOUqR/Dx1TLjQnHSoOKmTLQVv0Y09kLdCdjRakxjVX7Lv5q7RhCNl HLKEcGndEe8mq6KVJAI1N+cxtfxLztclyNTa5tjuyUsVftJPVz7gPjj8IYjTnxO0Gn8W qsVyMtU/eUoOtHCIMYsZ7votY3qnS4C4ouTnJMgW8ClzDs+v3uOYPENs6k7E1YOyJI3I ITONEmtxBMLI//On6AUor+osB0b3jgjLP6b1X6LE+EsRkTDKkYRy3fi0uRSkWireXs7a daRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hNauZCE4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si3280593edj.601.2020.05.21.07.45.10; Thu, 21 May 2020 07:45:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hNauZCE4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729860AbgEUOnp (ORCPT + 99 others); Thu, 21 May 2020 10:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728229AbgEUOnp (ORCPT ); Thu, 21 May 2020 10:43:45 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF582C061A0E; Thu, 21 May 2020 07:43:44 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id g1so8551581ljk.7; Thu, 21 May 2020 07:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tuQ1zvOklpezgOq1qrrrAXi9Q/2zL0O9meBuAgy373s=; b=hNauZCE4ZyQrnO0nntQayyVk53MtCYFx0x+QupMIZuQorwHuDn4bhd0+45d7gZ6d8m L6FJKZwUbwT0yCAebmlFe/U6MIDVfJOulUCJ9E6SQ5+CZAc5oTbh9r4VX1H+J+9/unKS OtVccceu5GPEqBPyaLM8ED/+C7SRnRPsQL+dDOic0gp0369C/z+gCWjmEsqcMLSXWCyR xny6xU29xdDdJPSNElcbiaSIP3X8p+JpzsMp8hNSzPEJra2Ys18vzOJkZcgtxG4AIRzr r4c9E/zTfdzTR9j8Bx5HE4BOlhs5/j7qSSM0Q7hagrta2JhNIsPXZXw0yNeOAqCIV5hp G74g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tuQ1zvOklpezgOq1qrrrAXi9Q/2zL0O9meBuAgy373s=; b=nf9WtUNQu5/kwZbTY0UUDsOyIc0GqrM5geapikU22pHO/ksvx9SCnlkKDMHP2I7h2J 75SD5ekFfD7TZwKik6HS8T5qpEZIfRU7NIZZHHQcbGc8mUCXJ9DS17CKPtdPi2aNOHZV ioiZ4H7Lb1M9AvqNKGB68q/iY50io9kVwrx4kHVu8hJ9mPnlEdNfxRU4O4S6TxuNv4Qg r4NtwX+7IKjIEd8Vn0mLNDbtbBt7mQyKLDKvNRzSbYIq5a4YR71m4bYwlJdeD8GBdK7Q Z725/3/iFoRg4wWyUUWzty9xEsHqYVSbBPgSVxmZWYvmPx14BbmME6z7ZTkMNRdAzR9L 5NPA== X-Gm-Message-State: AOAM531JqQV1ngvmiCCMbfa2mKTGBXGu3x9eneLr1I5KVzwmXEh5qjd8 4hl5+D6IVFO5zOozICpYoEt/p5USK2LieCtfP8w= X-Received: by 2002:a2e:6c0c:: with SMTP id h12mr5222291ljc.266.1590072223382; Thu, 21 May 2020 07:43:43 -0700 (PDT) MIME-Version: 1.0 References: <20200521110910.45518-1-tali.perry1@gmail.com> <20200521110910.45518-3-tali.perry1@gmail.com> <20200521142340.GM1634618@smile.fi.intel.com> <20200521143100.GA16812@ninjato> In-Reply-To: <20200521143100.GA16812@ninjato> From: Tali Perry Date: Thu, 21 May 2020 17:45:03 +0300 Message-ID: Subject: Re: [PATCH v12 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver To: Wolfram Sang Cc: Andy Shevchenko , Ofer Yehielli , Brendan Higgins , avifishman70@gmail.com, Tomer Maimon , kfting@nuvoton.com, Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, OpenBMC Maillist , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 5:31 PM Wolfram Sang wrote: > > Hi Tali, Andy! > > On Thu, May 21, 2020 at 05:23:40PM +0300, Andy Shevchenko wrote: > > On Thu, May 21, 2020 at 02:09:09PM +0300, Tali Perry wrote: > > > Add Nuvoton NPCM BMC I2C controller driver. > > > > Thanks. My comments below. > > After addressing them, FWIW, > > Reviewed-by: Andy Shevchenko > > Thanks, Andy, for all the review! > Highly appreciate your time and patience for a newbie :) > From a glimpse, this looks good to go. I will have a close look later > today. > > > > +#ifdef CONFIG_DEBUG_FS > > > > Again, why is this here? > > > > Have you checked debugfs.h for !CONFIG_DEBUG_FS case? I compiled both options. I removed the ifdef in most places, except in the struct itself. Users that don't use the debugfs don't need this in the struct. > > I wondered also about DEBUG_FS entries. I can see their value when > developing the driver. But since this is done now, do they really help a > user to debug a difficult case? I am not sure, and then I wonder if we > should have that code in upstream. I am open for discussion, though. The user wanted to have health monitor implemented on top of the driver. The user has 16 channels connected the multiple devices. All are operated using various daemons in the system. Sometimes the slave devices are power down. Therefor the user wanted to track the health status of the devices. > > > > +MODULE_VERSION("0.1.3"); > > > > Module version is defined by kernel commit hash. But it's up to you and > > subsystem maintainer to decide. > > Please drop it. I also think commit id's (or even kernel versions) are a > more precise description. will remove. > > Regards, > > Wolfram > BR, Tali