Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
24fc484a
Commit
24fc484a
authored
Apr 22, 2009
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' into for-next
parents
2ecf0a57
83cff839
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
17 deletions
+29
-17
drivers/ide/ide-cd.c
drivers/ide/ide-cd.c
+1
-1
drivers/ide/ide-gd.c
drivers/ide/ide-gd.c
+16
-1
drivers/ide/palm_bk3710.c
drivers/ide/palm_bk3710.c
+12
-14
drivers/macintosh/mediabay.c
drivers/macintosh/mediabay.c
+0
-1
No files found.
drivers/ide/ide-cd.c
View file @
24fc484a
...
...
@@ -577,7 +577,7 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
struct
request
*
rq
=
hwif
->
rq
;
ide_expiry_t
*
expiry
=
NULL
;
int
dma_error
=
0
,
dma
,
thislen
,
uptodate
=
0
;
int
write
=
(
rq_data_dir
(
rq
)
==
WRITE
)
?
1
:
0
,
rc
,
nsectors
;
int
write
=
(
rq_data_dir
(
rq
)
==
WRITE
)
?
1
:
0
,
rc
=
0
,
nsectors
;
int
sense
=
blk_sense_request
(
rq
);
unsigned
int
timeout
;
u16
len
;
...
...
drivers/ide/ide-gd.c
View file @
24fc484a
...
...
@@ -7,6 +7,7 @@
#include <linux/mutex.h>
#include <linux/ide.h>
#include <linux/hdreg.h>
#include <linux/dmi.h>
#if !defined(CONFIG_DEBUG_BLOCK_EXT_DEVT)
#define IDE_DISK_MINORS (1 << PARTN_BITS)
...
...
@@ -99,6 +100,19 @@ static void ide_gd_resume(ide_drive_t *drive)
(
void
)
drive
->
disk_ops
->
get_capacity
(
drive
);
}
static
const
struct
dmi_system_id
ide_coldreboot_table
[]
=
{
{
/* Acer TravelMate 66x cuts power during reboot */
.
ident
=
"Acer TravelMate 660"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Acer"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"TravelMate 660"
),
},
},
{
}
/* terminate list */
};
static
void
ide_gd_shutdown
(
ide_drive_t
*
drive
)
{
#ifdef CONFIG_ALPHA
...
...
@@ -115,7 +129,8 @@ static void ide_gd_shutdown(ide_drive_t *drive)
the disk to expire its write cache. */
if
(
system_state
!=
SYSTEM_POWER_OFF
)
{
#else
if
(
system_state
==
SYSTEM_RESTART
)
{
if
(
system_state
==
SYSTEM_RESTART
&&
!
dmi_check_system
(
ide_coldreboot_table
))
{
#endif
drive
->
disk_ops
->
flush
(
drive
);
return
;
...
...
drivers/ide/palm_bk3710.c
View file @
24fc484a
...
...
@@ -39,14 +39,6 @@
/* Primary Control Offset */
#define IDE_PALM_ATA_PRI_CTL_OFFSET 0x3F6
/*
* PalmChip 3710 IDE Controller UDMA timing structure Definition
*/
struct
palm_bk3710_udmatiming
{
unsigned
int
rptime
;
/* Ready to pause time */
unsigned
int
cycletime
;
/* Cycle Time */
};
#define BK3710_BMICP 0x00
#define BK3710_BMISP 0x02
#define BK3710_BMIDTP 0x04
...
...
@@ -75,13 +67,19 @@ struct palm_bk3710_udmatiming {
static
unsigned
ideclk_period
;
/* in nanoseconds */
struct
palm_bk3710_udmatiming
{
unsigned
int
rptime
;
/* tRP -- Ready to pause time (nsec) */
unsigned
int
cycletime
;
/* tCYCTYP2/2 -- avg Cycle Time (nsec) */
/* tENV is always a minimum of 20 nsec */
};
static
const
struct
palm_bk3710_udmatiming
palm_bk3710_udmatimings
[
6
]
=
{
{
160
,
240
},
/* UDMA Mode 0 */
{
125
,
160
},
/* UDMA Mode 1 */
{
100
,
120
},
/* UDMA Mode 2 */
{
100
,
90
},
/* UDMA Mode 3 */
{
100
,
60
},
/* UDMA Mode 4 */
{
85
,
40
},
/* UDMA Mode 5 */
{
160
,
240
/
2
,},
/* UDMA Mode 0 */
{
125
,
160
/
2
,},
/* UDMA Mode 1 */
{
100
,
120
/
2
,},
/* UDMA Mode 2 */
{
100
,
90
/
2
,
},
/* UDMA Mode 3 */
{
100
,
60
/
2
,
},
/* UDMA Mode 4 */
{
85
,
40
/
2
,
},
/* UDMA Mode 5 */
};
static
void
palm_bk3710_setudmamode
(
void
__iomem
*
base
,
unsigned
int
dev
,
...
...
drivers/macintosh/mediabay.c
View file @
24fc484a
...
...
@@ -18,7 +18,6 @@
#include <linux/timer.h>
#include <linux/stddef.h>
#include <linux/init.h>
#include <linux/ide.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <asm/prom.h>
...
...
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