From: Scott Branden <scott.branden@broadcom.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>, Kees Cook <keescook@chromium.org>,
linux-kernel@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com,
Olof Johansson <olof@lixom.net>,
Desmond Yan <desmond.yan@broadcom.com>
Subject: Re: [PATCH v3] misc: bcm-vk: only support ttyVK if CONFIG_TTY is set
Date: Mon, 1 Feb 2021 10:13:55 -0800 [thread overview]
Message-ID: <30098c21-f0aa-55f3-8e1f-c7bb8ae8be0e@broadcom.com> (raw)
In-Reply-To: <YBexqH9KZEMs2fq0@kroah.com>
Hi Greg,,
I need a few clarifications before sending (hopefully) final revisions to the patch.
On 2021-01-31 11:45 p.m., Greg Kroah-Hartman wrote:
> On Sun, Jan 31, 2021 at 03:30:49PM -0800, Scott Branden wrote:
>> Correct compile issue if CONFIG_TTY is not set by
>> only adding ttyVK devices if CONFIG_BCM_VK_TTY is set.
>>
>> Reported-by: Randy Dunlap <rdunlap@infradead.org>
>> Signed-off-by: Scott Branden <scott.branden@broadcom.com>
>>
>> ---
>> Changes since v2:
>> - add CONFIG_BCM_VK_TTY
>> - add function and stub for bcm_vk_tty_set_irq_enabled
>> Changes since v1:
>> - add function stubs rather than compiling out code
>> ---
>> drivers/misc/bcm-vk/Kconfig | 16 ++++++++++++
>> drivers/misc/bcm-vk/Makefile | 4 +--
>> drivers/misc/bcm-vk/bcm_vk.h | 42 +++++++++++++++++++++++++++++---
>> drivers/misc/bcm-vk/bcm_vk_dev.c | 5 ++--
>> drivers/misc/bcm-vk/bcm_vk_tty.c | 6 +++++
>> 5 files changed, 65 insertions(+), 8 deletions(-)
>>
>> diff --git a/drivers/misc/bcm-vk/Kconfig b/drivers/misc/bcm-vk/Kconfig
>> index 052f6f28b540..16ce98c964b8 100644
>> --- a/drivers/misc/bcm-vk/Kconfig
>> +++ b/drivers/misc/bcm-vk/Kconfig
>> @@ -15,3 +15,19 @@ config BCM_VK
>> accelerators via /dev/bcm-vk.N devices.
>>
>> If unsure, say N.
>> +
>> +if BCM_VK
> No need for this, just put it on the depends line, right?
If you prefer I can but it on the depends on line.
But, I actually prefer the if syntax in this case as it more clearly shows
BCM_VK_TTY is a suboption of BCM_VK.
Please let me know which method is "right"?
>
>> +
>> +config BCM_VK_TTY
>> + bool "Enable ttyVK"
> Better config help text to explain what this is?
I'll change it to the following?
"Enable tty's on VK devices"
>
>> + depends on TTY
>> + default y
> Default y is only there if your system can not boot without it, please
> remove it.
I can remove if really needed but I'd like to learn more about such convention.
Is there a document I can learn from describing such?
We actually want a full featured driver by default. Otherwise we'll end up asking people to enable this
feature and recompile the driver to get missing features such as this.
>
>> + help
>> + Select this option to enable ttyVK support to allow console
>> + access to VK cards from host.
> Again, more help text, what is a "VK"?
VK is already described in BCM_VK. Why would I need to add the same information again to a suboption?
Perhaps you would like "config BCM_VK" changed to "menuconfig BCM_VK"
>
> thanks,
>
> greg k-h
Thanks,
Scott
next prev parent reply other threads:[~2021-02-01 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 23:30 Scott Branden
2021-02-01 2:15 ` Randy Dunlap
2021-02-01 7:45 ` Greg Kroah-Hartman
2021-02-01 18:13 ` Scott Branden [this message]
2021-02-03 14:55 ` Greg Kroah-Hartman
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=30098c21-f0aa-55f3-8e1f-c7bb8ae8be0e@broadcom.com \
--to=scott.branden@broadcom.com \
--cc=arnd@arndb.de \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=desmond.yan@broadcom.com \
--cc=gregkh@linuxfoundation.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olof@lixom.net \
/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
all inboxes | Powered by JetHome®