linux/drivers/staging/pi433
Paulo Miguel Almeida ce514dadc6 staging: pi433: enforce tx_cfg to be set before any message can be sent
this driver relies on exposing a char device to userspace to tx
messages. Every message can be sent using different trasmitter settings
such so the tx_cfg must be written before sending any messages.
Failing to do so will cause the message to fail silently depending on
printk/dynamic_debug settings which makes it hard to troubleshoot.

This patch add a control variable that will get initialized once tx_cfg
is set for the fd used when interacting with the char device.

Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Link: https://lore.kernel.org/r/20220114221643.GA7843@mail.google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-26 13:01:48 +01:00
..
Documentation staging: pi433: overlay: Convert to sugar syntax 2020-02-23 19:20:49 +01:00
Kconfig staging: pi433: Fix Kconfig indentation 2019-11-20 15:20:29 +01:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
pi433_if.c staging: pi433: enforce tx_cfg to be set before any message can be sent 2022-01-26 13:01:48 +01:00
pi433_if.h staging: pi433: fix docs typos and references to previous struct names 2021-09-13 08:49:42 +02:00
rf69_enum.h staging: pi433: add docs to packet_format and tx_start_condition enum 2022-01-03 14:30:01 +01:00
rf69_registers.h staging: pi433: Use the correct style for SPDX License Identifier 2020-02-09 16:23:02 -08:00
rf69.c staging: pi433: validate max bit_rate based on modulation used 2022-01-25 16:33:55 +01:00
rf69.h staging: pi433: move get version func to where all other functions are 2022-01-25 16:29:04 +01:00
TODO staging: pi433: validate max bit_rate based on modulation used 2022-01-25 16:33:55 +01:00