From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753743AbZHCSwF (ORCPT ); Mon, 3 Aug 2009 14:52:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753144AbZHCSwE (ORCPT ); Mon, 3 Aug 2009 14:52:04 -0400 Received: from mail.mnementh.co.uk ([173.45.232.4]:43076 "EHLO mnementh.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbZHCSwD (ORCPT ); Mon, 3 Aug 2009 14:52:03 -0400 Message-ID: <4A7731C8.9040407@mnementh.co.uk> Date: Mon, 03 Aug 2009 19:51:52 +0100 From: Ian Molton User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Guennadi Liakhovetski CC: pHilipp Zabel , Paul Mundt , Magnus Damm , Mark Brown , linux-kernel@vger.kernel.org, Pierre Ossman , Magnus Damm Subject: Re: MMC: Make the configuration memory resource optional References: <20090729115817.GA12223@rakim.wolfsonmicro.main> <20090729124233.GA12802@rakim.wolfsonmicro.main> <4A704777.70001@mnementh.co.uk> <4A7053E8.8050303@mnementh.co.uk> <20090729201702.GA28202@linux-sh.org> <74d0deb30907291355n39df7db0v1d7afc93917adc14@mail.gmail.com> <4A716F1C.2050805@mnementh.co.uk> <4A71F2A5.4060206@mnementh.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Guennadi Liakhovetski wrote: >> I cant see _why_ this should be a problem, as this disables the card clock, >> not HCLK. Could you debug further in tmio_mmc_clk_stop() please and see if >> reordering only one of the two IO accesses cures this? > > Not sure I understood the "reordering only one of the two IO accesses" > correctly, but I swapped the two sd_ctrl_write16() calls in > tmio_mmc_clk_stop() and no, it didn't cure the problem. I meant can you reorder them so that only one or the other is after the reset. Thus eliminating one (perhaps) as the cause of the problem. Does your chip actually use the tmio-type reset, or has it a hard reset line or something? Also is your issue that the driver doesnt work, or that you cant access registers from something like userspace ?