Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbaKFNOW (ORCPT ); Thu, 6 Nov 2014 08:14:22 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:58580 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbaKFNOU convert rfc822-to-8bit (ORCPT ); Thu, 6 Nov 2014 08:14:20 -0500 Subject: Re: [PATCH 4/5] of: Add old prop argument on OF_RECONFIG_UPDATE_PROPERTY Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-Type: text/plain; charset=windows-1252 From: Pantelis Antoniou In-Reply-To: Date: Thu, 6 Nov 2014 15:14:13 +0200 Cc: Rob Herring , Stephen Warren , Matt Porter , Koen Kooi , Greg Kroah-Hartman , Alison Chaiken , Dinh Nguyen , Jan Lubbe , Alexander Sverdlin , Michael Stickel , Guenter Roeck , Dirk Behme , Alan Tull , Sascha Hauer , Michael Bohan , Ionut Nicu , Michal Simek , Matt Ranostay , "devicetree@vger.kernel.org" , linux-kernel , Pete Popov , Dan Malek , Georgi Vlaev Content-Transfer-Encoding: 8BIT Message-Id: References: <1414528433-9650-1-git-send-email-pantelis.antoniou@konsulko.com> <1414528433-9650-5-git-send-email-pantelis.antoniou@konsulko.com> <20141105200129.B4438C41C40@trevor.secretlab.ca> To: Grant Likely X-Mailer: Apple Mail (2.1990.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Grant, > On Nov 6, 2014, at 14:46 , Grant Likely wrote: > > On Wed, Nov 5, 2014 at 8:08 PM, Pantelis Antoniou > wrote: >> Hi Grant, >> >>> On Nov 5, 2014, at 22:01 , Grant Likely wrote: >>> >>> On Tue, 28 Oct 2014 22:33:52 +0200 >>> , Pantelis Antoniou >>> wrote: >>>> The notifier now includes the old_prop argument when updating >>>> properties, propagate this API to changeset internals while >>>> also retaining the old behaviour of retrieving the old_property >>>> when NULL is passed. >>>> >>>> Signed-off-by: Pantelis Antoniou >>> >>> I'm still fuzzy on the need for this patch. Is this just an optimization >>> so that the property doesn't get looked up twice? Or is there a reason >>> when the oldprop really needs to be passed in explicitly? >>> >> >> In the case of overlay's applying a property change the old property has >> been already retrieved. Passing it as an argument saves us a traversal of the >> property list. >> >> On the original series were removal was supported, the old property was required >> since you can't find the old property anymore on the node (it was on another list). >> >> When we go back to revisit the removal case, that API is useful. > > Since we're not doing removal anymore, lets drop this patch. > Fine, I?ll have to rework the overlay patches however. > g. Regards ? Pantelis -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/