Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da1042b2 authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

soundwire: update soundwire driver for 32 bit environment



Soundwire driver is not compitible for 32 bit mode,
In 32 bit mode if we read 64 bit device tree entries
the 32 bit is truncated with this conversion.
update soundwire driver to read 64 bit device tree entries
properly.

Change-Id: Iebc26f4ee5469fb3435dc3d324a976836d60e10f
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 6b6b4c37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ int of_register_swr_devices(struct swr_master *master)

	for_each_available_child_of_node(master->dev.of_node, node) {
		struct swr_boardinfo info = {};
		phys_addr_t addr;
		u64 addr;

		dev_dbg(&master->dev, "of_swr:register %s\n", node->full_name);

+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ static inline struct swr_driver *to_swr_driver(struct device_driver *drv)
struct swr_boardinfo {
	char               name[SOUNDWIRE_NAME_SIZE];
	int                bus_num;
	unsigned long      addr;
	u64		   addr;
	struct device_node *of_node;
	struct swr_device  *swr_slave;
};