Skip to contentSkip to conversation

Pending October patches

DISCUSSION Dirk Behme 5 participants 17 messages Nov 1, 2006 – Nov 9, 2006 USB

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

Hi,

my list of pending OMAP patches for October 2006:

1. [PATCH] ARM: OMAP: Fix warning no IRQF_TRIGGER set_type function for IRQ 353
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008119.html

2. ARM: OMAP2: fix apollon gpmc initialization
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008132.html

3. Git tree updated to 2.6.19-rc2
(Fix BUG in omap1_mbox_enable_irq)
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008148.html

4. [PATCH] ARM: OMAP: Register tsc2102 on Palm Tungsten E
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008155.html

5. [patch 2.6.19-rc3-omap] gpio init section cleanups
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008175.html

6. [patch 2.6.19-rc3-omap] gpio object shrinkage, cleanup
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008176.html

7. [PATCH]: Fixing blksz_bits calling inside drivers/mmc/mmc.c and drivers/mmc/omap.c
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008183.html

8. [PATCH] ARM: OMAP: Fix warnings in plat-omap
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008184.html

9. [PATCH] ARM: OMAP: Fix warnings in plat-omap/dsp
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008185.html

10. [PATCH] ARM: OMAP: Fix warning in mach-omap1
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008187.html

11. [PATCH] ARM: OMAP: Fix warning in mach-omap2
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008188.html

12. [PATCH] ARM: OMAP: Fix warning in omap-keypad
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008190.html

13. [PATCH] ARM: OMAP: Fix warnings in ads7846
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008191.html

14. [PATCH] ARM: OMAP: Fix Amstrad Delta omap-keypad usage.
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008194.html

15. [PATCH] ARM: OMAP: Remove struct pt_regs from omap_irda_irq()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008195.html

16. [PATCH] ARM: OMAP: Remove struct pt_regs from lcdc_irq_handler()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008196.html

17. [PATCH] ARM: OMAP: Remove struct pt_regs from menelaus_irq()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008197.html

18. [PATCH] ARM: OMAP1: Fix CONFIG_DEBUG_LL
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008201.html

19. [PATCH] PalmZ71 extra brace fix
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008204.html

20. [PATCH 1/3] Palm Tungsten|T support
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008206.html

21. [PATCH 2/3] Palm Tungsten|T LCD
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008207.html

22. [PATCH 3/3] Palm Tungsten|T defconfig
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008208.html

23. [PATCH] Palm Tungsten|T LEDs
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008219.html

24. [PATCH] ARM: OMAP: fix apollon USB device support
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008220.html

25. [PATCH] omap-hw: Fix build breakage
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008229.html

26. [PATCH] ARM: OMAP: Make AIC23 sound work again
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008232.html

27. [PATCH] [USB/CORE/USB.C] Fixes autosuspend and auto_pm fields missing
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008234.html

A lot of stuff this month, was somewhat tricky to track. So as usual, please correct if anything missing, if anything is wrong, outdated or already applied. Are there any older patches pending?

Cheers

Dirk

#1 lore raw

Hi,

Thanks again for the list. I've pushed most of them, some patches need minor fixes, see below. Again, please verify your patches got applied OK.

I've also updated to -rc4. BTW, I probably won't have email access until Tuesday.

Quoted 7 lines · Dirk Behme

Hi,

my list of pending OMAP patches for October 2006:

1. [PATCH] ARM: OMAP: Fix warning no IRQF_TRIGGER set_type function for IRQ 353
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008119.html

Pushed.

Quoted 2 lines

2. ARM: OMAP2: fix apollon gpmc initialization
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008132.html

Pushed.

Quoted 3 lines

3. Git tree updated to 2.6.19-rc2
(Fix BUG in omap1_mbox_enable_irq)
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008148.html

Pushed.

Quoted 2 lines

4. [PATCH] ARM: OMAP: Register tsc2102 on Palm Tungsten E
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008155.html

Pushed.

Quoted 2 lines

5. [patch 2.6.19-rc3-omap] gpio init section cleanups
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008175.html

Pushed.

Quoted 2 lines

6. [patch 2.6.19-rc3-omap] gpio object shrinkage, cleanup
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008176.html

Pushed. We should split this to omap1- and omap2-specific gpio.c that uses common gpio.c to get rid of the ifdefs.

Quoted 3 lines

7. [PATCH]: Fixing blksz_bits calling inside
drivers/mmc/mmc.c and drivers/mmc/omap.c
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008183.html

