fbdev/omap2: Do not include <linux/export.h>Fix the compile-time warnings drivers/video/fbdev/omap2/omapfb/dss/dpi.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is prese
fbdev/omap2: Do not include <linux/export.h>Fix the compile-time warnings drivers/video/fbdev/omap2/omapfb/dss/dpi.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present drivers/video/fbdev/omap2/omapfb/dss/sdi.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is presentSigned-off-by: Thomas Zimmermann <tzimmermann@suse.de>Reviewed-by: Helge Deller <deller@gmx.de>Fixes: 7d95680d64ac ("scripts/misc-check: check unnecessary #include <linux/export.h> when W=1")Cc: Masahiro Yamada <masahiroy@kernel.org>Cc: Nathan Chancellor <nathan@kernel.org>Link: https://lore.kernel.org/r/20250612081738.197826-10-tzimmermann@suse.de
show more ...
fbdev/omap2: Include <linux/export.h>Fix the compile-time warnings drivers/video/fbdev/omap2/omapfb/dss/apply.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing driv
fbdev/omap2: Include <linux/export.h>Fix the compile-time warnings drivers/video/fbdev/omap2/omapfb/dss/apply.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/core.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/display.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/dss-of.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/dss_features.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/manager.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/output.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/overlay.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/dss/venc.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing drivers/video/fbdev/omap2/omapfb/vrfb.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missingSigned-off-by: Thomas Zimmermann <tzimmermann@suse.de>Reviewed-by: Helge Deller <deller@gmx.de>Fixes: a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1")Cc: Masahiro Yamada <masahiroy@kernel.org>Cc: Nathan Chancellor <nathan@kernel.org>Link: https://lore.kernel.org/r/20250612081738.197826-9-tzimmermann@suse.de
treewide: Switch/rename to timer_delete[_sync]()timer_delete[_sync]() replaces del_timer[_sync](). Convert the whole treeover and remove the historical wrapper inlines.Conversion was done with c
treewide: Switch/rename to timer_delete[_sync]()timer_delete[_sync]() replaces del_timer[_sync](). Convert the whole treeover and remove the historical wrapper inlines.Conversion was done with coccinelle plus manual fixups where necessary.Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Ingo Molnar <mingo@kernel.org>
fbdev: omapfb: Add 'plane' value checkFunction dispc_ovl_setup is not intended to work with the value OMAP_DSS_WBof the enum parameter plane.The value of this parameter is initialized in dss_ini
fbdev: omapfb: Add 'plane' value checkFunction dispc_ovl_setup is not intended to work with the value OMAP_DSS_WBof the enum parameter plane.The value of this parameter is initialized in dss_init_overlays and in thecurrent state of the code it cannot take this value so it's not a realproblem.For the purposes of defensive coding it wouldn't be superfluous to checkthe parameter value, because some functions down the call stack processthis value correctly and some not.For example, in dispc_ovl_setup_global_alpha it may lead to bufferoverflow.Add check for this value.Found by Linux Verification Center (linuxtesting.org) with SVACE staticanalysis tool.Signed-off-by: Leonid Arapov <arapovl839@gmail.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Remove writeback deadcodeValue of enum parameter 'plane' is initialized in dss_init_overlays andcannot take the value OMAP_DSS_WB. Function dispc_ovl_setup_common couldbe called wi
fbdev: omapfb: Remove writeback deadcodeValue of enum parameter 'plane' is initialized in dss_init_overlays andcannot take the value OMAP_DSS_WB. Function dispc_ovl_setup_common couldbe called with this value of parameter only from dispc_wb_setup, which hasnever been used and has been removed in commit 4f55bb03801a("omapfb: Remove unused writeback code"). The code in the if-branch isunreachable.Remove unreachable branch.Found by Linux Verification Center (linuxtesting.org) with SVACE staticanalysis tool.Signed-off-by: Leonid Arapov <arapovl839@gmail.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Use syscon_regmap_lookup_by_phandle_argsUse syscon_regmap_lookup_by_phandle_args() which is a wrapper oversyscon_regmap_lookup_by_phandle() combined with getting the sysconargument
fbdev: omapfb: Use syscon_regmap_lookup_by_phandle_argsUse syscon_regmap_lookup_by_phandle_args() which is a wrapper oversyscon_regmap_lookup_by_phandle() combined with getting the sysconargument. Except simpler code this annotates within one line that givenphandle has arguments, so grepping for code would be easier.There is also no real benefit in printing errors on missing sysconargument, because this is done just too late: runtime check onstatic/build-time data. Dtschema and Devicetree bindings offer thestatic/build-time check for this already.Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Use of_property_present() to test existence of DT propertyof_property_read_bool() should be used only on boolean properties.Cc: Rob Herring <robh@kernel.org>Signed-off-by: Krzyszt
fbdev: omapfb: Use of_property_present() to test existence of DT propertyof_property_read_bool() should be used only on boolean properties.Cc: Rob Herring <robh@kernel.org>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Fix an OF node leak in dss_of_port_get_parent_device()dss_of_port_get_parent_device() leaks an OF node reference when i >= 2and struct device_node *np is present. Since of_get_next_
fbdev: omapfb: Fix an OF node leak in dss_of_port_get_parent_device()dss_of_port_get_parent_device() leaks an OF node reference when i >= 2and struct device_node *np is present. Since of_get_next_parent()obtains a reference of the returned OF node, call of_node_put() beforereturning NULL.This was found by an experimental verifier that I am developing, and noruntime test was able to be performed due to that lack of actualdevices.Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Remove unused hdmi5_core_handle_irqshdmi5_core_handle_irqs() has been unused sincecommit f5bab2229190 ("OMAPDSS: HDMI: Add OMAP5 HDMI support")Remove it.Signed-off-by: Dr. David
fbdev: omapfb: Remove unused hdmi5_core_handle_irqshdmi5_core_handle_irqs() has been unused sincecommit f5bab2229190 ("OMAPDSS: HDMI: Add OMAP5 HDMI support")Remove it.Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>Signed-off-by: Helge Deller <deller@gmx.de>
Merge tag 'fbdev-for-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdevPull fbdev updates from Helge Deller: - omapfb: Remove unused code (Dr. David Alan Gilbert) - s
Merge tag 'fbdev-for-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdevPull fbdev updates from Helge Deller: - omapfb: Remove unused code (Dr. David Alan Gilbert) - sh7760fb: Fix memory leak in error path of sh7760fb_alloc_mem() (Zhen Lei)* tag 'fbdev-for-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: fbdev: omapfb: Remove some deadcode fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()
Merge tag 'devicetree-for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linuxPull devicetree updates from Rob Herring: "Bindings: - Enable dtc "interrupt_provider" warnings for b
Merge tag 'devicetree-for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linuxPull devicetree updates from Rob Herring: "Bindings: - Enable dtc "interrupt_provider" warnings for binding examples. Fix the warnings in fsl,mu-msi and ti,sci-inta due to this. - Convert zii,rave-sp-wdt, zii,rave-sp-pwrbutton, and altr,fpga-passive-serial to DT schema format - Add some documentation on the different forms of YAML text blocks which are a constant source of review comments - Fix some schema errors in constraints for arrays - Add compatibles for qcom,sar2130p-pdc and onnn,adt7462 DT core: - Allow overlay kunit tests to run CONFIG_OF_OVERLAY=n - Add some warnings on deprecated address handling - Rework early_init_dt_scan() so the arch can pass in the phys address of the DTB as __pa() is not always valid to use. This fixes a warning for arm64 with kexec. - Add and use some new DT graph iterators for iterating over ports and endpoints - Rework reserved-memory handling to be sized dynamically for fixed regions - Optimize of_modalias() to avoid a strlen() call - Constify struct device_node and property pointers where ever possible"* tag 'devicetree-for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (36 commits) of: Allow overlay kunit tests to run CONFIG_OF_OVERLAY=n dt-bindings: interrupt-controller: qcom,pdc: Add SAR2130P compatible of/address: Rework bus matching to avoid warnings of: WARN on deprecated #address-cells/#size-cells handling of/fdt: Don't use default address cell sizes for address translation dt-bindings: Enable dtc "interrupt_provider" warnings of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify dt-bindings: cache: qcom,llcc: Fix X1E80100 reg entries dt-bindings: watchdog: convert zii,rave-sp-wdt.txt to yaml format dt-bindings: input: convert zii,rave-sp-pwrbutton.txt to yaml media: xilinx-tpg: use new of_graph functions fbdev: omapfb: use new of_graph functions gpu: drm: omapdrm: use new of_graph functions ASoC: audio-graph-card2: use new of_graph functions ASoC: audio-graph-card: use new of_graph functions ASoC: test-component: use new of_graph functions of: property: use new of_graph functions of: property: add of_graph_get_next_port_endpoint() of: property: add of_graph_get_next_port() of: module: remove strlen() call in of_modalias() ...
fbdev: omapfb: Remove some deadcodecommit f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")took a copy of the omapdrm code into omapfb, however at that pointa couple of functions were a
fbdev: omapfb: Remove some deadcodecommit f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")took a copy of the omapdrm code into omapfb, however at that pointa couple of functions were already unused at that point.Remove dispc_mgr_get_clock_div() and dispc_enable_fifomerge() fromthe omapfb copy.Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: use new of_graph functionsNow we can use new port related functions for port parsing. Use it.Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Acked-by: Helge Del
fbdev: omapfb: use new of_graph functionsNow we can use new port related functions for port parsing. Use it.Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Acked-by: Helge Deller <deller@gmx.de>Link: https://lore.kernel.org/r/87bjzab5sd.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: Rob Herring (Arm) <robh@kernel.org>
fbdev: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forpla
fbdev: Switch back to struct platform_driver::remove()After commit 0edb555a65d1 ("platform: Make platform_driver::remove()return void") .remove() is (again) the right callback to implement forplatform drivers.Convert all platform drivers below drivers/video/fbdev to use .remove(),with the eventual goal to drop struct platform_driver::remove_new(). As.remove() and .remove_new() have the same prototypes, conversion is doneby just changing the structure member name in the driver initializer.While touching these files, make indention of the struct initializerconsistent in several files.Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Call of_node_put(ep) only once in omapdss_of_find_source_for_first_ep()An of_node_put(ep) call was immediately used after a pointer checkfor a of_graph_get_remote_port() call in thi
fbdev: omapfb: Call of_node_put(ep) only once in omapdss_of_find_source_for_first_ep()An of_node_put(ep) call was immediately used after a pointer checkfor a of_graph_get_remote_port() call in this function implementation.Thus call such a function only once instead directly before the check.This issue was transformed by using the Coccinelle software.Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Fix typo in commentReported-by: Matthew Wilcox <willy@infradead.org>Signed-off-by: Andrew Kreimer <algonell@gmail.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omap2: Return clk_prepare_enable to transfer the errorReturn clk_prepare_enable() in order to transfer the error if it fails.Signed-off-by: Chen Ni <nichen@iscas.ac.cn>Signed-off-by: Helg
fbdev: omap2: Return clk_prepare_enable to transfer the errorReturn clk_prepare_enable() in order to transfer the error if it fails.Signed-off-by: Chen Ni <nichen@iscas.ac.cn>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: use of_graph_get_remote_port()We already have of_graph_get_remote_port(), Let's use it.Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Reviewed-by: Laurent Pinc
fbdev: omapfb: use of_graph_get_remote_port()We already have of_graph_get_remote_port(), Let's use it.Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapdss: use for_each_endpoint_of_node()We already have for_each_endpoint_of_node(), don't useof_graph_get_next_endpoint() directly. Replace it.Signed-off-by: Kuninori Morimoto <kuninori.
fbdev: omapdss: use for_each_endpoint_of_node()We already have for_each_endpoint_of_node(), don't useof_graph_get_next_endpoint() directly. Replace it.Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omap2: replace of_graph_get_next_endpoint()From DT point of view, in general, drivers should be asking for aspecific port number because their function is fixed in the binding.of_graph_ge
fbdev: omap2: replace of_graph_get_next_endpoint()From DT point of view, in general, drivers should be asking for aspecific port number because their function is fixed in the binding.of_graph_get_next_endpoint() doesn't match to this concept.Simply replace - of_graph_get_next_endpoint(xxx, NULL); + of_graph_get_endpoint_by_regs(xxx, 0, -1);Link: https://lore.kernel.org/r/20240202174941.GA310089-robh@kernel.orgSigned-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error
fbdev: omapfb: Convert to platform remove callback returning voidThe .remove() callback for a platform driver returns an int which makesmany driver authors wrongly assume it's possible to do error handling byreturning an error code. However the value returned is (mostly) ignoredand this typically results in resource leaks. To improve here there is aquest to make the remove callback return void. In the first step of thisquest all drivers are converted to .remove_new() which already returnsvoid.Trivially convert this driver from always returning zero in the removecallback to the void returning variant.Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: Use of_property_present() for testing DT property presenceIt is preferred to use typed property access functions (i.e.of_property_read_<type> functions) rather than low-levelof_get_propert
fbdev: Use of_property_present() for testing DT property presenceIt is preferred to use typed property access functions (i.e.of_property_read_<type> functions) rather than low-levelof_get_property/of_find_property functions for reading properties. Aspart of this, convert of_get_property/of_find_property calls to therecently added of_property_present() helper when we just want to testfor presence of a property and nothing more.Signed-off-by: Rob Herring <robh@kernel.org>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: Use kstrtobool() instead of strtobool()strtobool() is the same as kstrtobool().However, the latter is more used within the kernel.In order to remove strtobool() and slightly simpl
fbdev: omapfb: Use kstrtobool() instead of strtobool()strtobool() is the same as kstrtobool().However, the latter is more used within the kernel.In order to remove strtobool() and slightly simplify kstrtox.h, switch tothe other function name.While at it, include the corresponding header file (<linux/kstrtox.h>)Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: avoid stack overflow warningThe dsi_irq_stats structure is a little too big to fit on thestack of a 32-bit task, depending on the specific gcc options:fbdev/omap2/omapfb/dss/dsi.c
fbdev: omapfb: avoid stack overflow warningThe dsi_irq_stats structure is a little too big to fit on thestack of a 32-bit task, depending on the specific gcc options:fbdev/omap2/omapfb/dss/dsi.c: In function 'dsi_dump_dsidev_irqs':fbdev/omap2/omapfb/dss/dsi.c:1621:1: error: the frame size of 1064 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]Since this is only a debugfs file, performance is not critical,so just dynamically allocate it, and print an error messagein there in place of a failure code when the allocation fails.Signed-off-by: Arnd Bergmann <arnd@arndb.de>Signed-off-by: Helge Deller <deller@gmx.de>
fbdev: omapfb: remove redundant variable checksumVariable checksum is being used to accumulate values howeverit is never read or used afterwards. It is redundant and canbe removed.Signed-off-by
fbdev: omapfb: remove redundant variable checksumVariable checksum is being used to accumulate values howeverit is never read or used afterwards. It is redundant and canbe removed.Signed-off-by: Colin Ian King <colin.i.king@gmail.com>Signed-off-by: Helge Deller <deller@gmx.de>
12345