Skip to contentSkip to conversation

of: add of_lookup_stdout() utility function

PATCH Milton Miller 3 participants 3 messages Aug 7, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · TimurTabi
Quoted 3 lines · Yoder Stuart

The second was the idea that we may need a /aliases/stdin as well. You could conceptually have stdout be a monitor and a stdin be a keyboard.

I don't think the hypervisor console subsystem supports this. I don't see any way of registering separate clients for input vs. output.

Why should what the hvc driver support have any effect on what the binding should be?

And anyways, both the boot wrapper and udbg (and hence early debug console) have totally indepenedent functions for reading and writing.

And for that matter, we also support output on monitor and input on keyboard for linear frame buffer on 6xx via the btext output (but only adb input).

milton

#1 lore raw
Quoted 2 lines · Milton Miller

Why should what the hvc driver support have any effect on what the binding should be?

Because my hypervisor console driver uses the hypervisor console/tty subsystem.
If the subsystem assumes one stdout/stdin device, then I must abide by that.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#3 lore raw
In reply to a message not in the archive
Quoted 7 lines · Timur Tabi
Quoted 2 lines · Milton Miller

Why should what the hvc driver support have any effect on what the binding should be?

Because my hypervisor console driver uses the hypervisor console/tty subsystem.
If the subsystem assumes one stdout/stdin device, then I must abide by that.

So fix the subsystem, don't use the subsystem, or live with the fact that you support a subset of what the device tree can express. Don't cripple the device tree because of that.

-Scott