mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 20:34:20 +08:00
soundwire: bus: Remove unused reset_page_addr() callback
A previous patch removed unnecessary zeroing of the page registers after a paged transaction, so now the reset_page_addr callback is unused and can be removed. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20230123164949.245898-3-rf@opensource.cirrus.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
c8a0d6b256
commit
3bd3bc2ada
@ -770,20 +770,6 @@ cdns_xfer_msg_defer(struct sdw_bus *bus,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(cdns_xfer_msg_defer);
|
EXPORT_SYMBOL(cdns_xfer_msg_defer);
|
||||||
|
|
||||||
enum sdw_command_response
|
|
||||||
cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num)
|
|
||||||
{
|
|
||||||
struct sdw_cdns *cdns = bus_to_cdns(bus);
|
|
||||||
struct sdw_msg msg;
|
|
||||||
|
|
||||||
/* Create dummy message with valid device number */
|
|
||||||
memset(&msg, 0, sizeof(msg));
|
|
||||||
msg.dev_num = dev_num;
|
|
||||||
|
|
||||||
return cdns_program_scp_addr(cdns, &msg);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(cdns_reset_page_addr);
|
|
||||||
|
|
||||||
u32 cdns_read_ping_status(struct sdw_bus *bus)
|
u32 cdns_read_ping_status(struct sdw_bus *bus)
|
||||||
{
|
{
|
||||||
struct sdw_cdns *cdns = bus_to_cdns(bus);
|
struct sdw_cdns *cdns = bus_to_cdns(bus);
|
||||||
|
@ -182,9 +182,6 @@ struct sdw_cdns_pdi *sdw_cdns_alloc_pdi(struct sdw_cdns *cdns,
|
|||||||
void sdw_cdns_config_stream(struct sdw_cdns *cdns,
|
void sdw_cdns_config_stream(struct sdw_cdns *cdns,
|
||||||
u32 ch, u32 dir, struct sdw_cdns_pdi *pdi);
|
u32 ch, u32 dir, struct sdw_cdns_pdi *pdi);
|
||||||
|
|
||||||
enum sdw_command_response
|
|
||||||
cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num);
|
|
||||||
|
|
||||||
enum sdw_command_response
|
enum sdw_command_response
|
||||||
cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg);
|
cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg);
|
||||||
|
|
||||||
|
@ -113,7 +113,6 @@ static struct sdw_master_ops sdw_intel_ops = {
|
|||||||
.override_adr = sdw_dmi_override_adr,
|
.override_adr = sdw_dmi_override_adr,
|
||||||
.xfer_msg = cdns_xfer_msg,
|
.xfer_msg = cdns_xfer_msg,
|
||||||
.xfer_msg_defer = cdns_xfer_msg_defer,
|
.xfer_msg_defer = cdns_xfer_msg_defer,
|
||||||
.reset_page_addr = cdns_reset_page_addr,
|
|
||||||
.set_bus_conf = cdns_bus_conf,
|
.set_bus_conf = cdns_bus_conf,
|
||||||
.pre_bank_switch = generic_pre_bank_switch,
|
.pre_bank_switch = generic_pre_bank_switch,
|
||||||
.post_bank_switch = generic_post_bank_switch,
|
.post_bank_switch = generic_post_bank_switch,
|
||||||
|
@ -838,7 +838,6 @@ struct sdw_defer {
|
|||||||
* @override_adr: Override value read from firmware (quirk for buggy firmware)
|
* @override_adr: Override value read from firmware (quirk for buggy firmware)
|
||||||
* @xfer_msg: Transfer message callback
|
* @xfer_msg: Transfer message callback
|
||||||
* @xfer_msg_defer: Defer version of transfer message callback
|
* @xfer_msg_defer: Defer version of transfer message callback
|
||||||
* @reset_page_addr: Reset the SCP page address registers
|
|
||||||
* @set_bus_conf: Set the bus configuration
|
* @set_bus_conf: Set the bus configuration
|
||||||
* @pre_bank_switch: Callback for pre bank switch
|
* @pre_bank_switch: Callback for pre bank switch
|
||||||
* @post_bank_switch: Callback for post bank switch
|
* @post_bank_switch: Callback for post bank switch
|
||||||
@ -854,8 +853,6 @@ struct sdw_master_ops {
|
|||||||
enum sdw_command_response (*xfer_msg_defer)
|
enum sdw_command_response (*xfer_msg_defer)
|
||||||
(struct sdw_bus *bus, struct sdw_msg *msg,
|
(struct sdw_bus *bus, struct sdw_msg *msg,
|
||||||
struct sdw_defer *defer);
|
struct sdw_defer *defer);
|
||||||
enum sdw_command_response (*reset_page_addr)
|
|
||||||
(struct sdw_bus *bus, unsigned int dev_num);
|
|
||||||
int (*set_bus_conf)(struct sdw_bus *bus,
|
int (*set_bus_conf)(struct sdw_bus *bus,
|
||||||
struct sdw_bus_params *params);
|
struct sdw_bus_params *params);
|
||||||
int (*pre_bank_switch)(struct sdw_bus *bus);
|
int (*pre_bank_switch)(struct sdw_bus *bus);
|
||||||
|
Loading…
Reference in New Issue
Block a user