Pushed Dirk's version that also fixes the warning.

Quoted 2 lines

8. [PATCH] ARM: OMAP: Fix warnings in plat-omap
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008184.html

Pushed.

Quoted 2 lines

9. [PATCH] ARM: OMAP: Fix warnings in plat-omap/dsp
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008185.html

I think the unlikely() is unlikely necessary for init and sysfs?

Quoted 2 lines

10. [PATCH] ARM: OMAP: Fix warning in mach-omap1
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008187.html

Same here, also missing space after if.

Quoted 2 lines

11. [PATCH] ARM: OMAP: Fix warning in mach-omap2
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008188.html

Pushed.

Quoted 2 lines

12. [PATCH] ARM: OMAP: Fix warning in omap-keypad
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008190.html

Pushed.

Quoted 2 lines

13. [PATCH] ARM: OMAP: Fix warnings in ads7846
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008191.html

Is the unlikely() needed here?

Quoted 2 lines

14. [PATCH] ARM: OMAP: Fix Amstrad Delta omap-keypad usage.
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008194.html

Pushed.

Quoted 3 lines

15. [PATCH] ARM: OMAP: Remove struct pt_regs from omap_irda_irq()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008195.html

Pushed.

Quoted 3 lines

16. [PATCH] ARM: OMAP: Remove struct pt_regs from lcdc_irq_handler()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008196.html

Pushed.

Quoted 2 lines

17. [PATCH] ARM: OMAP: Remove struct pt_regs from menelaus_irq()
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008197.html

Pushed.

Quoted 2 lines

18. [PATCH] ARM: OMAP1: Fix CONFIG_DEBUG_LL
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008201.html

Pushed.

Quoted 2 lines

19. [PATCH] PalmZ71 extra brace fix
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008204.html

Pushed.

Quoted 2 lines

20. [PATCH 1/3] Palm Tungsten|T support
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008206.html

Please replace spaces with tabs according to Documentation/CodingStyle.

Quoted 2 lines

21. [PATCH 2/3] Palm Tungsten|T LCD
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008207.html

Please replace spaces with tabs according to Documentation/CodingStyle.

Quoted 2 lines

22. [PATCH 3/3] Palm Tungsten|T defconfig
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008208.html

Depends on previous patches.

Quoted 2 lines

23. [PATCH] Palm Tungsten|T LEDs
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008219.html

This too.

Quoted 2 lines

24. [PATCH] ARM: OMAP: fix apollon USB device support
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008220.html

Pushed.

Quoted 2 lines

25. [PATCH] omap-hw: Fix build breakage
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008229.html

Pushed.

Quoted 2 lines

26. [PATCH] ARM: OMAP: Make AIC23 sound work again
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008232.html

Hmmm, I think there were some comments on this hack on LKML when we merged the driver?

Quoted 3 lines

27. [PATCH] [USB/CORE/USB.C] Fixes autosuspend and auto_pm fields missing
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008234.html

Sounds like this is getting fixed in the mainline tree.

Quoted 4 lines

A lot of stuff this month, was somewhat tricky to track. So as usual, please correct if anything missing, if anything is wrong, outdated or already applied. Are there any older patches pending?

Yes it's been a busy patch month :) I cannot think of any patches we've missed.

Regards,

Tony

author
#2 lore raw
Quoted 4 lines · [email protected] wrote:
Quoted 2 lines

9. [PATCH] ARM: OMAP: Fix warnings in plat-omap/dsp
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008185.html

I think the unlikely() is unlikely necessary for init and sysfs?

Thanks for review! It was just a mechanical search & replace without any look to the functions itself. Will update this and the others soon.

Quoted 5 lines
Quoted 2 lines

26. [PATCH] ARM: OMAP: Make AIC23 sound work again
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008232.html

Hmmm, I think there were some comments on this hack on LKML when we merged the driver?

Komal, what do you think here?

Anybody aware of someone working on a better solution? Any link to the LKML discussion about this?

Best regards

dirk

#3 lore raw
Quoted 10 lines · --- Dirk Behme
Quoted 5 lines · [email protected] wrote:
Quoted 1 line

9. [PATCH] ARM: OMAP: Fix warnings in plat-omap/dsp

http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008185.html

I think the unlikely() is unlikely necessary for init and sysfs?

Thanks for review! It was just a mechanical search & replace without any look to the functions itself. Will update this and the others soon.

Also, these patches doesn't put proper error return path, as we don't know, if some userspace tool can't work if those sysfs files are not created at probe.

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

26. [PATCH] ARM: OMAP: Make AIC23 sound work again

http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008232.html

Quoted 8 lines
Quoted 2 lines

Hmmm, I think there were some comments on this hack on LKML when we merged the driver?

Komal, what do you think here?

Anybody aware of someone working on a better solution? Any link to the LKML discussion about this?

Few links:

http://lkml.org/lkml/2006/8/2/138
http://lkml.org/lkml/2006/8/5/23
http://lkml.org/lkml/2006/7/31/366
http://linux.omap.com/pipermail/davinci-linux-open-source/2006-October/001332.html

on google following keywords can help

site:lkml.org/lkml Komal Shah OMAP I2C

---Komal Shah
http://komalshah.blogspot.com/

____________________________________________________________________________________
Get your email and see which of your friends are online - Right on the New Yahoo.com
(http://www.yahoo.com/preview)

#15 lore raw
In reply to [email protected]
Quoted 5 lines · On Wednesday 01 November 2006 1:28 pm, [email protected] wrote:
Quoted 3 lines

27. [PATCH] [USB/CORE/USB.C] Fixes autosuspend and auto_pm fields missing
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008234.html

Sounds like this is getting fixed in the mainline tree.

No, the root cause of the problem is a borked h2 defconfig; but I'm not clear how it got past the build step that's supposed to make sure the current config matches all the Kconfig constraints.

(That is, USB_SUSPEND depends on PM, but only one of them was set in the defconfig yet the build was proceeding ...)

author
#16 lore raw
Quoted 4 lines · David Brownell
Quoted 3 lines · On Wednesday 01 November 2006 1:28 pm, [email protected] wrote:
Quoted 2 lines

27. [PATCH] [USB/CORE/USB.C] Fixes autosuspend and auto_pm fields missing
http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008234.html

Quoted 8 lines
Quoted 1 line

Sounds like this is getting fixed in the mainline tree.

No, the root cause of the problem is a borked h2 defconfig; but I'm not clear how it got past the build step that's supposed to make sure the current config matches all the Kconfig constraints.

(That is, USB_SUSPEND depends on PM, but only one of them was set in the defconfig yet the build was proceeding ...)

Just tried it, it really fails and isn't resolved by Kconfig processing.

Looking at h2 defconfig we have

# CONFIG_PM is not set
CONFIG_USB_SUSPEND=y
CONFIG_USB_OTG=y

Looking at drivers/usb/core/Kconfig we have

config USB_SUSPEND

	bool "USB selective suspend/resume and wakeup (EXPERIMENTAL)"
	depends on USB && PM && EXPERIMENTAL

config USB_OTG

	bool
	depends on USB && EXPERIMENTAL
	select USB_SUSPEND
	default n

So USB_SUSPEND isn't activated (processed?) because PM isn't set. But USB_OTG selects USB_SUSPEND without selecting PM as well.

Maybe anything like

drivers/usb/core/Kconfig +1 -0
@@ -77,6 +77,7 @@ config USB_OTG
        bool
        depends on USB && EXPERIMENTAL
        select USB_SUSPEND
+       select PM
        default n
 

can help here?

Cheers

Dirk

author
#4 lore raw

I2C zero length transfers and SMBUS_QUICK, was: Pending October patches

In reply to Komal Shah
Quoted 15 lines
Quoted 4 lines · Komal Shah
Quoted 2 lines · --- Dirk Behme
Quoted 1 line · [email protected] wrote:

26. [PATCH] ARM: OMAP: Make AIC23 sound work again

Quoted 9 lines
Quoted 4 lines

http://linux.omap.com/pipermail/linux-omap-open-source/2006-October/008232.html

Hmmm, I think there were some comments on this hack on LKML when we merged the driver?

Komal, what do you think here?

Anybody aware of someone working on a better solution? Any link to the LKML discussion about this?

Few links:

...

Quoted 1 line

http://linux.omap.com/pipermail/davinci-linux-open-source/2006-October/001332.html

Sounds to me a clean fix (new I2C stack?) will need some decades, if it comes at all. So, how to go one here?

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

I personally vote for working OMAP ;)

Cheers

Dirk

#5 lore raw

Re: I2C zero length transfers and SMBUS_QUICK, was: Pending October patches

