Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp642232ybx; Fri, 1 Nov 2019 08:58:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwraAAmxlw89gYJcrz5u0/3SAmAmEEkyuObQU8xM/tiDxmdAVftkKM+3gBx8TyRY+EFoXa0 X-Received: by 2002:a17:906:4346:: with SMTP id z6mr3480626ejm.71.1572623899073; Fri, 01 Nov 2019 08:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572623899; cv=none; d=google.com; s=arc-20160816; b=VyYqbdFnl0ghBvbR5iad4hGVwl+NuUSFoQQUI5O0ZK3ohUpYMex94La2y4VL5QJYUd dd44eUSWCsq05YxQKHIJFByZcTk3qxcUZ9+w7PdTKLSaD4yrFGXHmMrKY1rzC7uFu1Hr fLEAR4lXBsE/mb1VZJ1ZODgzLPUERD4w3b5OHmo2xbq4ynv0pDW8YtlmPnYaqaXyRrDf m49K6swPShyWvpYNennMR2SVbUcflE2ZYrCcKdJNkPiY9wEc9zOIBYI+U6MsZpY27eEl dp3e94/t8fCcsoa4Ex68IfaBhM1giq465FrI4g9VFKbFOIeBzjpkQgLiadTeQOAhPHQx nmmg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=G6Gi14aOQYX+EWc8XUeNs7fzctr+Zx6quXzt5SkUgGE=; b=dAwKAFhAc0Yz8QvxDlxyfQeYxQjcsT/8QoqU9vLm8OD91WZgvT+5/2p6f5lp03FryC 7yr97GxsOlpxQqqXwmf8O/WhqlFN9d7MtlMNOXz7Kere4bpGg5znzcG8y0bIWWBW0vkO IcwLIqMvDRID0Ttdb7jW+rpL/VSu+lWd2QJfNp52uhEffK2lMYZoB3jufJNcPWV98NpZ 97jrwUuSN2D50LQo8bN+1btBWq/u8o1KWslEtPDEwLP2TpQARxHQwzLcr97BuPCjx2x+ KinAWHcp05wCz/hQZRDKBNvfXd5fuQJMJptGbSpH5+GqCzdmImmatInW/PUGzGkdMreb 0zAA== ARC-Authentication-Results: i=1; mx.google.com; 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 ce1si5831830ejb.0.2019.11.01.08.57.55; Fri, 01 Nov 2019 08:58:19 -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; 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 S1727991AbfKAPBp (ORCPT + 99 others); Fri, 1 Nov 2019 11:01:45 -0400 Received: from shell.v3.sk ([90.176.6.54]:53018 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727365AbfKAPBp (ORCPT ); Fri, 1 Nov 2019 11:01:45 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E7C2C400B5; Fri, 1 Nov 2019 16:01:40 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4EMX4ZocWg0t; Fri, 1 Nov 2019 16:01:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id B7EB4400BD; Fri, 1 Nov 2019 16:01:34 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id GPjCwwEgtuTK; Fri, 1 Nov 2019 16:01:34 +0100 (CET) Received: from belphegor (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 91BAE400B5; Fri, 1 Nov 2019 16:01:33 +0100 (CET) Message-ID: Subject: Re: [PATCH v2 0/9] Simplify MFD Core From: Lubomir Rintel To: Lee Jones Cc: Arnd Bergmann , Daniel Thompson , Mark Brown , Linus Walleij , Barry Song , stephan@gerhold.net, "linux-kernel@vger.kernel.org" , Linux ARM , Daniel Drake , James Cameron Date: Fri, 01 Nov 2019 16:01:32 +0100 In-Reply-To: <20191101090751.GH5700@dell> References: <20191021105822.20271-1-lee.jones@linaro.org> <20191021115339.GF4365@dell> <20191101090751.GH5700@dell> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1 (3.34.1-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-11-01 at 09:07 +0000, Lee Jones wrote: > On Mon, 21 Oct 2019, Lubomir Rintel wrote: > > On Mon, 2019-10-21 at 12:53 +0100, Lee Jones wrote: > > > On Mon, 21 Oct 2019, Lubomir Rintel wrote: > > > > > > > On Mon, 2019-10-21 at 13:29 +0200, Arnd Bergmann wrote: > > > > > On Mon, Oct 21, 2019 at 12:58 PM Lee Jones wrote: > > > > > > MFD currently has one over-complicated user. CS5535 uses a mixture of > > > > > > cell cloning, reference counting and subsystem-level call-backs to > > > > > > achieve its goal of requesting an IO memory region only once across 3 > > > > > > consumers. The same can be achieved by handling the region centrally > > > > > > during the parent device's .probe() sequence. Releasing can be handed > > > > > > in a similar way during .remove(). > > > > > > > > > > > > While we're here, take the opportunity to provide some clean-ups and > > > > > > error checking to issues noticed along the way. > > > > > > > > > > > > This also paves the way for clean cell disabling via Device Tree being > > > > > > discussed at [0] > > > > > > > > > > > > [0] https://lkml.org/lkml/2019/10/18/612. > > > > > > > > > > As the CS5535 is primarily used on the OLPC XO1, it would be > > > > > good to have someone test the series on such a machine. > > > > > > > > > > I've added a few people to Cc that may be able to help test it, or > > > > > know someone who can. > > > > > > > > > > For the actual patches, see > > > > > https://lore.kernel.org/lkml/20191021105822.20271-1-lee.jones@linaro.org/T/#t > > > > > > > > Thanks for the pointer. I'd by happy to test this. > > > > > > > > Which tree do the patches apply to? > > > > Or, better, is there a tree with the patches applied that I could use? > > > > > > Ideal. Thank you. > > > > > > http://git.linaro.org/people/lee.jones/linux.git/log/?h=topic/mfd-remove-clone-cs5535-mfd > > > > Thanks. My boot attempt ends up in a panic [1]: > > New patches have been drafted, reviewed and pushed to the same branch. > > Would you be kind enough to boot test them for me please Lubo? The branch Tested-by: Lubomir Rintel (OLPC XO-1) Here's a dmesg and partial sysfs listing indicating that the driver indeed bound correctly: https://paste.centos.org/view/3aa89258 > > TIA. Take care Lubo