public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master
@ 2013-03-28 13:38 Albert ARIBAUD
  2013-03-28 15:08 ` Tom Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Albert ARIBAUD @ 2013-03-28 13:38 UTC (permalink / raw)
  To: u-boot

Hello all,

While preparing for an ARM PR, specifically a merge between commit
417c55803118eb8e350d5ab8ba6583fb39f4e2e3 (current u-boot/master ToT)
and commit d53e340edf65ff253d3a7b06ebe60501045892e3 (current Tot for
u-boot-arm/master), I hit the following merge conflicts:

CONFLICT (content): Merge conflict in lib/fdtdec.c
CONFLICT (content): Merge conflict in include/fdtdec.h
CONFLICT (content): Merge conflict in drivers/spi/tegra20_sflash.c

While the first two, related to FDT, are simple (colliding additions to
the same enum from both branches) and can be manually resolved, the
third one, drivers/spi/tegra20_sflash.c, is not, and can not, at least,
not by me, as I am not a specialist on Tegra SPI.

Tom (Warren), can you advise on how to best solve this?

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master
  2013-03-28 13:38 [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master Albert ARIBAUD
@ 2013-03-28 15:08 ` Tom Warren
  2013-03-28 15:16   ` Tom Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Warren @ 2013-03-28 15:08 UTC (permalink / raw)
  To: u-boot

Albert,


On Thu, Mar 28, 2013 at 6:38 AM, Albert ARIBAUD
<albert.u.boot@aribaud.net>wrote:

> Hello all,
>
> While preparing for an ARM PR, specifically a merge between commit
> 417c55803118eb8e350d5ab8ba6583fb39f4e2e3 (current u-boot/master ToT)
> and commit d53e340edf65ff253d3a7b06ebe60501045892e3 (current Tot for
> u-boot-arm/master), I hit the following merge conflicts:
>
> CONFLICT (content): Merge conflict in lib/fdtdec.c
> CONFLICT (content): Merge conflict in include/fdtdec.h
> CONFLICT (content): Merge conflict in drivers/spi/tegra20_sflash.c
>
> While the first two, related to FDT, are simple (colliding additions to
> the same enum from both branches) and can be manually resolved, the
> third one, drivers/spi/tegra20_sflash.c, is not, and can not, at least,
> not by me, as I am not a specialist on Tegra SPI.
>
> Tom (Warren), can you advise on how to best solve this?
>
Let me take a look  - IIRC, Simon's use of spi_alloc_slave() was the only
change to tegra20_sflash.c (replaces the normal malloc() in
tegra20_spi_setup_slave()).

Here's a diff of the only change to tegra20_sflash.c (merging Allen's Tegra
SPI changes and Simon's SPI changes):

--- drivers/spi/tegra20_sflash.c 2013-03-22 08:43:02.373219315 -0700
+++ /home/tom/denx/u-boot-arm/drivers/spi/tegra20_sflash.c 2013-03-28
08:04:04.899860607 -0700
@@ -127,7 +127,7 @@
  return NULL;
  }

- spi = spi_alloc_slave(struct tegra_spi_slave, bus, cs);
+ spi = malloc(sizeof(struct tegra_spi_slave));
  if (!spi) {
  printf("SPI error: malloc of SPI structure failed\n");
  return NULL;

Let me know if that's not enough for you to resolve this,

Tom

>
> Amicalement,
> --
> Albert.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master
  2013-03-28 15:08 ` Tom Warren
@ 2013-03-28 15:16   ` Tom Warren
  2013-03-28 17:47     ` Albert ARIBAUD
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Warren @ 2013-03-28 15:16 UTC (permalink / raw)
  To: u-boot

Albert,


On Thu, Mar 28, 2013 at 8:08 AM, Tom Warren <twarren.nvidia@gmail.com>wrote:

> Albert,
>
>
> On Thu, Mar 28, 2013 at 6:38 AM, Albert ARIBAUD <albert.u.boot@aribaud.net
> > wrote:
>
>> Hello all,
>>
>> While preparing for an ARM PR, specifically a merge between commit
>> 417c55803118eb8e350d5ab8ba6583fb39f4e2e3 (current u-boot/master ToT)
>> and commit d53e340edf65ff253d3a7b06ebe60501045892e3 (current Tot for
>> u-boot-arm/master), I hit the following merge conflicts:
>>
>> CONFLICT (content): Merge conflict in lib/fdtdec.c
>> CONFLICT (content): Merge conflict in include/fdtdec.h
>> CONFLICT (content): Merge conflict in drivers/spi/tegra20_sflash.c
>>
>> While the first two, related to FDT, are simple (colliding additions to
>> the same enum from both branches) and can be manually resolved, the
>> third one, drivers/spi/tegra20_sflash.c, is not, and can not, at least,
>> not by me, as I am not a specialist on Tegra SPI.
>>
>> Tom (Warren), can you advise on how to best solve this?
>>
> Let me take a look  - IIRC, Simon's use of spi_alloc_slave() was the only
> change to tegra20_sflash.c (replaces the normal malloc() in
> tegra20_spi_setup_slave()).
>
> Here's a diff of the only change to tegra20_sflash.c (merging Allen's
> Tegra SPI changes and Simon's SPI changes):
>
> --- drivers/spi/tegra20_sflash.c 2013-03-22 08:43:02.373219315 -0700
> +++ /home/tom/denx/u-boot-arm/drivers/spi/tegra20_sflash.c 2013-03-28
> 08:04:04.899860607 -0700
> @@ -127,7 +127,7 @@
>   return NULL;
>   }
>
> - spi = spi_alloc_slave(struct tegra_spi_slave, bus, cs);
> + spi = malloc(sizeof(struct tegra_spi_slave));
>   if (!spi) {
>   printf("SPI error: malloc of SPI structure failed\n");
>   return NULL;
>
> Let me know if that's not enough for you to resolve this,
>
> Tom
>

Just confirmed - in tegra20_sflash.c, remove the <<<<< HEAD section (#ifdef
CONFIG_OF_CONTROL + 2 lines), and keep the "tegra: spi remove non fdt
support" section (spi->slave.bus = bus + 4 lines).

Tom

>
>> Amicalement,
>> --
>> Albert.
>>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master
  2013-03-28 15:16   ` Tom Warren
@ 2013-03-28 17:47     ` Albert ARIBAUD
  0 siblings, 0 replies; 4+ messages in thread
From: Albert ARIBAUD @ 2013-03-28 17:47 UTC (permalink / raw)
  To: u-boot

Hi Tom,

> Just confirmed - in tegra20_sflash.c, remove the <<<<< HEAD section (#ifdef
> CONFIG_OF_CONTROL + 2 lines), and keep the "tegra: spi remove non fdt
> support" section (spi->slave.bus = bus + 4 lines).

Ok, thanks a lot for confirming. I'll do the merge (and tests)
accordingly on u-boot-arm and then send out my PR to The Other
Tom.

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-28 17:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 13:38 [U-Boot] Merge conflict on Tegra SPI between u-boot/master and u-boot-arm/master Albert ARIBAUD
2013-03-28 15:08 ` Tom Warren
2013-03-28 15:16   ` Tom Warren
2013-03-28 17:47     ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox