mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
USB: serial: mos7720: fix parallel-port state restore
commit 975323ab8f116667676c30ca3502a6757bd89e8d upstream.
The parallel-port restore operations is called when a driver claims the
port and is supposed to restore the provided state (e.g. saved when
releasing the port).
Fixes: b69578df7e ("USB: usbserial: mos7720: add support for parallel port on moschip 7715")
Cc: stable <stable@vger.kernel.org> # 2.6.35
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6eab3f646b
commit
08c24438fb
1 changed files with 2 additions and 0 deletions
|
|
@ -638,6 +638,8 @@ static void parport_mos7715_restore_state(struct parport *pp,
|
|||
spin_unlock(&release_lock);
|
||||
return;
|
||||
}
|
||||
mos_parport->shadowDCR = s->u.pc.ctr;
|
||||
mos_parport->shadowECR = s->u.pc.ecr;
|
||||
write_parport_reg_nonblock(mos_parport, MOS7720_DCR,
|
||||
mos_parport->shadowDCR);
|
||||
write_parport_reg_nonblock(mos_parport, MOS7720_ECR,
|
||||
|
|
|
|||
Loading…
Reference in a new issue