From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 2/2 v2] net/smsc911x: Add regulator support Date: Wed, 26 Oct 2011 14:36:07 +0100 Message-ID: <20111026133607.GB2325@opensource.wolfsonmicro.com> References: <1319627104-7779-1-git-send-email-linus.walleij@stericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, Steve Glendinning , Mathieu Poirer , Robert Marklund , Linus Walleij To: Linus Walleij Return-path: Received: from opensource.wolfsonmicro.com ([80.75.67.52]:33658 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932742Ab1JZNgJ (ORCPT ); Wed, 26 Oct 2011 09:36:09 -0400 Content-Disposition: inline In-Reply-To: <1319627104-7779-1-git-send-email-linus.walleij@stericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Oct 26, 2011 at 01:05:04PM +0200, Linus Walleij wrote: > From: Robert Marklund > > Add some basic regulator support for the power pins, as needed > by the ST-Ericsson Snowball platform that powers up the SMSC911 > chip using an external regulator. Reviewed-by: Mark Brown but it does look like the code could be simplified with the regulator_bulk API - it'd mean you wouldn't need to do per regulator API calls and would do all your unwinding if the second operation fails.