From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VvjJE-0002VA-Hz for barebox@lists.infradead.org; Wed, 25 Dec 2013 07:55:17 +0000 Received: by mail-la0-f45.google.com with SMTP id eh20so3259962lab.32 for ; Tue, 24 Dec 2013 23:54:53 -0800 (PST) Date: Wed, 25 Dec 2013 12:02:33 +0400 From: Antony Pavlov Message-Id: <20131225120233.367089bd40dc188f67cd58a6@gmail.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: November spi changes To: Sascha Hauer Cc: barebox@lists.infradead.org Hi! I'm working on adding SPI driver for Atheros 933x. I'm using this code for registering spi flash: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D static struct flash_platform_data spi_boot_flash_data =3D { .name =3D "spi", .type =3D "s25sl032p", }; static struct spi_board_info spi_devs[] __initdata =3D { { /* boot: Spansion S25FL032P SPI flash */ .name =3D "m25p80", .max_speed_hz =3D 104 * 1000 * 1000, .bus_num =3D 0, .chip_select =3D 0, .mode =3D SPI_MODE_3, .platform_data =3D &spi_boot_flash_data, }, }; ... spi_register_board_info(spi_devs, ARRAY_SIZE(spi_devs)); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D If I rebase Atheros 933x over barebox-2013.11.0 then this code works fine. If I rebase Atheros 933x over barebox-2013.12.0 then I get "Ooops" in get_param_by_name(dev=3Dspi, name=3Dsize) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Board: TP Link WR720N m25p80 m25p800: s25sl032p (4096 Kbytes) register_device: already registered spi Ooops, TLB miss on load or ifetch! ... ### ERROR ### Please RESET the board ### =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Changing this =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D static struct flash_platform_data spi_boot_flash_data =3D { .name =3D "spi", .type =3D "s25sl032p", }; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D to =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D static struct flash_platform_data spi_boot_flash_data =3D { .name =3D "spi0", .type =3D "s25sl032p", }; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D solves the problem. Sascha, please, comment this message. --=A0 Best regards, =A0 Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox