Skip to content

iPAQ h3100/h3600 work for 2.6.33

Dmitry Artamonow linux-arm-kernel 1 version New

Get series with b4
b4 am 20091025153603.GA24490@rainbow

Versions newest first

  1. v1 Latest0 of 20 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 20 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/20] iPAQ h3100/h3600 work for 2.6.33
Quoted 9 lines · Russell King - ARM Linux

That's fine, and the patches to me at least look fine as well. The only thing which gives me slight concern is the:

	if (!gpio_request()) {
		gpio_direction_output();
		gpio_free();
	}
Quoted 5 lines

stuff, but I guess you can't get around that easily, especially if those GPIOs only become available at some time later. It is something that eventually needs to be addressed though - consider that this can lead to unexpected (and silent) failures if the GPIOs aren't available when another driver initializes, and can't (eg) turn on the IrDA tranceiver.

Yes, you right here about silent failures. I think they could be made less silent by inserting some pr_err()-s , though it would bloat code a bit (I'd like to see request_gpio() itself emitting error message, but currectly it does that only when CONFIG_DEBUG_GPIO is set). Ok, here's incremental patch adding pr_err-s in attachment - if you're OK with it I will roll it into [09/20] and rebase all following patches.

Also perhaps it's a good idea to always built-in htc-egpio driver (by adding "select HTC_EGPIO" to h3100/h3600 Kconfig options) - that should decrease probability of gpio_request failures a lot. Patch also attached.

Anyway these gpio_requests in callbacks is temporary solution. In a long term I'd really like to see proper init/exit hooks in corresponding drivers, but it's hard to say how much work it will require.

Signature · 2 lines
Best regards,
Dmitry "MAD" Artamonow