projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be46cfb
)
soundwire: intel: remove BIOS work-arounds
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Thu, 25 Jul 2019 23:40:00 +0000
(18:40 -0500)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 2 Aug 2019 11:58:16 +0000
(17:28 +0530)
the values passed by all existing BIOS are fine, let's use them as is.
The existing code must have been needed only on early prototypes.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20190725234032.21152-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c
patch
|
blob
|
history
diff --git
a/drivers/soundwire/intel.c
b/drivers/soundwire/intel.c
index
317873b
..
c82ca4e
100644
(file)
--- a/
drivers/soundwire/intel.c
+++ b/
drivers/soundwire/intel.c
@@
-801,17
+801,6
@@
static int intel_prop_read(struct sdw_bus *bus)
/* Initialize with default handler to read all DisCo properties */
sdw_master_read_prop(bus);
- /* BIOS is not giving some values correctly. So, lets override them */
- bus->prop.num_clk_freq = 1;
- bus->prop.clk_freq = devm_kcalloc(bus->dev, bus->prop.num_clk_freq,
- sizeof(*bus->prop.clk_freq),
- GFP_KERNEL);
- if (!bus->prop.clk_freq)
- return -ENOMEM;
-
- bus->prop.clk_freq[0] = bus->prop.max_clk_freq;
- bus->prop.err_threshold = 5;
-
return 0;
}