Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6316642imu; Sun, 2 Dec 2018 15:15:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/We/l1gYTJPlX41EpPZgCVXb6dhuujOpRRarqRQRK0RmgNH0UUf8IbMukFXap3hplErhfec X-Received: by 2002:a63:d208:: with SMTP id a8mr11273911pgg.77.1543792541798; Sun, 02 Dec 2018 15:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543792541; cv=none; d=google.com; s=arc-20160816; b=lOdQx3los3376qY/APlimUYSCjyFSvaWYR4BbUyeY7ZXAyhgcDrmjdruYNIwv6gg2b Qlrs0FBqaAyX8fi6NkjFD1k2XtYySFVLNQj93yo/doHzJLFtfRYb8S/ud3gGJZ6ISsW7 EYjLmc7rkcXETRY90Lg+ciz85plxo3bbLGcpkCfpMdk3tq7EILu8gX+LYSoM2XGgCOgO f5PoAlw0hk0FfuEWTFPjWFM/iUiIeQFnCEyCQHzfBprnD3JG7x5rTkbXgD/148rnEcod 8KAekaazO15+37a3bvl7xX5KjOYLS2kpRcxufUd4K1stPwvmo3H4/IVKe+dKzfqc5Erf Kn9g== 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:dkim-signature; bh=468YkyHmHjR8WB7h95DaFqwpn95HUihY+kX1qINkW4w=; b=b9WK3nOINa3/VLMJ9/B7mJ+B4MJGrM+dXwJcDZGI/5SdFxSxCxdzFU4A8Gd7CxPf/b Yzx+IypPnBdV28YX8a7/XmHIYNE6MTNKUcuSPhaOGHq24GReVwjOlHqu1Mhdu0v7MV8p G81KGkKEjxhZqNMDOoWdOkPeGzmHublXxzoukdOKtLggXMII/P7X/ZZR/FqVXC19Dzxu t8mBmwpiA0XJLA09NtXFupaQBSo0XIqp21eaj8WNa6g8FPA3B7Iffi/8A3f+8s3GRB3Q tNJGGu17COMjOgPNBj6pOY+WPzTJe4GsGdvs80Vv2zoNqZrrfkTooc5sfobcklrhSoiG GJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=U32Qj4dd; 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 d3si11550109pgu.437.2018.12.02.15.15.26; Sun, 02 Dec 2018 15:15:41 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=U32Qj4dd; 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 S1725816AbeLBXNs (ORCPT + 99 others); Sun, 2 Dec 2018 18:13:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58058 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbeLBXNs (ORCPT ); Sun, 2 Dec 2018 18:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=468YkyHmHjR8WB7h95DaFqwpn95HUihY+kX1qINkW4w=; b=U32Qj4ddjxP6zeVxMXnkZWsmj MErZQMTDjKPcO/r1Ym9+hxyRhSJAY4mnREWoh634gdPq2wJBlmpzFCsc01HYY5T0dw/lE49MRe3/M cgFHhH6tYQEw4SpSQTuMCsSxMHd4QZqWdbQm+AavGD3eDQVrZIW/5Jxwo5acEjJ0yNCKURkF/hP8K DYJI29etr7M3jzIrmsbntkADkVmge3sSI3+3ANGcQQseZjgsjAJ2VI/pmwo42fAAaKKfCIOzfBwbv gHmyea+5W+P/o1couyFrEubX9S77vG/BilklWIlZmUEihTlXZv2P+9jZVHj8JRUJwp7r+sw4LZLTq 0T/czN0TQ==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gTavZ-0005hw-6v; Sun, 02 Dec 2018 23:13:29 +0000 Date: Sun, 2 Dec 2018 15:13:28 -0800 From: Darren Hart To: Lubomir Rintel Cc: Mark Brown , Geert Uytterhoeven , Andy Shevchenko , Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 06/17] Platform: OLPC: Add XO-1.75 EC driver Message-ID: <20181202231328.GB23087@wrath> References: <20181116162403.49854-1-lkundrak@v3.sk> <20181116162403.49854-7-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116162403.49854-7-lkundrak@v3.sk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 05:23:52PM +0100, Lubomir Rintel wrote: > It's based off the driver from the OLPC kernel sources. Somewhat > modernized and cleaned up, for better or worse. > > Modified to plug into the olpc-ec driver infrastructure (so that battery > interface and debugfs could be reused) and the SPI slave framework. > > Signed-off-by: Lubomir Rintel > Hi Lubomir, You asked for some tips on how to incorporate the changes in a patch series like this. Keep in mind that each patch should create an independent small functional change. This makes it easier to review the patch and verify that what you said you were going to do matches what the patch does. For example, if you separate out the style, whitespace, ordering of declarations into an initial first patch, then all that noise is removed when the reviewer goes to check to implementation of one of the features below. This is a large patch, and should most certainly be broken up into several smaller patches. Do cleanups first, followed by functional changes. This ordering ensure that when a "git blame" is used in the future to understand why a given line is what it is, the first hit will be a functional change, and not a cleanup. > --- > Changes since v1: > - Cosmetic style changes; whitespace, ordering of declarations and > #includes, remoted extra comas from sentinels Please make this a separate change, possibly more than one, depending on how many of these there are. This will reduce the size of the subsequent patches, making them easier to review. > - Count the terminating NUL in LOG_BUF_SIZE > - Make olpc_xo175_ec_is_valid_cmd() return -EINVAL instead of -1 > on error > - Spell keyboard/touchpad in full for CHAN_KEYBOARD/TOUCHPAD messages > - Use a #define for PM wakeup processing time > - Log a message on unknown event > - Escape logging payload with %*pE > - Replace an open-coded min() > - Correct an error code on short read > - replaced PM callback #ifdefs with __maybe_unusedm SET_RUNTIME_PM_OPS > and SET_NOIRQ_SYSTEM_SLEEP_PM_OPS > - dev_get_drvdata() instead of a round-trip through platform device > - s/unsigned char x/u8 x/ in olpc_xo175_ec_resume() > - Use GENMASK() instead of 0xffff for the event mask > - Replace cmd tx/resp rx buffers with structures > - Turned suspend hint arguments into a struct, and tidied up the comment Just from these comments, each of these could be a separate patch. You can group related things together, or those that change the same line or function for example. Order them with cleanups / non-functional-changes first, followed by functional changes. > > Basically all of the above is based on the review by Andy Shevchenko. Andy, what was your intent for Lubomir here? From the above, this looks like it should be several patches to me. Thanks, -- Darren Hart VMware Open Source Technology Center