AngeloGioacchino Del Regno
09a1e9c973
arm64: dts: mediatek: mt8395-kontron-i1200: Fix MT6360 regulator nodes
...
All of the MT6360 regulator nodes were wrong and would not probe
because the regulator names are supposed to be lower case, but
they are upper case in this devicetree.
Change all nodes to be lower case to get working regulators.
Fixes: 94aaf79a6a ("arm64: dts: mediatek: add Kontron 3.5"-SBC-i1200")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-38-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
45049abe5b
arm64: dts: mediatek: mt8195-cherry: Add missing regulators to rt5682
...
Add the missing DBVDD and LDO1-IN power supplies to the codec
node as both RT5682i and RT5682s require those.
This commit only fixes a dtbs_check warning but doesn't produce
any functional changes because the VIO18 LDO is already powered
on because it's assigned as AVDD supply anyway.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-37-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
d0c8ecd9ec
arm64: dts: mediatek: mt8195-cherry: Move VBAT-supply to Tomato R1/R2
...
Move the VBAT supply to mt8195-cherry-tomato-{r1,r2} as this power
supply is named like that only for the Realtek RT5682i codec.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-36-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
a9eac43d03
arm64: dts: mediatek: mt8195: Fix ranges for jpeg enc/decoder nodes
...
The jpeg decoder main node is under the soc bus but currently has
no ranges or reg specified, while the children do, and this is
wrong in multiple aspects.
The very same is also valid for the jpeg encoder node.
Rename the decoder and encoder nodes to "jpeg-decoder@1a040000"
and to "jpeg-encoder@1a030000" respectively, and change their
children to use the newly defined ranges.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-35-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
0f4a8198d6
arm64: dts: mediatek: mt8183-kukui: Move DSI panel node to machine dtsis
...
Not all of the kukui machines have got a real DSI panel, infact,
some of those have got a DSI to eDP bridge instead: this means
that the address and size cells are necessary in the first case
but unnecessary in the latter.
Instead of adding a bunch of /delete-node/ which would impact on
human readability, move the entire panel node declaration to each
of the relevant Kukui machine dtsi: even though this introduces
some duplication, the advantages in readability surclass that.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-34-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
e72d63fa05
arm64: dts: mediatek: mt8183: Migrate to display controller OF graph
...
The display related IPs in MT8183 are flexible and support being
interconnected with different instances of DDP IPs forming a full
Display Data Path that ends with an actual display output, which
is board specific.
Add a common graph in the main mt8183.dtsi devicetree, which is
shared between all of the currently supported boards, and do it
such that only a very minimal amount of changes are needed to
each board - the only required change was done in mt8183-pumpkin,
using a phandle to assign the display to DPI0.
All boards featuring any display functionality will extend this
common graph to hook the display controller of the SoC to their
specific output port(s).
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Link: https://lore.kernel.org/r/20250724083914.61351-33-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:03 +02:00
AngeloGioacchino Del Regno
3808199f03
arm64: dts: mediatek: mt8183-pumpkin: Add power supply for CCI
...
Add a power supply for the Cache Coherent Interconnect node as it
is required to perform CPU DVFS because both are scaling together.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Link: https://lore.kernel.org/r/20250724083914.61351-32-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:02 +02:00
AngeloGioacchino Del Regno
181eb7d996
arm64: dts: mediatek: pumpkin-common: Fix pinctrl node names
...
Fix the pinctrl node names to adhere to the bindings, as the main
pin node is supposed to be named like "uart0-pins" and the pinmux
node named like "pins-bus".
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-31-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:02 +02:00
AngeloGioacchino Del Regno
510e32c27e
arm64: dts: mediatek: mt8183: Fix pinctrl node names
...
Fix the pinctrl node names to adhere to the bindings, as the main
pin node is supposed to be named like "uart0-pins" and the pinmux
node named like "pins-bus".
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-30-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:18:02 +02:00
Xinpeng Sun
cc54ed51c7
HID: intel-thc-hid: intel-quickspi: Add WCL Device IDs
...
Add THC SPI WildcatLake device IDs.
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com >
Reviewed-by: Even Xu <even.xu@intel.com >
Signed-off-by: Jiri Kosina <jkosina@suse.com >
2025-09-12 16:12:38 +02:00
Xinpeng Sun
510f05bb73
HID: intel-thc-hid: intel-quicki2c: Add WCL Device IDs
...
Add THC I2C WildcatLake device IDs.
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com >
Reviewed-by: Even Xu <even.xu@intel.com >
Signed-off-by: Jiri Kosina <jkosina@suse.com >
2025-09-12 16:12:38 +02:00
AngeloGioacchino Del Regno
ca27e6078f
arm64: dts: mediatek: acelink-ew-7886cax: Remove unnecessary cells in spi-nand
...
There is no need to specify #address-cells and #size-cells in a
node that has only one non-addressable subnode, and this is the
case of the flash@0 node in this devicetree, as it has only one
"partitions" subnode.
Remove those to suppress an avoid_unnecessary_addr_size warning.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-27-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:32 +02:00
AngeloGioacchino Del Regno
1d0775def5
arm64: dts: mediatek: mt7986a-bpi-r3: Set interrupt-parent to mdio switch
...
Being this an interrupt controller, the binding forbids to use
interrupts-extended and wants an `interrupts` property instead.
Since this interrupt controller's parent is on the GPIO controller
set it as interrupt-parent and change interrupts-extended to just
interrupts to silence a dtbs_check warning.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Link: https://lore.kernel.org/r/20250724083914.61351-26-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:31 +02:00
AngeloGioacchino Del Regno
e11590394f
arm64: dts: mediatek: mt7986a-bpi-r3: Fix SFP I2C node names
...
The binding wants the node to be named "i2c-number", alternatively
"i2c@address", but those are named "i2c-gpio-number" instead.
Rename those to i2c-0, i2c-1 to adhere to the binding and suppress
dtbs_check warnings.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-25-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:31 +02:00
AngeloGioacchino Del Regno
6b3fff78c1
arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address
...
The PCIe TPHY is under the soc bus, which provides MMIO, and all
nodes under that must use the bus, otherwise those would clearly
be out of place.
Add ranges to the PCIe tphy and assign the address to the main
node to silence a dtbs_check warning, and fix the children to
use the MMIO range of t-phy.
Fixes: 963c3b0c47 ("arm64: dts: mediatek: fix t-phy unit name")
Fixes: 918aed7abd ("arm64: dts: mt7986: add pcie related device nodes")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-24-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:31 +02:00
AngeloGioacchino Del Regno
3f9f2a32dd
arm64: dts: mediatek: Fix node name for SYSIRQ controller on all SoCs
...
The sysirq has "intpol-controller" as node name, but being this an
interrupt controller, it needs to be named "interrupt-controller"
as per what the bindings (correctly) expect.
This commit brings no functional changes, but fixes a dtbs_check
warning.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-23-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:31 +02:00
AngeloGioacchino Del Regno
20be341f0b
arm64: dts: mediatek: mt6795-sony-xperia-m5: Add pinctrl for mmc1/mmc2
...
Add pinctrl nodes for the MicroSD slot on mmc1 and SDIO Controller
on mmc2 and assign those to the respective controller nodes.
This makes sure that all of the pins are muxed in the right state
and with the right pullup/down(s) before trying to use the mmc
controllers.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Link: https://lore.kernel.org/r/20250724083914.61351-22-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:11:31 +02:00
Markus Schneider-Pargmann
ed68411e87
serial: 8250: omap: Support wakeup pinctrl state on suspend
...
UART can be used as a wakeup source for am62 from suspend to ram states.
To enable wakeup from UART am62 requires a wakeup flag being set in the
pinctrl.
If the device is marked as wakeup enabled, select the 'wakeup' pinctrl
state on suspend and restore the default pinctrl state on resume.
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com >
Signed-off-by: Kendall Willis <k-willis@ti.com >
Link: https://lore.kernel.org/r/20250910-uart-daisy-chain-8250-omap-v2-2-e90d44c1a9ac@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 16:11:12 +02:00
Markus Schneider-Pargmann
49fce0730f
dt-bindings: serial: 8250_omap: Add wakeup pinctrl state
...
Pins associated with the 8250 omap unit can be the source of a wakeup in
deep sleep states. To be able to wakeup, these pins have to be
configured in a special way. To support this configuration add the
default and wakeup pinctrl states.
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com >
Signed-off-by: Kendall Willis <k-willis@ti.com >
Link: https://lore.kernel.org/r/20250910-uart-daisy-chain-8250-omap-v2-1-e90d44c1a9ac@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 16:11:12 +02:00
Tapio Reijonen
8d17dc05c9
serial: max310x: improve interrupt handling
...
When there is a heavy load of receiving characters to all
four UART's, the warning 'Hardware RX FIFO overrun' is
sometimes detected.
The current implementation always service first the highest UART
until no more interrupt and then service another UART
(ex: UART3 will be serviced for as long as there are interrupts
for it, then UART2, etc).
This commit handle all individual interrupt sources before
reading the global IRQ register again.
This commit has also a nice side-effect of improving the efficiency
of the driver by reducing the number of reads of the global
IRQ register.
Signed-off-by: Tapio Reijonen <tapio.reijonen@vaisala.com >
Reviewed-by: Jiri Slaby <jirislaby@kernel.org >
Reviewed-by: Hugo Villeneuve <hvilleneuve@dimonoff.com >
Link: https://lore.kernel.org/r/20250908-master-max310x-improve-interrupt-handling-v3-1-91985e82ba39@vaisala.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 16:10:16 +02:00
AngeloGioacchino Del Regno
236681fb64
arm64: dts: mediatek: mt6795-xperia-m5: Fix mmc0 latch-ck value
...
Change the latch-ck value from 0x14 to 4: as only bits [0-3] are
actually used, the final value that gets written to the register
field for DAT_LATCH_CK_SEL is just 0x4.
This also fixes dtbs_check warnings.
Fixes: 5a65dcccf4 ("arm64: dts: mediatek: mt6795-xperia-m5: Add eMMC, MicroSD slot, SDIO")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Link: https://lore.kernel.org/r/20250724083914.61351-21-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:07:58 +02:00
AngeloGioacchino Del Regno
4f6a808b36
arm64: dts: mediatek: mt6795: Add mediatek,infracfg to iommu node
...
The "M4U" IOMMU requires a handle to the infracfg to switch to
the 4gb/pae addressing mode: add it.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-20-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:02:52 +02:00
AngeloGioacchino Del Regno
50dd9ea91d
arm64: dts: mediatek: mt6797: Remove bogus id property in i2c nodes
...
All of the I2C nodes in this devicetree has a bogus "id" property,
which was probably specifying the I2C bus number.
This property was never parsed and never used - and besides, it
also gives dtbs_check warnings: remove it from all i2c nodes.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Reviewed-by: Fei Shao <fshao@chromium.org >
Link: https://lore.kernel.org/r/20250724083914.61351-19-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com >
2025-09-12 16:00:55 +02:00
Edward Adam Davis
fc702e7df4
vt: move vc_saved_screen to within tty allocated judgment
...
Everything starts with the assumption that a tty has been allocated.
Therefore, Move it to within the tty allocation check.
Fixes: 23743ba647 ("vt: add support for smput/rmput escape codes")
Reported-by: syzbot+f6cb41c144427dc0796a@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=f6cb41c144427dc0796a
Tested-by: syzbot+f6cb41c144427dc0796a@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com >
Reviewed-by: Jiri Slaby <jirislaby@kernel.org >
Link: https://lore.kernel.org/r/tencent_CAD45DB31906CF890DBB25AB0DED12205D07@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:58:41 +02:00
Akiyoshi Kurita
0daed4c3b6
staging: rtl8723bs: fix typo in comment
...
Fix a misspelling in a header comment: "configurtions" -> "configurations".
Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20250912064406.707039-1-weibu@redadmin.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:54:19 +02:00
Yiming Qian
5865a858db
staging: sm750fb: rename snake case variables
...
Replaces CamelCase variable names with snake_case:
- dprBase -> dpr_base
- dpPortBase -> dp_port_base
Signed-off-by: Yiming Qian <qianym1996@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20250909060130.12919-3-qianym1996@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:54:01 +02:00
Yiming Qian
02accdf0ca
staging: sm750fb: remove unnecessary volatile qualifiers
...
The use of 'volatile' for memory-mapped I/O pointers is discouraged
in the Linux kernel as per
Documentation/process/volatile-considered-harmful.rst.
This patch removes the unnecessary 'volatile' qualifiers from the
lynx_accel struct members, improving code quality and maintainability.
Signed-off-by: Yiming Qian <qianym1996@gmail.com >
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org >
Link: https://lore.kernel.org/r/20250909060130.12919-2-qianym1996@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:54:01 +02:00
Akiyoshi Kurita
6f19c1ef7f
staging: rtl8723bs: rtw_efuse.h: simplify copyright banner
...
Replace the banner-style copyright comment with a single-line comment.
No functional changes.
Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org >
Link: https://lore.kernel.org/r/20250909053327.140763-1-weibu@redadmin.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:53:16 +02:00
Christophe Leroy
6f8fb022ef
perf: Completely remove possibility to override MAX_NR_CPUS
...
Commit 21b8732eb4 ("perf tools: Allow overriding MAX_NR_CPUS at
compile time") added the capability to override MAX_NR_CPUS. At
that time it was necessary to reduce the huge amount of RAM used
by static stats variables.
But this has been unnecessary since commit 6a1e2c5c26 ("perf stat:
Remove a set of shadow stats static variables"), and
commit e8399d34d5 ("libperf cpumap: Hide/reduce scope of
MAX_NR_CPUS") broke the build in that case because it failed to
add the guard around the new definition of MAX_NR_CPUS.
So cleanup things and remove guards completely to officialise it
is not necessary anymore to override MAX_NR_CPUS.
Fixes: e8399d34d5 ("libperf cpumap: Hide/reduce scope of MAX_NR_CPUS")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu >
Cc: Adrian Hunter <adrian.hunter@intel.com >
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com >
Cc: Ian Rogers <irogers@google.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Jiri Olsa <jolsa@kernel.org >
Cc: Kan Liang <kan.liang@linux.intel.com >
Cc: Leo Yan <leo.yan@arm.com >
Cc: Mark Rutland <mark.rutland@arm.com >
Cc: Namhyung Kim <namhyung@kernel.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Link: https://lore.kernel.org/all/8c8553387ebf904a9e5a93eaf643cb01164d9fb3.1736188471.git.christophe.leroy@csgroup.eu/
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com >
2025-09-12 10:52:22 -03:00
Michael Straube
013c09b7ac
staging: rtl8723bs: remove unused tables
...
Remove some unused tabels to get rid of dead code and thereby reduce the
object file size by more than 1400 bytes.
Signed-off-by: Michael Straube <straube.linux@gmail.com >
Link: https://lore.kernel.org/r/20250908061243.62692-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:51:55 +02:00
Christian Marangi
e2258cfd9b
nvmem: an8855: Add support for Airoha AN8855 Switch EFUSE
...
Add support for Airoha AN8855 Switch EFUSE. These EFUSE might be used
for calibration data for the internal switch PHYs.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131415.303407-6-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:49:03 +02:00
Christian Marangi
ddb095e81d
dt-bindings: nvmem: Document support for Airoha AN8855 Switch EFUSE
...
Document support for Airoha AN8855 Switch EFUSE used to calibrate
internal PHYs and store additional configuration info.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
Reviewed-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131415.303407-5-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:49:03 +02:00
Michael Walle
4a9b344e90
dt-bindings: nvmem: sl28cpld: add sa67mcu compatible
...
The Kontron SMARC-sAM67 has the same nvmem layout as the SMARC-sAL28. To
To be prepared for any board specific quirks, add a specific compatible.
Signed-off-by: Michael Walle <mwalle@kernel.org >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131415.303407-4-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:49:03 +02:00
Ciprian Costea
5a356145e9
nvmem: s32g-ocotp: Add driver for S32G OCOTP
...
Provide access to the On Chip One-Time Programmable Controller (OCOTP)
pages on the NXP S32G platform.
Signed-off-by: Ciprian Costea <ciprianmarian.costea@nxp.com >
Co-developed-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com >
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com >
Co-developed-by: Larisa Grigore <larisa.grigore@nxp.com >
Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com >
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131415.303407-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:49:03 +02:00
Ciprian Costea
9b58f88a1f
dt-bindings: nvmem: Add the nxp,s32g-ocotp yaml file
...
Add bindings to expose the On Chip One-Time Programmable Controller
(OCOTP) for the NXP s32g chipset. There are three versions of this
chip but they're compatible so we can fall back to the nxp,s32g2-ocotp
compatible.
Signed-off-by: Ciprian Costea <ciprianmarian.costea@nxp.com >
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org >
Reviewed-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131415.303407-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:49:03 +02:00
Ling Xu
698de37f78
misc: fastrpc: add support for gdsp remoteproc
...
Some platforms (like lemans) feature one or more GPDSPs (General
Purpose DSPs). Similar to other kinds of Hexagon DSPs, they provide
a FastRPC implementation, allowing code execution in both signed and
unsigned protection domains. Extend the checks to allow domain names
starting with "gdsp" (possibly followed by an index).
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com >
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com >
Signed-off-by: Ling Xu <quic_lxu5@quicinc.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131302.303199-5-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:48:45 +02:00
Ling Xu
fb4679f628
misc: fastrpc: Cleanup the domain names
...
Currently the domain ids are added for each instance of domains, this is
totally not scalable approach. Clean this mess and create domain ids for
only domains not its instances.
Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org >
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org >
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com >
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com >
Signed-off-by: Ling Xu <quic_lxu5@quicinc.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131302.303199-4-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:48:45 +02:00
Ling Xu
d81c041ed5
misc: fastrpc: Remove kernel-side domain checks from capability ioctl
...
Domain ID in the uAPI is misleading. Remove checks and log messages
related to 'domain' field in capability structure. Update UAPI to
mark the field as unused.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com >
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com >
Signed-off-by: Ling Xu <quic_lxu5@quicinc.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131302.303199-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:48:45 +02:00
Ling Xu
8de0848447
dt-bindings: misc: qcom,fastrpc: Add GDSP label
...
There are some products which support GDSP remoteprocs. GDSP is General
Purpose DSP where tasks can be offloaded. There are 2 GDSPs named gdsp0
and gdsp1. Add "gdsp0" and "gdsp1" as the new supported labels for GDSP
fastrpc domains.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com >
Signed-off-by: Ling Xu <quic_lxu5@quicinc.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131302.303199-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:48:45 +02:00
Xichao Zhao
ae0de63333
slimbus: messaging: fix "transfered"->"transferred"
...
Trivial fix to spelling mistake in comment text.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131202.303026-4-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:47:38 +02:00
Qiang Liu
5c6794f16b
slimbus: messaging: Remove redundant code
...
Assigning txn->comp to itself has no effect.
Signed-off-by: Qiang Liu <liuqiang@kylinos.cn >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131202.303026-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:47:37 +02:00
Srinivas Kandagatla
7cbba32a2d
slimbus: qcom: remove unused qcom controller driver
...
Qcom Slimbus controller driver is totally unused and dead code, there is
no point in keeping this driver in the kernel without users.
This patch removes the driver along with device tree bindings.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com >
Acked-by: Rob Herring (Arm) <robh@kernel.org >
Acked-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com >
Signed-off-by: Srinivas Kandagatla <srini@kernel.org >
Link: https://lore.kernel.org/r/20250912131202.303026-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-09-12 15:47:37 +02:00
Rodrigo Vivi
fed1a9d60f
drm/xe: Fix circular locking dependency
...
Fix this:
======================================================
WARNING: possible circular locking dependency detected
6.17.0-rc4-lgci-xe-xe-pw-153723v2+ #1 Tainted: G S U
------------------------------------------------------
xe_pm/11324 is trying to acquire lock:
ffff8881085f22a0 (&pc->freq_lock){+.+.}-{3:3}, at:
xe_guc_pc_start+0x39f/0xf70 [xe]
but task is already holding lock:
ffffffffa1020420 (xe_rpm_nod3cold_map){+.+.}-{0:0}, at:
xe_rpm_lockmap_acquire+0x1a/0x70 [xe]
which lock already depends on the new lock.
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(xe_rpm_nod3cold_map);
lock(&pc->freq_lock);
lock(xe_rpm_nod3cold_map);
lock(&pc->freq_lock);
Reported-by: Michal Wajdeczko <michal.wajdeczko@intel.com >
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6122
Fixes: 60d2b78991 ("drm/xe/guc: Add SLPC power profile interface")
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com >
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com >
Tested-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com >
Link: https://lore.kernel.org/r/20250911212024.966757-2-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com >
2025-09-12 09:38:08 -04:00
Ulf Hansson
3acbb5feaf
mmc: Merge branch fixes into next
...
Merge the mmc fixes for v6.17-rc[n] into the next branch, to allow them to
get tested together with the new mmc changes that are targeted for v6.18.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:19:21 +02:00
Bean Huo
ce7d8a3e19
mmc: core: Improve RPMB frame handling code
...
Introduce RPMB_FRAME_SIZE, CHECK_SIZE_NEQ(), and CHECK_SIZE_ALIGNED()
macros to replace repetitive sizeof(struct rpmb_frame) checks in
mmc_route_rpmb_frames().
Signed-off-by: Bean Huo <beanhuo@micron.com >
Reviewed-by: Avri Altman <avri.altman@sandisk.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:09:53 +02:00
Bean Huo
072755cca7
mmc: core: Fix variable shadowing in mmc_route_rpmb_frames()
...
Rename the inner 'frm' variable to 'resp_frm' in the write path of
mmc_route_rpmb_frames() to avoid shadowing the outer 'frm' variable.
The function declares 'frm' at function scope pointing to the request
frame, but then redeclares another 'frm' variable inside the write
block pointing to the response frame. This shadowing makes the code
confusing and error-prone.
Using 'resp_frm' for the response frame makes the distinction clear
and improves code readability.
Fixes: 7852028a35 ("mmc: block: register RPMB partition with the RPMB subsystem")
Reviewed-by: Avri Altman <avri.altman@sandisk.com >
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org >
Signed-off-by: Bean Huo <beanhuo@micron.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:09:53 +02:00
Ben Chuang
77a436c93d
mmc: sdhci-pci-gli: GL9767: Fix initializing the UHS-II interface during a power-on
...
According to the power structure of IC hardware design for UHS-II
interface, reset control and timing must be added to the initialization
process of powering on the UHS-II interface.
Fixes: 27dd3b8255 ("mmc: sdhci-pci-gli: enable UHS-II mode for GL9767")
Cc: stable@vger.kernel.org # v6.13+
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw >
Acked-by: Adrian Hunter <adrian.hunter@intel.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:00:52 +02:00
Ben Chuang
09c2b628f6
mmc: sdhci-uhs2: Fix calling incorrect sdhci_set_clock() function
...
Fix calling incorrect sdhci_set_clock() in __sdhci_uhs2_set_ios() when the
vendor defines its own sdhci_set_clock().
Fixes: 10c8298a05 ("mmc: sdhci-uhs2: add set_ios()")
Cc: stable@vger.kernel.org # v6.13+
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw >
Acked-by: Adrian Hunter <adrian.hunter@intel.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:00:52 +02:00
Ben Chuang
7b7e71683b
mmc: sdhci: Move the code related to setting the clock from sdhci_set_ios_common() into sdhci_set_ios()
...
The sdhci_set_clock() is called in sdhci_set_ios_common() and
__sdhci_uhs2_set_ios(). According to Section 3.13.2 "Card Interface
Detection Sequence" of the SD Host Controller Standard Specification
Version 7.00, the SD clock is supplied after power is supplied, so we only
need one in __sdhci_uhs2_set_ios(). Let's move the code related to setting
the clock from sdhci_set_ios_common() into sdhci_set_ios() and modify
the parameters passed to sdhci_set_clock() in __sdhci_uhs2_set_ios().
Fixes: 10c8298a05 ("mmc: sdhci-uhs2: add set_ios()")
Cc: stable@vger.kernel.org # v6.13+
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw >
Acked-by: Adrian Hunter <adrian.hunter@intel.com >
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2025-09-12 15:00:52 +02:00
Josua Mayer
1cc3d6c864
arm64: dts: marvell: cn9130-sr-som: add missing properties to emmc
...
CN9130 System on Module connects an eMMC to ap_sdhci0, but the common
properties indicating eMMC were not added to device-tree.
Add no-sdio and non-removable as applicable to eMMC.
Signed-off-by: Josua Mayer <josua@solid-run.com >
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com >
2025-09-12 14:59:19 +02:00