Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1084942ybi; Fri, 12 Jul 2019 09:26:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLcCi6+e+7dFjPeTi7pcQXV9K1MMm4RH6MLOsptlS30cvWTi17G6nnENbNG3QX1lGlepMi X-Received: by 2002:a17:90a:710c:: with SMTP id h12mr12526215pjk.36.1562948776363; Fri, 12 Jul 2019 09:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562948776; cv=none; d=google.com; s=arc-20160816; b=ZpETuKIXzdcvHbBgl2vT94MYrnuMMQLwec3oFpGN8UIF/0heg4CqfOR5Xg1DSpcGkf lcY4chxYVv2bT0ORk7Vzt0eR9heWoeo56b6+vXzb6eKesk6FELBZjODe5Ex99+6fRZz+ JYhk4rXJmryco+ykBQR6IKF8InTTAL8SV+FbzPPa3u55sX+iWljPfJE+y2eNa6oeHBPb W6m0jdpfIxwaFj/WHURA3wFRl7OgqFkQKddk2h3cvBhgT3MvHTRAm0UnI47l3ehvDg/g Owga1yUDL2gEDw5elL7cqZ/T40Ic9WCbhzIIsTsC98inSvkZkg969M6CShqBiRxmO5c3 I/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8YX2LaoIpYXot2QMtvHwy8R8N2TUvBM9RDNiIQ4cQ7Q=; b=ab2iTML1hsl17KLw+lCKG6YaNCSa7kvCyEYwXFe6BUGQEJ0BVcyyaz09WI/pmrM5LF cQLbjZj8qEeiBvL3npwlWhq0EkxP4rMn+mls0lkc7GzcKtOzUr74llBfSvZJ1s/dm5q0 IGF2wsOKaHYhVqnT3Y/ev3Vaz+/ANofw9UuN0TYnta+I72p3aqv/B84LgxgYsPqBJVhs 2YFtwF48sTgY0YQrw7/NhmeYmahoUIgBqlQ7/0mN347T/tUsI5D3PhYUp4d+FmsZMvrR uyRlpRERshYSMc2tjTORKEBYwt7lTa4/JGhiftWLebqeJAJBnvoln29plmU+03Ohc9Sg 86ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nltokVSS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w1si8037611pll.257.2019.07.12.09.26.00; Fri, 12 Jul 2019 09:26:16 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=nltokVSS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727226AbfGLQXv (ORCPT + 99 others); Fri, 12 Jul 2019 12:23:51 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39768 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbfGLQXu (ORCPT ); Fri, 12 Jul 2019 12:23:50 -0400 Received: by mail-lj1-f195.google.com with SMTP id v18so9888775ljh.6; Fri, 12 Jul 2019 09:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8YX2LaoIpYXot2QMtvHwy8R8N2TUvBM9RDNiIQ4cQ7Q=; b=nltokVSSN/p/Xkq4jRStuN4Lk6uX7ML12OYVy4WMZHboGjVH5zflEh5vOBKm3BAFs1 7N0nc0uuadGFPHi7NcI6dYRDU+LyFG6K6hsnQF0mGD/QC9lY8Xnr0UPWBwayvB8V4e+e hLON9HJcfPfaQ4O6CAPQlsrDbSFvRbKrCUP8QS9fOxWn6gEpjfVH8bVs5HwzhpDkIkao xXp3tdv1I/5AojtEDHVDj7NLqvajgZyzH4mLRg9EY9ET6t6x+BSQPtjtJeIVBpDQYUyv cWEYG0ZKwcf+HQ+w10g+gOGCTHuBfgAMYQuKrSGGy0PTcfYLEYL63nj8tY4KgW+IMUlg pMTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8YX2LaoIpYXot2QMtvHwy8R8N2TUvBM9RDNiIQ4cQ7Q=; b=itWCDz4nGSoTS9EfEsHX3ZhkbZVrL2nJJMjlMIejv7eFvVHuqvucaGViKwiqDGkkMZ SW6Pp/k3vS8zWnBX6jH0UTIcKNePSuDIePSYuw0zOWeTV8nxty6rXgvYY/AZstzjaEB3 hNF0JBUJMX40zXCx0qBz1pK7Np50spBt1f7mp/BxEhnWpDtyeHXBdcZBa9A0ydiYyKkQ ciwEoGMHHjGMmYBy1dIUZC7JO2GCGuKf2ebEHA5aOyAlbRFUuG7oV9XpjI8RI21QHK1Q S1NeKdq4qDFYxjg2pz+rrVCfBJYYimEHcCqos6inwXXriWxvUV2Y4hNd2/R0JCSdQ1pd IM3Q== X-Gm-Message-State: APjAAAVA8VtnOdyP9ZT3ollnsD7oGDM7zrlorr17JUKrT0P6I/7fsELo nbpAckkj8L/UzFZ1+ohL/UxnZelN X-Received: by 2002:a2e:4794:: with SMTP id u142mr6521643lja.222.1562948627718; Fri, 12 Jul 2019 09:23:47 -0700 (PDT) Received: from [192.168.2.145] (ppp79-139-233-208.pppoe.spdop.ru. [79.139.233.208]) by smtp.googlemail.com with ESMTPSA id h3sm1549158lja.93.2019.07.12.09.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2019 09:23:46 -0700 (PDT) Subject: Re: [PATCH v2 1/6] ARM: tegra: Remove cpuidle drivers To: Jon Hunter , Thierry Reding , Peter De Schrijver , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20190711031312.10038-1-digetx@gmail.com> <20190711031312.10038-2-digetx@gmail.com> <73781434-d25a-b17b-aacb-95ace5ac5f95@nvidia.com> From: Dmitry Osipenko Message-ID: <9d79ed3e-a37f-af9c-0696-31dc33bbdefd@gmail.com> Date: Fri, 12 Jul 2019 19:23:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <73781434-d25a-b17b-aacb-95ace5ac5f95@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 12.07.2019 12:39, Jon Hunter пишет: > > On 11/07/2019 18:03, Dmitry Osipenko wrote: >> 11.07.2019 12:26, Jon Hunter пишет: >>> >>> On 11/07/2019 04:13, Dmitry Osipenko wrote: >>>> Remove the old drivers to replace them cleanly with a new one later on. >>>> >>>> Signed-off-by: Dmitry Osipenko >>>> --- >>>> arch/arm/mach-tegra/Makefile | 13 -- >>>> arch/arm/mach-tegra/cpuidle-tegra114.c | 89 ----------- >>>> arch/arm/mach-tegra/cpuidle-tegra20.c | 212 ------------------------- >>>> arch/arm/mach-tegra/cpuidle-tegra30.c | 132 --------------- >>>> arch/arm/mach-tegra/cpuidle.c | 50 ------ >>>> arch/arm/mach-tegra/cpuidle.h | 21 --- >>>> arch/arm/mach-tegra/irq.c | 18 --- >>>> arch/arm/mach-tegra/irq.h | 11 -- >>>> arch/arm/mach-tegra/pm.c | 7 - >>>> arch/arm/mach-tegra/pm.h | 1 - >>>> arch/arm/mach-tegra/reset-handler.S | 11 -- >>>> arch/arm/mach-tegra/reset.h | 9 +- >>>> arch/arm/mach-tegra/sleep-tegra20.S | 190 +--------------------- >>>> arch/arm/mach-tegra/sleep.h | 12 -- >>>> arch/arm/mach-tegra/tegra.c | 3 - >>>> drivers/soc/tegra/Kconfig | 1 - >>>> include/soc/tegra/cpuidle.h | 4 - >>>> 17 files changed, 5 insertions(+), 779 deletions(-) >>>> delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra114.c >>>> delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra20.c >>>> delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra30.c >>>> delete mode 100644 arch/arm/mach-tegra/cpuidle.c >>>> delete mode 100644 arch/arm/mach-tegra/cpuidle.h >>>> delete mode 100644 arch/arm/mach-tegra/irq.h >>> >>> By removing all the above, it is really hard to review the diff. Is >>> there any way you could first consolidate the cpuidle drivers into say >>> the existing arch/arm/mach-tegra/cpuidle-tegra20.c and then move to >>> drivers/cpuidle? >> >> I'm afraid that it will make reviewing even more difficult because >> everything that is removed here is not returned in the further patches. >> The new driver is based on the older ones, but I wrote it from scratch >> and it's not only looks different, but also works a bit different as you >> may see. >> >> Could you please clarify what exactly makes it hard to review? The diff >> looks pretty clean to me, while squashing everything into existing >> driver should be quite a mess. > > Ideally a patch should standalone and can be reviewed by itself. > However, to review this, we need to review patches 1, 2 and 3 at the > same time. So IMO it is not that convenient from a reviewers > perspective. Furthermore, patches 1 and 3 are large and so easy to miss > something. > > Is there really no way to have a patch to combined the existing drivers, > then a patch to convert them into the newer rewritten version you have > implemented, then move the driver? Probably I spent a bit too much time with that code, so now yours suggestion looks to me like an unnecessary step. But I will try and see how it goes, at least it should be possible to break down the patch 1 a bit more, hopefully it will help to better understand what's going on in the further patches if you're not familiar or don't remember how it all works.