From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] What's purpose of DEV_FLAGS_SYSTEM and DEV_EXT_VIDEO?
Date: Thu, 3 Sep 2015 00:25:55 +0200 [thread overview]
Message-ID: <20150903002555.2780f52b@crub> (raw)
In-Reply-To: <CAEUhbmWrzKFXA2j6n9uUxZKSFM=FLaD=Hz4vQdPUCpmpVWiJEg@mail.gmail.com>
Hi Bin,
On Mon, 17 Aug 2015 13:09:20 +0800
Bin Meng <bmeng.cn@gmail.com> wrote:
...
> I plan to send a patch to remove the DEV_FLAGS_SYSTEM and
> DEV_EXT_VIDEO. They look useless to me. For example,
>
> $ grep -nr DEV_FLAGS_SYSTEM *
...
> drivers/video/cfb_console.c:2296: console_dev.flags =
> DEV_FLAGS_OUTPUT | DEV_FLAGS_SYSTEM;
> drivers/net/netconsole.c:325: dev.flags = DEV_FLAGS_OUTPUT |
> DEV_FLAGS_INPUT | DEV_FLAGS_SYSTEM;
> include/stdio_dev.h:19:#define DEV_FLAGS_SYSTEM 0x80000000 /*
> Device is a system device */
>
> Except for this one below which tests the flag and prints an 'S',
> common/cmd_console.c:33: (dev->flags &
> DEV_FLAGS_SYSTEM) ? 'S' : '.',
>
> I don't see any actual meaning of this flag. I wonder if someone on
> the mailing list knows the history.
This is very old code, and I do not know the history. Both flags could
be dropped, I've no objection.
> Also I noticed that several blackfin boards' video driver only set
> this flag without setting DEV_FLAGS_OUTPUT.
>
> board/bf527-ezkit/video.c:442: videodev.flags = DEV_FLAGS_SYSTEM;
> /* No Output */
> board/cm-bf548/video.c:336: videodev.flags = DEV_FLAGS_SYSTEM;
> /* No Output */
> board/bf548-ezkit/video.c:332: videodev.flags = DEV_FLAGS_SYSTEM;
> /* No Output */
> board/bf533-stamp/video.c:168: videodev.flags = DEV_FLAGS_SYSTEM;
>
> I wonder these video drivers are not used for system output purpose?
No, they don't. In the board configs I see that these use very small
Displays (320x240). These shows the logo, but it would be very difficult
to use such displays as a console.
Thanks,
Anatolij
next prev parent reply other threads:[~2015-09-02 22:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 5:09 [U-Boot] What's purpose of DEV_FLAGS_SYSTEM and DEV_EXT_VIDEO? Bin Meng
2015-09-02 9:44 ` Bin Meng
2015-09-02 14:05 ` Simon Glass
2015-09-02 14:47 ` Tom Rini
2015-09-02 22:25 ` Anatolij Gustschin [this message]
2015-09-06 12:20 ` Bin Meng
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=20150903002555.2780f52b@crub \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/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