From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755881AbcAMWdD (ORCPT ); Wed, 13 Jan 2016 17:33:03 -0500 Received: from mail-ob0-f196.google.com ([209.85.214.196]:33128 "EHLO mail-ob0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752737AbcAMWc6 (ORCPT ); Wed, 13 Jan 2016 17:32:58 -0500 Subject: Re: [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery To: Tony Lindgren , Nishanth Menon References: <001346CD-CF31-4FEF-B406-B89EEBDFA063@goldelico.com> <56966558.1070608@ti.com> <569669C5.2070200@ti.com> <20160113164856.GF12777@atomide.com> <5696896F.4090309@ti.com> <20160113180006.GJ12777@atomide.com> <2B99611A-5D2E-4D17-A17D-0150516109FD@goldelico.com> <56969800.5010206@ti.com> <5696A002.6050402@ti.com> <20160113194032.GL12777@atomide.com> Cc: "H. Nikolaus Schaller" , Grygorii Strashko , Laxman Dewangan , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , linux-omap , devicetree@vger.kernel.org, LKML , Marek Belisko , =?UTF-8?Q?Gra=c5=bevydas_Ignotas?= , Keerthy From: Nishanth Menon Message-ID: <5696D097.3040208@gmail.com> Date: Wed, 13 Jan 2016 16:32:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160113194032.GL12777@atomide.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/13/2016 01:40 PM, Tony Lindgren wrote: > Anyways, considering what's been discussed, after the minimal RTC fix > we could also add code to allow the TWL driver optionally configure the > GPIO. This way the TWL driver could also check the GPIO state in case > some out-of-our-control mystery software goes tweak the msecure pin > state. I dont even know how that will work: If you are using MSECURE as it is intended to be, then you'd mux it to msecure, which means that GPIO read is just a waste of time - you dont even mux it to external world. Now, some SoCs like DRA7 has input lines always connected. even assuming this is for such a case: a) when you are running linux, you are already in nonsecure - it needs no read of MSECURE GPIO to figure that out. b) when you are in secure world, Linux wont be running either. Reading from GPIO is just misguided in my opinion. firewalls are not reconfigured, and muxes are usually done a single time. Or the RTC driver could just check that the bits really change > after= writing them. Then we would at least know things are not working > right for the TWL related RTC drivers. that is reasonable to check, but just a overhead - anyways, just isolated to palmas-rtc.. fail reason maynot always be issues with MSECURE mux.. it could be very well be 32k clk fail etc.. but yeah - that might give a hint that there is an issue.. -- Regards, Nishanth Menon