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

Commit 8b934669 authored by Dov Levenglick's avatar Dov Levenglick
Browse files

usb: dwc3: dbm: Fix DBM speed configuration



Without this fix, DBM_GEN_CFG is always configured
with 0 - meaning HS.
This fix allow configuring HS/SS properly.

Change-Id: I9ce7e946cac444e4d70c22979a3c8600122acde5
Signed-off-by: default avatarBar Weiner <bweiner@codeaurora.org>
Signed-off-by: default avatarDov Levenglick <dovl@codeaurora.org>
parent 66f6f694
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -333,7 +333,7 @@ static int data_fifo_config(u8 dep_num, phys_addr_t addr,

static void set_speed(bool speed)
{
	msm_dbm_write_reg(dbm_data->base, DBM_GEN_CFG, speed >> 2);
	msm_dbm_write_reg(dbm_data->base, DBM_GEN_CFG, speed);
}

static void enable(void) {}
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ static int data_fifo_config(u8 dep_num, phys_addr_t addr,

static void set_speed(bool speed)
{
	msm_dbm_write_reg(dbm_data->base, DBM_GEN_CFG, speed >> 2);
	msm_dbm_write_reg(dbm_data->base, DBM_GEN_CFG, speed);
}

static void enable(void)