linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zonque@gmail.com (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ARM: PXA: Zipit Z2: Add USB host and device support
Date: Mon, 29 Oct 2012 11:44:11 +0100	[thread overview]
Message-ID: <508E5DFB.3060002@gmail.com> (raw)
In-Reply-To: <CA+E=qVcnacT8L5GkqTxdowKt2KkoEWMhd3+XBk6nKsEEDtWecg@mail.gmail.com>

On 29.10.2012 11:07, Vasily Khoruzhick wrote:
> On Mon, Oct 29, 2012 at 12:42 PM, Daniel Mack <zonque@gmail.com> wrote:
>> On 29.10.2012 10:33, Vasily Khoruzhick wrote:
>>> On Mon, Oct 29, 2012 at 1:58 AM, Daniel Mack <zonque@gmail.com> wrote:
>>>>> Any volunteers? :) It requires huge amount of work,
>>>>
>>>> Well, it's actually quite straight forward. With the changes that got merged
>>>> to 3.7, pxa3xx platforms boot, and I also ported some pxa specific
>>>> peripheral drivers that should work for both 2xx and 3xx. Adding CPU support
>>>> for 27x should also just be a matter of some extra lines.
>>>>
>>>> So I would clearly say you should give the DT approach a try first and see
>>>> which bits are missing. And I would vote for not taking any new features for
>>>> the legacy board support files but just bugfixes.
>>>
>>> Fair enough, I'll resend series without USB stuff (so it'll contain
>>> only bugfixes)
>>
>> I rather wanted to encourage you to work on the PXA2xx DT stuff :)
> 
> I'm not refusing to work on PXA2xx DT stuff, just want to get bugfixes in place,
> some of them are serious enough (like fixing oops on poweroff)
> 
>> Please have a quick look at arch/arm/mach-pxa/pxa-dt.c - what it takes
>> for basic 270 support is just copying the logic that is there already
>> for the 3xx models.
> 
> Sure, but I need to get DT-capable bootloader working on Z2 in first
> place, right?
> 
>> Some parts like the uart, host-mode usb, mmc, gpio-leds, gpio-keys, i2c
>> etc are already finished and should work instantly. What's missing is
>> the spi controller and the display, but maybe you can help getting these
>> done?
> 
> What about libertas?

I haven't seen any patches for DT bindings of this yet.

> I still don't understand how DT handles platform-specific
> callbacks like set_power(). And what about pm_power_off hook?

They require consideration.

In general, a driver should be aware of everything that affects the
peripheral, including all the voltages and clocks it needs and also all
extra pins like for example reset GPIOs etc. And all that properties are
to be exported via DT as well (things that you would have normally set
up using pdata).

If drivers lack that kind of full awareness of their environment, they
need to be augmented, because - to stick with the example of reset GPIOs
- the driver of all parts is the only piece that knows when to driver
that pin and how.

About the hack to put the z2 to deep-sleep when it should actually power
down, I don't know what to do. But I would say that it's the userspace
that should be fixed here, if possible.


Daniel

  parent reply	other threads:[~2012-10-29 10:44 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 15:35 [PATCH 1/5] ARM: PXA: Add z2-usb-switch driver Vasily Khoruzhick
2012-10-28 15:35 ` [PATCH 2/5] ARM: PXA: Zipit Z2: Add USB host and device support Vasily Khoruzhick
2012-10-28 21:59   ` Marek Vasut
2012-10-28 22:38     ` Vasily Khoruzhick
2012-10-28 22:43       ` Marek Vasut
2012-10-28 22:58       ` Daniel Mack
2012-10-29  9:33         ` Vasily Khoruzhick
2012-10-29  9:42           ` Daniel Mack
2012-10-29 10:07             ` Vasily Khoruzhick
2012-10-29 10:22               ` Marek Vasut
2012-10-29 10:26                 ` Vasily Khoruzhick
2012-10-29 10:44               ` Daniel Mack [this message]
2012-10-29 10:52                 ` Vasily Khoruzhick
2012-10-29 11:00                   ` Daniel Mack
2012-10-29 11:12                     ` Vasily Khoruzhick
2012-10-29 11:14                       ` Daniel Mack
2012-10-30 20:01                         ` Vasily Khoruzhick
2012-10-30 20:05                           ` Daniel Mack
2012-10-30 21:20                             ` Vasily Khoruzhick
2012-10-31 14:00                             ` Haojian Zhuang
2012-10-31 15:31                             ` Haojian Zhuang
2012-11-02 20:52                               ` Vasily Khoruzhick
2012-11-02 21:29                               ` Vasily Khoruzhick
2012-11-05 17:31                                 ` Vasily Khoruzhick
2012-12-04  8:30                                   ` Haojian Zhuang
2012-10-29 10:48               ` Daniel Mack
2012-10-28 15:35 ` [PATCH 3/5] ARM: PXA: Zipit Z2: Fix oops in z2_power_off Vasily Khoruzhick
2012-10-28 15:35 ` [PATCH 4/5] ARM: PXA: Zipit Z2: Change active_state of power button Vasily Khoruzhick
2012-10-28 22:01   ` Marek Vasut
2012-10-28 22:31     ` mark at engine12.com
2012-10-28 15:35 ` [PATCH 5/5] ARM: PXA: Zipit Z2: Fix backlight PWM device number Vasily Khoruzhick
2012-10-28 22:01   ` Marek Vasut
2012-10-28 22:23     ` Vasily Khoruzhick
2012-10-28 22:39       ` Marek Vasut
2012-10-28 15:39 ` [PATCH 1/5] ARM: PXA: Add z2-usb-switch driver Vasily Khoruzhick
2012-10-28 15:42   ` [PATCH v2 " Vasily Khoruzhick
2012-10-28 17:03     ` Marko Katić
2012-10-28 18:12       ` Vasily Khoruzhick
2012-10-28 21:57     ` Marek Vasut
2012-10-28 22:27       ` Vasily Khoruzhick
2012-10-28 22:38         ` Marek Vasut
2012-10-28 22:45           ` Vasily Khoruzhick
2012-10-28 22:48             ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=508E5DFB.3060002@gmail.com \
    --to=zonque@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).