Quoted 9 lines · --- Dirk Behme
Quoted 6 lines
Quoted 5 lines

Komal, what do you think here?

Anybody aware of someone working on a better solution? Any link to the LKML discussion about this?

Few links:

...

Quoted 1 line

http://linux.omap.com/pipermail/davinci-linux-open-source/2006-October/001332.html

Quoted 11 lines

Sounds to me a clean fix (new I2C stack?) will need some decades, if it comes at all. So, how to go one here?

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

I personally vote for working OMAP ;)

Yes, we need working OMAPs and I don't know if it already broke n770 too. Let's see what Tony thinks about maintaining this fix in OMAP tree.

---Komal Shah
http://komalshah.blogspot.com/

____________________________________________________________________________________
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates
(http://voice.yahoo.com)

#11 lore raw

Re: I2C zero length transfers and SMBUS_QUICK, was: Pending October patches

In reply to Dirk Behme
Quoted 7 lines · Dirk Behme

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

I personally vote for working OMAP ;)

Me too ... the sad part is that this is basicallly a design bug in the upstream I2C stack, and over the past couple years there have been no evident signs of it ever getting fixed.

- Dave

#6 lore raw

Re: I2C zero length transfers and SMBUS_QUICK, was: Pending October patches

In reply to Komal Shah

Hi,

Quoted 22 lines · Komal Shah
Quoted 9 lines · --- Dirk Behme
Quoted 6 lines
Quoted 5 lines

Komal, what do you think here?

Anybody aware of someone working on a better solution? Any link to the LKML discussion about this?

Few links:

...

Quoted 1 line

http://linux.omap.com/pipermail/davinci-linux-open-source/2006-October/001332.html

Quoted 9 lines

Sounds to me a clean fix (new I2C stack?) will need some decades, if it comes at all. So, how to go one here?

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

Quoted 6 lines
Quoted 2 lines

I personally vote for working OMAP ;)

Yes, we need working OMAPs and I don't know if it already broke n770 too. Let's see what Tony thinks about maintaining this fix in OMAP tree.

hmm... well... while taking care of the n770 is nice, I'm not sure that you should take it into account.

Brief explanation :
the current kernel is broken on the n770. It won't even build.

Long explanation :
There are some obvious breakages that are not fixed. For instance, look at the omap-hw patch I sent. I have some other patches for the build but the kernel is oopsing later in the boot stage when udev plays with the uevents in the spi layer... And there are probably more breakages :(

Regards,
Arnaud

author
#7 lore raw

Broken N770, was: I2C zero length transfers and SMBUS_QUICK

Seems that this is the month of mail subject change ;)

Quoted 4 lines · Arnaud Patard (Rtp)
Quoted 3 lines · Komal Shah

Yes, we need working OMAPs and I don't know if it already broke n770 too. ...

...

Quoted 1 line

the current kernel is broken on the n770. It won't even build.

Thanks for the hint! With patch previously sent
n770_defconfig should compile again.

However, still some warnings in omap-hw.c (unused omap_nand_write_byte), retu-user.c, tahvo-user.c, tahvo-usb.c (all my new friend "ignoring return value") and sti-console.c ("value computed is not used").

Quoted 3 lines

Long explanation :
There are some obvious breakages that are not fixed. For instance, look at the omap-hw patch I sent.

It is already applied.

Quoted 3 lines

I have some other patches for the build but
the kernel is oopsing later in the boot stage when udev plays with the uevents in the spi layer... And there are probably more breakages :(

Is there any way to test self compiled kernel on N770 without breaking flashed SW/image? Anything like download to RAM, e.g. used by uboots TFTP download on OSK?

Regards

Dirk

#8 lore raw

Re: Broken N770, was: I2C zero length transfers and SMBUS_QUICK

Quoted 1 line · Dirk Behme

Seems that this is the month of mail subject change ;)

hehe :)

Quoted 11 lines
Quoted 4 lines · Arnaud Patard (Rtp)
Quoted 3 lines · Komal Shah

Yes, we need working OMAPs and I don't know if it already broke n770 too. ...

...

Quoted 1 line

the current kernel is broken on the n770. It won't even build.

Thanks for the hint! With patch previously sent
n770_defconfig should compile again.

Sorry, that's wrong. I'm using an up2date git tree with origin
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git/
and I still need patches.

For instance :
- there are still some users of pt_regs (patch sent some time ago)
- drivers/cbus/tahvo-usb.c is still using usb_otg.h. Patch not sent but trivial to write.

