Received: by 10.213.65.68 with SMTP id h4csp722165imn; Wed, 4 Apr 2018 06:14:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TrKLjSvFrKijsQi3yBEHLPOilLDAx36d9XhNXGnCmRSNxmIbJLa7F4kh7L8zCN1o5y78/ X-Received: by 2002:a17:902:7c96:: with SMTP id y22-v6mr11540441pll.347.1522847681309; Wed, 04 Apr 2018 06:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522847681; cv=none; d=google.com; s=arc-20160816; b=EbGzIdv0rgxxw5KPn5b/JKH8FM374o89jbsFbQAT2bz3IUqf6VD0HJc2k2Fxdr6vJq 238fNzUmc/UELZQCN6lgnSdPraxSWJMQe04SPXJ34Hz/xwvwa502Ojq4vjvWYCRetClk jirx0EwCyVY5RIgl4SpjlcMh4EHxk/PH77uhuK3QQ2nRxQHnI302/QGlWVNXgsb/Jsyl y7wFvHo7SnPbtoy/oVQwiLWkA56KKROS1YS++AOOCMfuSQaEhggijwb5epOlQcG1Hdjl J453Q1WVzIKJYb+9soWrL/ZIh8m3kDTbX6Hq5DgbjeADGcg8lCexO7rXuIAL/UBBgo7F LsUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5Rgs/hpVCxiQyTzB6X5oks+qdXUFXcS5l63YYSVTbY0=; b=mLyc+oOT5tQefmB2pJEfBmY/f4tB9XHbuwnQu/w//qiR8udhWy+6+12YFtdMHLCG7E f8ATgehWQONHKyMfZDGtbXTCgrYJkBk8aHy3mLIU/PfWiN33iiyH7oi1appNg1P+/tGl Q1Cpd8MZiRQk0Wb0D+8EjTySjzNI+8UywtRsZmVOmJbQUm7Xmje9lOXDtk0oyhIYtET8 +I8eN/zS/a8keeEoaSPclr5yBc9ddbSeZJDi5CUCAlsuRot3B6V2pq9ykfKR5fpSjo1V eQjaXDSbSYEayreAEn2boOl/A36K0TiFaAqGnHY7GOLkOJbe64DUkDoNMM59tNhtFEbC X3gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OfDK+UhB; 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 u83si3582770pgb.662.2018.04.04.06.14.26; Wed, 04 Apr 2018 06:14:41 -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=@lunn.ch header.s=20171124 header.b=OfDK+UhB; 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 S1751268AbeDDNNG (ORCPT + 99 others); Wed, 4 Apr 2018 09:13:06 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50903 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbeDDNND (ORCPT ); Wed, 4 Apr 2018 09:13:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=5Rgs/hpVCxiQyTzB6X5oks+qdXUFXcS5l63YYSVTbY0=; b=OfDK+UhB1kkYFxheFn51ZQfCMDCq1VrYnOV1Na6gqqvyycuy25gqAll8fUVcQW5sCEdZhhQnC0LFr/P0DbGOzE/zzC9IOHSRNRib3iXEINTnLeWonu8j8KsP5o5oDKHZa2wipcpL0RZriTdngTkdBlnh91zKEC4mDbY0y9Irx+Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f3iDP-0005vD-6d; Wed, 04 Apr 2018 15:12:39 +0200 Date: Wed, 4 Apr 2018 15:12:39 +0200 From: Andrew Lunn To: Tim Harvey Cc: Lee Jones , Rob Herring , Mark Rutland , Mark Brown , Dmitry Torokhov , Wim Van Sebroeck , Guenter Roeck , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, Randy Dunlap , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 2/4] mfd: add Gateworks System Controller core driver Message-ID: <20180404131239.GD20869@lunn.ch> References: <1522250043-8065-1-git-send-email-tharvey@gateworks.com> <1522250043-8065-3-git-send-email-tharvey@gateworks.com> <20180403164715.GA5676@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > What about the 'reset' functionality? Is there something in the power > supply API for hooking in a GPIO based power switch (in my case it > would be i2c) as I would think that would be common for ATX supplies? > I didn't see anything in Documentation/power. > > This is what led me to the restart handler idea. Ultimately when > someone issues a 'reboot' I would like it to use the GSC to > power-cycle the board. Hi Tim I think you end up with the same problem. By the time you need to turn the power supply off, too much of the kernel is shut down to be able to use I2C. And if you are in the middle of an Oops, you have no idea of the current state. Another I2C transaction could be under way etc. All the current reset drivers are pretty much self contained, atomic and use KISS hardware like a GPIO. Maybe you best bet is to see if you can find any other I2C PMICs which the kernel supports. Andrew