Remove ir-rx51 driver
Subsystems (8)
Sean Young
maintainerv2 cover Remove ir-rx51 driver
The ir-rx51 driver is no longer necessary, pwm-ir-tx does the same job and is more generic.
changes:
v1:
- Made pwm-ir-tx compatible with nokia,n900-ir rather than changing the n900 devicetree
Sean Young (2):
media: rc: remove ir-rx51 in favour of generic pwm-ir-tx
media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is
compatible
.../bindings/leds/irled/pwm-ir-tx.yaml | 4 +- .../devicetree/bindings/media/nokia,n900-ir | 20 -- arch/arm/configs/omap2plus_defconfig | 1 - drivers/media/rc/Kconfig | 10 - drivers/media/rc/Makefile | 1 - drivers/media/rc/ir-rx51.c | 285 ------------------ drivers/media/rc/pwm-ir-tx.c | 1 + 7 files changed, 4 insertions(+), 318 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/nokia,n900-ir delete mode 100644 drivers/media/rc/ir-rx51.c
Signature · 1 line
2.41.0
Sean Young
maintainerPATCH v2 1/2 media: rc: remove ir-rx51 in favour of generic pwm-ir-tx
The ir-rx51 is a pwm-based TX driver specific to the N900. This can be handled entirely by the generic pwm-ir-tx driver, and in fact the pwm-ir-tx driver has been compatible with ir-rx51 from the start.
Note that the suspend code in the ir-rx51 driver is unnecessary, since during transmit, the process is not in interruptable sleep. The process is not put to sleep until the transmit completes.
--- arch/arm/configs/omap2plus_defconfig | 1 - drivers/media/rc/Kconfig | 10 - drivers/media/rc/Makefile | 1 - drivers/media/rc/ir-rx51.c | 285 --------------------------- drivers/media/rc/pwm-ir-tx.c | 1 + 5 files changed, 1 insertion(+), 297 deletions(-) delete mode 100644 drivers/media/rc/ir-rx51.c
arch/arm/configs/omap2plus_defconfig +0 -1
@@ -484,7 +484,6 @@ CONFIG_LIRC=y CONFIG_RC_DEVICES=y CONFIG_IR_GPIO_TX=m CONFIG_IR_PWM_TX=m -CONFIG_IR_RX51=m CONFIG_IR_SPI=m CONFIG_MEDIA_SUPPORT=m CONFIG_V4L_PLATFORM_DRIVERS=y
drivers/media/rc/Kconfig +0 -10
@@ -338,16 +338,6 @@ config IR_REDRAT3 To compile this driver as a module, choose M here: the module will be called redrat3. -config IR_RX51 - tristate "Nokia N900 IR transmitter diode" - depends on (OMAP_DM_TIMER && PWM_OMAP_DMTIMER && ARCH_OMAP2PLUS || COMPILE_TEST) && RC_CORE - help - Say Y or M here if you want to enable support for the IR - transmitter diode built in the Nokia N900 (RX51) device. - - The driver uses omap DM timers for generating the carrier - wave and pulses. - config IR_SERIAL tristate "Homebrew Serial Port Receiver" depends on HAS_IOPORT
drivers/media/rc/Makefile +0 -1
@@ -43,7 +43,6 @@ obj-$(CONFIG_IR_MTK) += mtk-cir.o obj-$(CONFIG_IR_NUVOTON) += nuvoton-cir.o obj-$(CONFIG_IR_PWM_TX) += pwm-ir-tx.o obj-$(CONFIG_IR_REDRAT3) += redrat3.o -obj-$(CONFIG_IR_RX51) += ir-rx51.o obj-$(CONFIG_IR_SERIAL) += serial_ir.o obj-$(CONFIG_IR_SPI) += ir-spi.o obj-$(CONFIG_IR_STREAMZAP) += streamzap.o
drivers/media/rc/ir-rx51.c deleted +0 -285
285 lines not on this page · raw message
drivers/media/rc/pwm-ir-tx.c +1 -0
@@ -23,6 +23,7 @@ struct pwm_ir {static const struct of_device_id pwm_ir_of_match[] = { { .compatible ="pwm-ir-tx" , }, + { .compatible ="nokia,n900-ir" }, { }, };MODULE_DEVICE_TABLE (of, pwm_ir_of_match);
Signature · 7 lines
2.41.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Sean Young
maintainerPATCH v2 2/2 media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
In reply to Sean YoungThe generic pwm-ir-tx driver works for the Nokia n900, so nokia,n900-ir can be removed.
--- .../bindings/leds/irled/pwm-ir-tx.yaml | 4 +++- .../devicetree/bindings/media/nokia,n900-ir | 20 ------------------- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/nokia,n900-ir
Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml +3 -1
@@ -15,7 +15,9 @@ description: properties: compatible: - const: pwm-ir-tx + items: + - const: pwm-ir-tx + - const: nokia,n900-ir pwms: maxItems: 1
Documentation/devicetree/bindings/media/nokia,n900-ir deleted +0 -20
@@ -1,20 +0,0 @@ -Device-Tree bindings for LIRC TX driver for Nokia N900(RX51) - -Required properties: - - compatible: should be "nokia,n900-ir". - - pwms: specifies PWM used for IR signal transmission. - -Example node: - - pwm9: dmtimer-pwm@9 { - compatible = "ti,omap-dmtimer-pwm"; - ti,timers = <&timer9>; - ti,clock-source = <0x00>; /* timer_sys_ck */ - #pwm-cells = <3>; - }; - - ir: n900-ir { - compatible = "nokia,n900-ir"; - - pwms = <&pwm9 0 26316 0>; /* 38000 Hz */ - };
Signature · 1 line
2.41.0
Re: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
Quoted 14 lines · Sean Young
The generic pwm-ir-tx driver works for the Nokia n900, so nokia,n900-ir can be removed.
Cc Sicelo <[email protected]>Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Ivaylo Dimitrov <[email protected]>Cc Pali Rohár <[email protected]>Cc Pavel Machek <[email protected]>Cc Timo Kokkonen <[email protected]>Cc Tony Lindgren <[email protected]>Signed-off-by Sean Young <[email protected]>
Unfortunately not much improved here, so:
1. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
You missed at least DT list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
2. Test your bindings before sending. Especially if you decide to opt-out from automatic testing :/
Best regards,
Krzysztof
Re: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
Quoted 22 lines · Krzysztof Kozlowski
Quoted 14 lines · Sean Young
The generic pwm-ir-tx driver works for the Nokia n900, so nokia,n900-ir can be removed.
Cc Sicelo <[email protected]>Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Ivaylo Dimitrov <[email protected]>Cc Pali Rohár <[email protected]>Cc Pavel Machek <[email protected]>Cc Timo Kokkonen <[email protected]>Cc Tony Lindgren <[email protected]>Signed-off-by Sean Young <[email protected]>Unfortunately not much improved here, so:
1. Please usescripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Quoted 6 lines
You missed at least DT list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.
Please kindly resend and include all necessary To/Cc entries.
Ykes, my bad, the DT list is there. Therefore you can expect Rob's bot with complains.
Quoted 3 lines
2. Test your bindings before sending. Especially if you decide to opt-out from automatic testing :/
Testing before sending is still needed, though.
Best regards,
Krzysztof
Sean Young
maintainerRe: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
In reply to Krzysztof KozlowskiQuoted 16 lines · Krzysztof Kozlowski
Quoted 14 lines · Sean Young
The generic pwm-ir-tx driver works for the Nokia n900, so nokia,n900-ir can be removed.
Cc Sicelo <[email protected]>Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Ivaylo Dimitrov <[email protected]>Cc Pali Rohár <[email protected]>Cc Pavel Machek <[email protected]>Cc Timo Kokkonen <[email protected]>Cc Tony Lindgren <[email protected]>Signed-off-by Sean Young <[email protected]>
Quoted 8 lines
Unfortunately not much improved here, so:
1. Please usescripts/get_maintainers.plto get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.You missed at least DT list (maybe more), so this won't be tested by automated tooling.
So what tree do you want me to run scripts/get_maintainers.pl on? Apparently Linus' master or media staging master does not suffice.
Quoted 5 lines
Performing review on untested code might be a waste
of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.Please kindly resend and include all necessary To/Cc entries.
Please kindly tell me how follow your thiefdom's rules. What tree do you want me to run scripts/get_maintainers.pl on? What is the DT list that I missed out?
Quoted 2 lines
2. Test your bindings before sending. Especially if you decide to opt-out from automatic testing :/
I ran:
make dt_binding_check
And it ran successfully. Anything else?
Thanks,
Sean
Re: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
Quoted 9 lines · Sean Young
Quoted 5 lines
Performing review on untested code might be a waste
of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.Please kindly resend and include all necessary To/Cc entries.
Please kindly tell me how follow your thiefdom's rules. What tree do you want me to run
scripts/get_maintainers.plon? What is the DT list that I missed out?
That was my mistake, and I responded correcting myself 20 minutes before you sent this question.
Quoted 9 lines
Quoted 3 lines
2. Test your bindings before sending. Especially if you decide to opt-out from automatic testing :/
I ran:
make
dt_binding_checkAnd it ran successfully. Anything else?
This should be enough, but I doubt that it was successful.
Best regards,
Krzysztof
Sean Young
maintainerRe: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
Quoted 11 lines · Krzysztof Kozlowski
Quoted 8 lines · Sean Young
Quoted 2 lines
2. Test your bindings before sending. Especially if you decide to opt-out from automatic testing :/
I ran:
make
dt_binding_checkAnd it ran successfully. Anything else?
This should be enough, but I doubt that it was successful.
The command succeeds just fine with a 0 exit code, however I failed to spot the error in the output. My bad. I'll send a v3 soon.
Thanks,
Sean
Rob Herring
maintainerRe: [PATCH v2 2/2] media: dt-bindings: media: remove nokia,n900-ir as pwm-ir-tx is compatible
In reply to Sean YoungQuoted 14 lines · Sean Young
The generic pwm-ir-tx driver works for the Nokia n900, so nokia,n900-ir can be removed.
Cc Sicelo <[email protected]>Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Ivaylo Dimitrov <[email protected]>Cc Pali Rohár <[email protected]>Cc Pavel Machek <[email protected]>Cc Timo Kokkonen <[email protected]>Cc Tony Lindgren <[email protected]>Signed-off-by Sean Young <[email protected]>
Quoted 6 lines
--- .../bindings/leds/irled/pwm-ir-tx.yaml | 4 +++- .../devicetree/bindings/media/nokia,n900-ir | 20 ------------------- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/nokia,n900-ir
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:./Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.yaml:19:6: [warning] wrong indentation: expected 6 but found 5 (indentation)
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/leds/irled/pwm-ir-tx.example.dtb: irled: compatible: ['pwm-ir-tx'] is too short
from schema $id: http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.