Quoted 3 lines

However, still some warnings in omap-hw.c (unused omap_nand_write_byte),

hmm.. yeah. My fault :(

Quoted 10 lines

retu-user.c, tahvo-user.c,
tahvo-usb.c (all my new friend "ignoring return value") and sti-console.c ("value computed is not used").

Quoted 3 lines

Long explanation :
There are some obvious breakages that are not fixed. For instance, look at the omap-hw patch I sent.

It is already applied.

Quoted 7 lines
Quoted 3 lines

I have some other patches for the build but
the kernel is oopsing later in the boot stage when udev plays with the uevents in the spi layer... And there are probably more breakages :(

Is there any way to test self compiled kernel on N770 without breaking flashed SW/image? Anything like download to RAM, e.g. used by uboots TFTP download on OSK?

yes, there is. That's what I'm using ^^

./flasher-2.0 -l -b -k <my_kernel>

But if you want to go a little bit further than the first lines of the linuxrc file, you have to reintroduce the ioctl MEMSETOOBSEL in mtdchar.c because the dsme/bme/cal-tools/libcal and friends from nokia are using it. Unfortunately, when they're failing, they reboot your device.
[ Playing with the r&d flags from the flasher won't help as the tools are
failing before reading them. ]

Quoted 4 lines

Regards

Dirk

Regards,
Arnaud

author
#9 lore raw

Re: Broken N770

Quoted 9 lines · Arnaud Patard (Rtp)
Quoted 2 lines

Thanks for the hint! With patch previously sent
n770_defconfig should compile again.

Sorry, that's wrong. I'm using an up2date git tree with origin
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git/
and I still need patches.

For instance :
- there are still some users of pt_regs (patch sent some time ago)

Yes, but these are only warnings and they are already fixed by patch sent.

For drivers/usb/core/hub.c I had to use

http://linux.omap.com/pipermail/linux-omap-open-source/2006-November/008254.html

Quoted 2 lines

- drivers/cbus/tahvo-usb.c is still using usb_otg.h. Patch not sent but trivial to write.

Mmh. For drivers/cbus/tahvo-usb.c my patch contains

drivers/cbus/tahvo-usb.c +1 -1
@@ -36,7 +36,7 @@
 #include <linux/usb_ch9.h>
 #include <linux/usb_gadget.h>
 #include <linux/usb.h>
-#include <linux/usb_otg.h>
+#include <linux/usb/otg.h>
 #include <linux/i2c.h>
 #include <linux/workqueue.h>
 #include <linux/kobject.h>

What's wrong with this? For me using recent git it compiles. I have no usb_otg.h.

Quoted 7 lines
Quoted 3 lines

Is there any way to test self compiled kernel on N770 without breaking flashed SW/image? Anything like download to RAM, e.g. used by uboots TFTP download on OSK?

yes, there is. That's what I'm using ^^

./flasher-2.0 -l -b -k <my_kernel>

Thanks, will try it.

Cheers

Dirk

#10 lore raw

Re: Broken N770

Quoted 11 lines · Dirk Behme
Quoted 9 lines · Arnaud Patard (Rtp)
Quoted 2 lines

Thanks for the hint! With patch previously sent
n770_defconfig should compile again.

Sorry, that's wrong. I'm using an up2date git tree with origin
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git/
and I still need patches.

For instance : - there are still some users of pt_regs (patch sent some time ago)

Quoted 6 lines

Yes, but these are only warnings and they are already fixed by patch sent.

For drivers/usb/core/hub.c I had to use

http://linux.omap.com/pipermail/linux-omap-open-source/2006-November/008254.html

If you look at the full thread, you'll see that I'm using the same patch :)

Quoted 18 lines
Quoted 3 lines

- drivers/cbus/tahvo-usb.c is still using usb_otg.h. Patch not sent but trivial to write.

Mmh. For drivers/cbus/tahvo-usb.c my patch contains

drivers/cbus/tahvo-usb.c +1 -1
@@ -36,7 +36,7 @@
 #include <linux/usb_ch9.h>
 #include <linux/usb_gadget.h>
 #include <linux/usb.h>
-#include <linux/usb_otg.h>
+#include <linux/usb/otg.h>
 #include <linux/i2c.h>
 #include <linux/workqueue.h>
 #include <linux/kobject.h>
Quoted 2 lines

What's wrong with this? For me using recent git it compiles. I have no usb_otg.h.

No, that's fine. I was talking about that change. As it's not in the current git tree, I wanted to say that you need such a patch :)

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

