* [PATCH] Staging:fwserial Move LINUX_VENDOR_ID to firewire.h
@ 2018-07-09 15:52 Janani Sankara Babu
2018-07-09 7:01 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Janani Sankara Babu @ 2018-07-09 15:52 UTC (permalink / raw)
To: gregkh; +Cc: keescook, devel, linux-kernel, Janani Sankara Babu
This driver uses the same unregistered vendor id that the
firewire core does (0xd00d1e). Hence it is exposed as a
define in firewire.h.
Signed-off-by:Janani Sankara Babu <jananis37@gmail.com>
---
drivers/staging/fwserial/fwserial.c | 1 -
include/linux/firewire.h | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c
index e8bfe55..f2966f2 100644
--- a/drivers/staging/fwserial/fwserial.c
+++ b/drivers/staging/fwserial/fwserial.c
@@ -21,0 +21,0 @@
#define be32_to_u64(hi, lo) ((u64)be32_to_cpu(hi) << 32 | be32_to_cpu(lo))
-#define LINUX_VENDOR_ID 0xd00d1eU /* same id used in card root directory */
#define FWSERIAL_VERSION 0x00e81cU /* must be unique within LINUX_VENDOR_ID */
/* configurable options */
diff --git a/include/linux/firewire.h b/include/linux/firewire.h
index aec8f30..62cdff1 100644
--- a/include/linux/firewire.h
+++ b/include/linux/firewire.h
@@ -66,2 +66,2 @@
#define CSR_MODEL 0x17
#define CSR_DIRECTORY_ID 0x20
+#define LINUX_VENDOR_ID 0xd00d1eU /* same id used in card root directory */
+
struct fw_csr_iterator {
const u32 *p;
const u32 *end;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Staging:fwserial Move LINUX_VENDOR_ID to firewire.h
2018-07-09 15:52 [PATCH] Staging:fwserial Move LINUX_VENDOR_ID to firewire.h Janani Sankara Babu
@ 2018-07-09 7:01 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2018-07-09 7:01 UTC (permalink / raw)
To: Janani Sankara Babu; +Cc: keescook, devel, linux-kernel
On Mon, Jul 09, 2018 at 11:52:30AM -0400, Janani Sankara Babu wrote:
> This driver uses the same unregistered vendor id that the
> firewire core does (0xd00d1e). Hence it is exposed as a
> define in firewire.h.
>
> Signed-off-by:Janani Sankara Babu <jananis37@gmail.com>
> ---
> drivers/staging/fwserial/fwserial.c | 1 -
> include/linux/firewire.h | 2 ++
> 2 files changed, 2 insertions(+), 1 deletion(-)
staging drivers are supposed to be self-contained. Please work to get
the fwserial driver out of the staging directory before adding stuff
like this to a .h file that everyone includes.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-09 7:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 15:52 [PATCH] Staging:fwserial Move LINUX_VENDOR_ID to firewire.h Janani Sankara Babu
2018-07-09 7:01 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox