Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755001AbdIHOVy (ORCPT ); Fri, 8 Sep 2017 10:21:54 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:45230 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbdIHOVw (ORCPT ); Fri, 8 Sep 2017 10:21:52 -0400 From: Vivien Didelot To: Greg Kroah-Hartman Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Egil Hjelmeland , John Crispin , Woojung Huh , Sean Wang , Nikita Yushchenko , Chris Healy Subject: Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree In-Reply-To: <20170828191748.19492-3-vivien.didelot@savoirfairelinux.com> References: <20170828191748.19492-1-vivien.didelot@savoirfairelinux.com> <20170828191748.19492-3-vivien.didelot@savoirfairelinux.com> Date: Fri, 08 Sep 2017 10:18:27 -0400 Message-ID: <87shfxxoi4.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 405 Lines: 14 Hi Greg, Can I ask for a quick review of this patch as well? It's the one adding the boilerplate for a single debugfs file, and I'm pretty sure it can be reduced somehow. Also more important, you will notice what seems to be a bug to me: I can read or write a file even if I didn't mask the corresponding mode, hence the double check in dsa_debugfs_show and dsa_debugfs_write. Thanks, Vivien