Is there any way to test self compiled kernel on N770 without breaking flashed SW/image? Anything like download to RAM, e.g. used by uboots TFTP download on OSK?

yes, there is. That's what I'm using ^^

Quoted 7 lines
Quoted 1 line

./flasher-2.0 -l -b -k <my_kernel>

Thanks, will try it.

Cheers

Dirk

Regards,
Arnaud

#12 lore raw

Re: I2C zero length transfers and SMBUS_QUICK, was: Pending October patches

In reply to David Brownell
Quoted 7 lines · David Brownell
Quoted 6 lines · Dirk Behme

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

Quoted 5 lines
Quoted 1 line

I personally vote for working OMAP ;)

Me too ... the sad part is that this is basicallly a design bug in the upstream I2C stack, and over the past couple years there have been no evident signs of it ever getting fixed.

I wonder if we could help somehow by doing "embedded i2c stack" by modifying your SPI framework to support i2c?

Tony

#13 lore raw

Re: I2C zero length transfers and SMBUS_QUICK

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I personally vote for working OMAP ;)

Me too ... the sad part is that this is basically a design bug in the upstream I2C stack, and over the past couple years there have been no evident signs of it ever getting fixed.

I wonder if we could help somehow by doing "embedded i2c stack" by modifying your SPI framework to support i2c?

Well, "clone-and-modify" vs "modify-in-place" ... could be. I sure did that SPI framework with a strong goal of not repeating most design mistakes made in the the I2C stack!! And folk tell me I succeeded...

An "embedded i2c" stack could be done easily: clone-and-modify SPI, removing assumptions like "full duplex", "names start with spi_", and "addressing works like this"; add synchronous SMBUS-ish utilities on top; add drivers; share or stir, mixing to taste. :)

The politics of that would be more awkward than the technical side of things ... as you imply, the flaws in the current I2C stack are most glaringly evident to folk doing work in embedded systems (and not just OMAP). So "embedded i2c" would be a useful starting meme.

After all, one point is the need for real I2C support ... and a stack designed around an assumption that everything supports SMBUS_QUICK should probably not be called an "i2c" stack!!

I think Jean Delvare has the notion that some people _are_ working on incremental tweaks to fix such issues in the upstream "I2C" stack. Anyone serious about fixing these issues should start some discussion on that I2C list.

- Dave

#14 lore raw

Re: I2C zero length transfers and SMBUS_QUICK

Quoted 10 lines · David Brownell
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

Our hack to make things work on OMAP will not be accepted upstream. But staying with broken OMAP features only because (available) hack isn't acceptable in mainline doesn't sound like an option as well.

I personally vote for working OMAP ;)

Me too ... the sad part is that this is basically a design bug in the upstream I2C stack, and over the past couple years there have been no evident signs of it ever getting fixed.

The thing is that at some point when more and more people will be using the mainline kernel with omap, we end up with mysterious problem reports like "sound does not work" and then we don't know where the problem is.

So we really should figure out how to have the same version in mainline and linux-omap tree.

Quoted 18 lines
Quoted 2 lines

I wonder if we could help somehow by doing "embedded i2c stack" by modifying your SPI framework to support i2c?

Well, "clone-and-modify" vs "modify-in-place" ... could be. I sure did that SPI framework with a strong goal of not repeating most design mistakes made in the the I2C stack!! And folk tell me I succeeded...

An "embedded i2c" stack could be done easily: clone-and-modify SPI, removing assumptions like "full duplex", "names start with spi_", and "addressing works like this"; add synchronous SMBUS-ish utilities on top; add drivers; share or stir, mixing to taste. :)

The politics of that would be more awkward than the technical side of things ... as you imply, the flaws in the current I2C stack are most glaringly evident to folk doing work in embedded systems (and not just OMAP). So "embedded i2c" would be a useful starting meme.

Quoted 8 lines

After all, one point is the need for real I2C support ... and a stack designed around an assumption that everything supports SMBUS_QUICK should probably not be called an "i2c" stack!!

I think Jean Delvare has the notion that some people _are_ working on incremental tweaks to fix such issues in the upstream "I2C" stack. Anyone serious about fixing these issues should start some discussion on that I2C list.

Let's hope somebody picks it up at some point after getting tired of working around the same issues over and over again :)

Tony