Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1183968

Re: linux 4.2-rc1 broken Nokia N900

Path csiph.com!aioe.org!news.e-liance.net!news.e-liance.net!feeds.phibee-telecom.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Pavel Machek <pavel@ucw.cz>
Newsgroups linux.kernel
Subject Re: linux 4.2-rc1 broken Nokia N900
Date Tue, 14 Jul 2015 22:10:03 +0200
Message-ID <pMeGD-2db-43@gated-at.bofh.it> (permalink)
References <pL1Lr-30x-1@gated-at.bofh.it> <pLSG7-1q1-37@gated-at.bofh.it> <pLTVw-281-13@gated-at.bofh.it> <pLU5b-2qA-7@gated-at.bofh.it> <pLUyd-2Au-13@gated-at.bofh.it> <pM2Fr-7F7-11@gated-at.bofh.it> <pMbpn-5KF-5@gated-at.bofh.it>
X-Original-To Michael Welling <mwelling@ieee.org>
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 73
Organization linux.* mail to news gateway
X-Original-Cc Pali Rohár <pali.rohar@gmail.com>, Sebastian Reichel <sre@kernel.org>, Tony Lindgren <tony@atomide.com>, Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>, Aaro Koskinen <aaro.koskinen@iki.fi>, Nishanth Menon <nm@ti.com>, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Tue, 14 Jul 2015 22:01:26 +0200
X-Original-Message-ID <20150714200125.GA26147@amd>
X-Original-References <201507111405.06048@pali> <201507132234.22082@pali> <20150713215232.GA22584@deathray> <201507140002.44119@pali> <20150713223607.GA23001@deathray> <20150714071412.GA12844@pali> <20150714163342.GA8512@deathray>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1183968

Show key headers only | View raw


On Tue 2015-07-14 11:33:42, Michael Welling wrote:
> On Tue, Jul 14, 2015 at 09:14:12AM +0200, Pali Rohár wrote:
> > On Monday 13 July 2015 17:36:07 Michael Welling wrote:
> > > On Tue, Jul 14, 2015 at 12:02:44AM +0200, Pali Rohár wrote:
> > > > I think nothing special. I just call:
> > > > 
> > > > export ARCH=arm
> > > > export CROSS_COMPILE=arm-linux-gnueabi-
> > > > make rx51_defconfig
> > > > rm -f arch/arm/boot/zImage
> > > > make -j12 zImage modules omap3-n900.dtb CONFIG_DEBUG_SECTION_MISMATCH=y
> > > > cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > arch/arm/boot/zImage.new
> > > > mv arch/arm/boot/zImage.new arch/arm/boot/zImage
> > > >
> > > 
> > > Where are you getting rx51_defconfig from?
> > > 
> > > This does not appear to be in the kernel source any longer.
> > > 
> > > Can you try the above with omap2plus_defconfig?
> > >  
> > 
> > It is in my linux-n900 repository: https://github.com/pali/linux-n900
> > Repository contains more n900 specific patches but SPI code is unpatched
> > 
> > https://github.com/pali/linux-n900/blob/HEAD/arch/arm/configs/rx51_defconfig
> > 
> > Later in week I can try to compile also with omap2plus_defconfig...
> > But in my opinion kernel should not crash with different configuration.
> 
> True.
> 
> Could you try the following change to the set_cs function and see if
>it helps.

Ok, so:

4.2-rc1 worked for me, IIRC.

4.2-rc2 oopses a lot.

4.2-rc2+ this patch oopses, too. I don't have serial console, so it is
hard to tell if it is the same oops.

									Pavel

> diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
> index 5867384..666038b 100644
> --- a/drivers/spi/spi-omap2-mcspi.c
> +++ b/drivers/spi/spi-omap2-mcspi.c
> @@ -245,16 +245,18 @@ static void omap2_mcspi_set_enable(const struct spi_device *spi, int enable)
>  
>  static void omap2_mcspi_set_cs(struct spi_device *spi, bool enable)
>  {
> +	struct omap2_mcspi_cs *cs = spi->controller_state;
>  	u32 l;
>  
> -	/* The controller handles the inverted chip selects
> -	 * using the OMAP2_MCSPI_CHCONF_EPOL bit so revert
> -	 * the inversion from the core spi_set_cs function.
> -	 */
> -	if (spi->mode & SPI_CS_HIGH)
> -		enable = !enable;
> +	if (cs) {
> +
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

linux 4.2-rc1 broken Nokia N900 Pali Rohár <pali.rohar@gmail.com> - 2015-07-11 14:10 +0200
  Re: linux 4.2-rc1 broken Nokia N900 Tony Lindgren <tony@atomide.com> - 2015-07-13 08:50 +0200
    Re: linux 4.2-rc1 broken Nokia N900 Sebastian Reichel <sre@kernel.org> - 2015-07-13 10:10 +0200
    Re: linux 4.2-rc1 broken Nokia N900 Pali Rohár <pali.rohar@gmail.com> - 2015-07-13 13:20 +0200
  Re: linux 4.2-rc1 broken Nokia N900 Pavel Machek <pavel@ucw.cz> - 2015-07-14 22:10 +0200
    Re: linux 4.2-rc1 broken Nokia N900 Michael Welling <mwelling@ieee.org> - 2015-07-14 22:20 +0200
      Re: linux 4.2-rc1 broken Nokia N900 Michael Welling <mwelling@ieee.org> - 2015-07-15 22:20 +0200
  Re: linux 4.2-rc1 broken Nokia N900 Michael Welling <mwelling@ieee.org> - 2015-07-22 07:20 +0200
    Re: linux 4.2-rc1 broken Nokia N900 Pali Rohár <pali.rohar@gmail.com> - 2015-07-22 09:30 +0200
      Re: linux 4.2-rc1 broken Nokia N900 Sebastian Reichel <sre@kernel.org> - 2015-07-22 15:40 +0200
  Re: linux 4.2-rc1 broken Nokia N900 Pavel Machek <pavel@ucw.cz> - 2015-07-22 15:40 +0200

csiph-web