Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp307176pxb; Sat, 6 Mar 2021 00:11:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4+n3E2CKQWCtK7H4BekkCXwTxrtPoxPmn7S0aX6RkDyFpsNF0cAspgmO6xUx/+4zbqWGS X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr13127470edd.212.1615018281487; Sat, 06 Mar 2021 00:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615018281; cv=none; d=google.com; s=arc-20160816; b=OsJcDx0KrBua7diU8wycwlAZmNYXdQ17Ff+UH7OZMKWaA9dIlqBp3SE1+EABze2U9V aY/pRkH42QBf4oRapWNVzM8eApk4Oo+N4q01069YfEtJO+MMyOikd643nGhDjlxPQoOU 1EOaT8ETvsMbjHY0ZsOVfR+hok+j7LYY4e8lwOHw3YYZylRMfG3EIPy4aLbhfvzQSDMG Z/zv2d7+zLTZolXlBsbm1+/0AsaTOLKk1R33nboDDz+jBUKJwU6M86GJTt1ijqbe9waC KzZq4OKo4J8PP2Aym24C1mGmTqGnLklG6qkytvbnIi1/Ge1Y3YLD85bytMZofDLxieKi tpNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bD4R0gUdjlPyAEqrAqLD2+JzXjf9FMElAA38DTOn4lU=; b=OYFihDUW3ufwvLdsT2mTv0l3cV8UFxqODCpBrvupd7FeClM8eqG3TIOlEcpDIk4eqz XIAyJLgWgHqAlTc1maqIOx+CPmk/xqz6Eyx9S+r/RCNJCWGff0ldD5QO66BwU5eD0Zal dx3fIYDU1pOd9EEn8rutfDFVeGJjfxl5kLt+CwdmkHX4NfUpx36swzlkGhbVCR2r/63H U6S3fau3iyke8+eulFxBd7mJ65l7RX+4MG+sKa7TCU/GSU4EAZHfeE/TymS15g7kKe3O uuHq2pK2If5touYXa3qD5cR1mSjBamP2RoVHBESjwPuhCXhJ5YbQnmgwDSq5bPWsB4Yv aDGA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si3214968edn.84.2021.03.06.00.10.58; Sat, 06 Mar 2021 00:11:21 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbhCFIHB (ORCPT + 99 others); Sat, 6 Mar 2021 03:07:01 -0500 Received: from elvis.franken.de ([193.175.24.41]:48060 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbhCFIGV (ORCPT ); Sat, 6 Mar 2021 03:06:21 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lIRx3-0004K9-01; Sat, 06 Mar 2021 09:06:17 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 738F3C112A; Sat, 6 Mar 2021 09:00:07 +0100 (CET) Date: Sat, 6 Mar 2021 09:00:07 +0100 From: Thomas Bogendoerfer To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , "open list:BROADCOM NVRAM DRIVER" , Florian Fainelli , Vivek Unune , bcm-kernel-feedback-list , open list , kernel test robot Subject: Re: [PATCH V2 mips/linux.git] firmware: bcm47xx_nvram: refactor finding & reading NVRAM Message-ID: <20210306080007.GB4744@alpha.franken.de> References: <20210304072357.31108-1-zajec5@gmail.com> <20210305055501.13099-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 05, 2021 at 12:56:55PM +0100, Rafał Miłecki wrote: > On 05.03.2021 12:47, Philippe Mathieu-Daudé wrote: > > On Fri, Mar 5, 2021 at 11:16 AM Rafał Miłecki wrote: > > > On 05.03.2021 10:58, Philippe Mathieu-Daudé wrote: > > > > On Fri, Mar 5, 2021 at 6:55 AM Rafał Miłecki wrote: > > > > > > > > > > From: Rafał Miłecki > > > > > > > > > > 1. Use meaningful variable names (e.g. "flash_start", "res_size" instead > > > > > of e.g. "iobase", "end") > > > > > 2. Always operate on "offset" instead of mix of start, end, size, etc. > > > > > > > > "instead of a mix" > > > > > > > > > 3. Add helper checking for NVRAM to avoid duplicating code > > > > > 4. Use "found" variable instead of goto > > > > > 5. Use simpler checking of offsets and sizes (2 nested loops with > > > > > trivial check instead of extra function) > > > > > > > > This could be a series of trivial patches, why did you choose to make a mixed > > > > bag harder to review? > > > > > > It's a subjective thing and often a matter of maintainer taste. I can > > > say that after contributing to various Linux subsystems. If you split a > > > similar patch for MTD subsystem you'll get complains about making > > > changes too small & too hard to review (sic!). > > > > Fine. MTD subsystem developers are probably smarter than I'm :) > > > > > This isn't a bomb really: 63 insertions(+), 48 deletions(-) > > > > Too many changes at once for my brain stack doesn't mean others are > > willing to review it. But to me that means each time I'll have to pass over > > it while bisecting or reviewing git history I'll suffer the same overflow. > > Anyway, matter of taste as you said. > > If I hear another voice for splitting this change into smaller patches > I'm 100% happy to do so. Honestly! > > I just don't know if by splitting I won't annoy other people by making > changes too small. > > Please speak up! :) please split it. IMHO the current is patch is hard to review, because of the different changes mixed together. Thank you. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]