Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758614AbeAIOsV (ORCPT + 1 other); Tue, 9 Jan 2018 09:48:21 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:34543 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758469AbeAIOsT (ORCPT ); Tue, 9 Jan 2018 09:48:19 -0500 Date: Tue, 9 Jan 2018 15:48:13 +0100 From: Andrew Lunn To: Russell King - ARM Linux Cc: Geert Uytterhoeven , "David S . Miller" , Florian Fainelli , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: Fix phy_modify() semantic difference fallout Message-ID: <20180109144813.GC724@lunn.ch> References: <1515496281-10988-1-git-send-email-geert+renesas@glider.be> <20180109141008.GD27447@lunn.ch> <20180109142248.GG17719@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109142248.GG17719@n2100.armlinux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > > I took a quick look at the uses of phy_modify(). I don't see any uses > > of the return code other than as an error indicator. So having it > > return 0 on success seems like a better fix. > > I'd like to avoid that, because I don't want to have yet another > accessor that needs to be used for advertisment modification (where > we need to know if we changed any bits.) > > That's why this accessor returns the old value. Hi Russell where exactly is this use case? I've not found it yet. I can understand your argument. But how long it is going to take us to find all the breakage because the return value has changed meaning? The trade off is adding yet another accessor vs debugging and fixing the repercussions. I think i prefer not breaking existing code. Andrew