Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ececd9bc
Commit
ececd9bc
authored
Jun 13, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB whiteheat driver: changes due to the usb-serial api changes.
- moved the firmware download to probe() time
parent
5e0dd8c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.c
+15
-15
No files found.
drivers/usb/serial/whiteheat.c
View file @
ececd9bc
...
...
@@ -125,9 +125,9 @@ static int whiteheat_ioctl (struct usb_serial_port *port, struct file * file,
static
void
whiteheat_set_termios
(
struct
usb_serial_port
*
port
,
struct
termios
*
old
);
static
void
whiteheat_throttle
(
struct
usb_serial_port
*
port
);
static
void
whiteheat_unthrottle
(
struct
usb_serial_port
*
port
);
static
int
whiteheat_f
ake_startup
(
struct
usb_serial
*
serial
);
static
int
whiteheat_
real_startup
(
struct
usb_serial
*
serial
);
static
void
whiteheat_
real_shutdown
(
struct
usb_serial
*
serial
);
static
int
whiteheat_f
irmware_download
(
struct
usb_serial
*
serial
);
static
int
whiteheat_
attach
(
struct
usb_serial
*
serial
);
static
void
whiteheat_
shutdown
(
struct
usb_serial
*
serial
);
static
struct
usb_serial_device_type
whiteheat_fake_device
=
{
owner:
THIS_MODULE
,
...
...
@@ -137,7 +137,7 @@ static struct usb_serial_device_type whiteheat_fake_device = {
num_bulk_in:
NUM_DONT_CARE
,
num_bulk_out:
NUM_DONT_CARE
,
num_ports:
1
,
startup:
whiteheat_fake_startup
,
probe:
whiteheat_firmware_download
,
};
static
struct
usb_serial_device_type
whiteheat_device
=
{
...
...
@@ -154,8 +154,8 @@ static struct usb_serial_device_type whiteheat_device = {
unthrottle:
whiteheat_unthrottle
,
ioctl:
whiteheat_ioctl
,
set_termios:
whiteheat_set_termios
,
startup:
whiteheat_real_startup
,
shutdown:
whiteheat_
real_
shutdown
,
attach:
whiteheat_attach
,
shutdown:
whiteheat_shutdown
,
};
struct
whiteheat_private
{
...
...
@@ -504,7 +504,7 @@ static void whiteheat_unthrottle (struct usb_serial_port *port)
- device renumerated itself and comes up as new device id with all
firmware download completed.
*/
static
int
whiteheat_fake_startup
(
struct
usb_serial
*
serial
)
static
int
whiteheat_firmware_download
(
struct
usb_serial
*
serial
)
{
int
response
;
const
struct
whiteheat_hex_record
*
record
;
...
...
@@ -518,8 +518,8 @@ static int whiteheat_fake_startup (struct usb_serial *serial)
response
=
ezusb_writememory
(
serial
,
record
->
address
,
(
unsigned
char
*
)
record
->
data
,
record
->
data_size
,
0xa0
);
if
(
response
<
0
)
{
err
(
__FUNCTION__
" - ezusb_writememory failed for loader (%d %04X %p %d)"
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
err
(
"%s - ezusb_writememory failed for loader (%d %04X %p %d)"
,
__FUNCTION__
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
break
;
}
++
record
;
...
...
@@ -535,8 +535,8 @@ static int whiteheat_fake_startup (struct usb_serial *serial)
response
=
ezusb_writememory
(
serial
,
record
->
address
,
(
unsigned
char
*
)
record
->
data
,
record
->
data_size
,
0xa3
);
if
(
response
<
0
)
{
err
(
__FUNCTION__
"
- ezusb_writememory failed for first firmware step (%d %04X %p %d)"
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
err
(
"%s
- ezusb_writememory failed for first firmware step (%d %04X %p %d)"
,
__FUNCTION__
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
break
;
}
++
record
;
...
...
@@ -549,8 +549,8 @@ static int whiteheat_fake_startup (struct usb_serial *serial)
response
=
ezusb_writememory
(
serial
,
record
->
address
,
(
unsigned
char
*
)
record
->
data
,
record
->
data_size
,
0xa0
);
if
(
response
<
0
)
{
err
(
__FUNCTION__
"
- ezusb_writememory failed for second firmware step (%d %04X %p %d)"
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
err
(
"%s
- ezusb_writememory failed for second firmware step (%d %04X %p %d)"
,
__FUNCTION__
,
response
,
record
->
address
,
record
->
data
,
record
->
data_size
);
break
;
}
++
record
;
...
...
@@ -563,7 +563,7 @@ static int whiteheat_fake_startup (struct usb_serial *serial)
}
static
int
whiteheat_real_startup
(
struct
usb_serial
*
serial
)
static
int
whiteheat_attach
(
struct
usb_serial
*
serial
)
{
struct
whiteheat_hw_info
*
hw_info
;
int
pipe
;
...
...
@@ -622,7 +622,7 @@ static int whiteheat_real_startup (struct usb_serial *serial)
return
0
;
}
static
void
whiteheat_
real_
shutdown
(
struct
usb_serial
*
serial
)
static
void
whiteheat_shutdown
(
struct
usb_serial
*
serial
)
{
struct
usb_serial_port
*
command_port
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment