lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 24 May 2012 21:42:29 +0200
From:	philippe.retornaz@...l.ch
To:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
Cc:	Fabio Estevam <festevam@...il.com>,
	Uwe Kleine-König 
	<u.kleine-koenig@...gutronix.de>, marc@...esign.com.au,
	Shawn Guo <shawn.guo@...escale.com>,
	Samuel Ortiz <sameo@...ux.intel.com>,
	Sascha Hauer <kernel@...gutronix.de>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: mc13xxx-core: kernel hangs after 'regmap_read'

Mark Brown <broonie@...nsource.wolfsonmicro.com> a écrit :

> On Thu, May 24, 2012 at 02:39:02PM -0300, Fabio Estevam wrote:
>> On Thu, May 24, 2012 at 1:41 PM, Uwe Kleine-König
>
>> > The imx spi driver can do both (GPIO and hardware CS) because not all
>> > pins that can do hardware CS are available as GPIO.
>
>> Right, unfortunately on mx31 the SPI CS pins cannot be used as GPIOs.
>
>> On mx51evk the SPI CS are used as GPIOs and that probably explains why
>> it worked on mx51evk and fails on mx31pdk.
>
> Oh dear, this affects regmap but it'll probably also affect other things
> - how plausible is it that we'll be able to fix in the driver (assuming
> it's not just hardware misprogramming)?  We can probably manage to come
> up with something for regmap but it's the wrong level to fix things.
>

Sadly, after looking at the imx31 datasheet it seems it's a hardware  
limitation. We could maybe workaround it by using DMA to access the  
CSPI but even with dma, this would need a single transfer in order to  
keep the CS signal asserted.

Thus, we need to workaround this in the regmap-spi or mc13783-spi driver.
Either we find a way to have regmap-spi to use 32bits transfert or we  
implement a custom bus inside mc13783-spi.

Thanks,

Philippe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