Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55262
b: refs/heads/master
c: 0c23664
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed May 9, 2007
1 parent ba4ccdc commit 3bdb357
Show file tree
Hide file tree
Showing 64 changed files with 2,448 additions and 2,185 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 127cda1e8cc282de1ca7a9dcc3866841977b9fcc
refs/heads/master: 0c23664ee8c42f247dba7ceb620baabd892cef88
9 changes: 9 additions & 0 deletions trunk/Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ Who: Dan Dennedy <dan@dennedy.org>, Stefan Richter <stefanr@s5r6.in-berlin.de>

---------------------------

What: old NCR53C9x driver
When: October 2007
Why: Replaced by the much better esp_scsi driver. Actual low-level
driver can ported over almost trivially.
Who: David Miller <davem@davemloft.net>
Christoph Hellwig <hch@lst.de>

---------------------------

What: Video4Linux API 1 ioctls and video_decoder.h from Video devices.
When: December 2006
Why: V4L1 AP1 was replaced by V4L2 API. during migration from 2.4 to 2.6
Expand Down
4 changes: 2 additions & 2 deletions trunk/Documentation/scsi/aacraid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Supported Cards/Chipsets
9005:0285:9005:02b0 (Sunrise Lake ARK)
9005:0285:9005:02b1 Adaptec (Voodoo 8 internal 8 external)
9005:0285:108e:7aac SUN STK RAID REM (Voodoo44 Coyote)
9005:0285:108e:0286 SUN SG-XPCIESAS-R-IN (Cougar)
9005:0285:108e:0287 SUN SG-XPCIESAS-R-EX (Prometheus)
9005:0285:108e:0286 SUN STK RAID INT (Cougar)
9005:0285:108e:0287 SUN STK RAID EXT (Prometheus)

People
-------------------------
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/i386/boot/video.S
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,9 @@ mode_set:
cmpb $VIDEO_FIRST_V7>>8, %ah
jz setv7

#ifdef CONFIG_FB
cmpb $VIDEO_FIRST_VESA>>8, %ah
jnc check_vesa
#endif


orb %ah, %ah
jz setmenu

Expand Down
27 changes: 24 additions & 3 deletions trunk/drivers/misc/tifm_7xx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ static unsigned char tifm_7xx1_toggle_sock_power(char __iomem *sock_addr)
== TIFM_TYPE_XD)
msleep(40);

writel((s_state & 7) | 0x0c00, sock_addr + SOCK_CONTROL);
writel((s_state & TIFM_CTRL_POWER_MASK) | 0x0c00,
sock_addr + SOCK_CONTROL);
/* wait for power to stabilize */
msleep(20);
for (cnt = 16; cnt <= 256; cnt <<= 1) {
Expand All @@ -122,6 +123,12 @@ static unsigned char tifm_7xx1_toggle_sock_power(char __iomem *sock_addr)
return (readl(sock_addr + SOCK_PRESENT_STATE) >> 4) & 7;
}

inline static void tifm_7xx1_sock_power_off(char __iomem *sock_addr)
{
writel((~TIFM_CTRL_POWER_MASK) & readl(sock_addr + SOCK_CONTROL),
sock_addr + SOCK_CONTROL);
}

inline static char __iomem *
tifm_7xx1_sock_addr(char __iomem *base_addr, unsigned int sock_num)
{
Expand All @@ -133,6 +140,7 @@ static void tifm_7xx1_switch_media(struct work_struct *work)
struct tifm_adapter *fm = container_of(work, struct tifm_adapter,
media_switcher);
struct tifm_dev *sock;
char __iomem *sock_addr;
unsigned long flags;
unsigned char media_id;
unsigned int socket_change_set, cnt;
Expand All @@ -158,11 +166,12 @@ static void tifm_7xx1_switch_media(struct work_struct *work)
"%s : demand removing card from socket %u:%u\n",
fm->cdev.class_id, fm->id, cnt);
fm->sockets[cnt] = NULL;
sock_addr = sock->addr;
spin_unlock_irqrestore(&fm->lock, flags);
device_unregister(&sock->dev);
spin_lock_irqsave(&fm->lock, flags);
writel(0x0e00, tifm_7xx1_sock_addr(fm->addr, cnt)
+ SOCK_CONTROL);
tifm_7xx1_sock_power_off(sock_addr);
writel(0x0e00, sock_addr + SOCK_CONTROL);
}

spin_unlock_irqrestore(&fm->lock, flags);
Expand Down Expand Up @@ -205,8 +214,16 @@ static void tifm_7xx1_switch_media(struct work_struct *work)

static int tifm_7xx1_suspend(struct pci_dev *dev, pm_message_t state)
{
struct tifm_adapter *fm = pci_get_drvdata(dev);
int cnt;

dev_dbg(&dev->dev, "suspending host\n");

for (cnt = 0; cnt < fm->num_sockets; cnt++) {
if (fm->sockets[cnt])
tifm_7xx1_sock_power_off(fm->sockets[cnt]->addr);
}

pci_save_state(dev);
pci_enable_wake(dev, pci_choose_state(dev, state), 0);
pci_disable_device(dev);
Expand Down Expand Up @@ -357,6 +374,7 @@ static int tifm_7xx1_probe(struct pci_dev *dev,
static void tifm_7xx1_remove(struct pci_dev *dev)
{
struct tifm_adapter *fm = pci_get_drvdata(dev);
int cnt;

fm->eject = tifm_7xx1_dummy_eject;
writel(TIFM_IRQ_SETALL, fm->addr + FM_CLEAR_INTERRUPT_ENABLE);
Expand All @@ -365,6 +383,9 @@ static void tifm_7xx1_remove(struct pci_dev *dev)

tifm_remove_adapter(fm);

for (cnt = 0; cnt < fm->num_sockets; cnt++)
tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt));

pci_set_drvdata(dev, NULL);

iounmap(fm->addr);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/mmc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# MMC subsystem configuration
#

menu "MMC/SD Card support"

config MMC
tristate "MMC support"
menuconfig MMC
tristate "MMC/SD card support"
help
MMC is the "multi-media card" bus protocol.

Expand All @@ -19,10 +17,12 @@ config MMC_DEBUG
This is an option for use by developers; most people should
say N here. This enables MMC core and driver debugging.

if MMC

source "drivers/mmc/core/Kconfig"

source "drivers/mmc/card/Kconfig"

source "drivers/mmc/host/Kconfig"

endmenu
endif # MMC
3 changes: 1 addition & 2 deletions trunk/drivers/mmc/card/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#

comment "MMC/SD Card Drivers"
depends MMC

config MMC_BLOCK
tristate "MMC block device driver"
depends on MMC && BLOCK
depends on BLOCK
default y
help
Say Y here to enable the MMC block device driver support.
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/mmc/core/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

config MMC_UNSAFE_RESUME
bool "Allow unsafe resume (DANGEROUS)"
depends on MMC != n
help
If you say Y here, the MMC layer will assume that all cards
stayed in their respective slots during the suspend. The
Expand Down
10 changes: 6 additions & 4 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,10 @@ void __mmc_release_bus(struct mmc_host *host)
void mmc_detect_change(struct mmc_host *host, unsigned long delay)
{
#ifdef CONFIG_MMC_DEBUG
mmc_claim_host(host);
unsigned long flags;
spin_lock_irqsave(host->lock, flags);
BUG_ON(host->removed);
mmc_release_host(host);
spin_unlock_irqrestore(host->lock, flags);
#endif

mmc_schedule_delayed_work(&host->detect, delay);
Expand Down Expand Up @@ -625,9 +626,10 @@ EXPORT_SYMBOL(mmc_add_host);
void mmc_remove_host(struct mmc_host *host)
{
#ifdef CONFIG_MMC_DEBUG
mmc_claim_host(host);
unsigned long flags;
spin_lock_irqsave(&host->lock, flags);
host->removed = 1;
mmc_release_host(host);
spin_unlock_irqrestore(&host->lock, flags);
#endif

mmc_flush_scheduled_work();
Expand Down
19 changes: 9 additions & 10 deletions trunk/drivers/mmc/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#

comment "MMC/SD Host Controller Drivers"
depends on MMC

config MMC_ARMMMCI
tristate "ARM AMBA Multimedia Card Interface support"
depends on ARM_AMBA && MMC
depends on ARM_AMBA
help
This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
Interface (PL180 and PL181) support. If you have an ARM(R)
Expand All @@ -17,7 +16,7 @@ config MMC_ARMMMCI

config MMC_PXA
tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
depends on ARCH_PXA && MMC
depends on ARCH_PXA
help
This selects the Intel(R) PXA(R) Multimedia card Interface.
If you have a PXA(R) platform with a Multimedia Card slot,
Expand All @@ -27,7 +26,7 @@ config MMC_PXA

config MMC_SDHCI
tristate "Secure Digital Host Controller Interface support (EXPERIMENTAL)"
depends on PCI && MMC && EXPERIMENTAL
depends on PCI && EXPERIMENTAL
help
This select the generic Secure Digital Host Controller Interface.
It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
Expand All @@ -38,7 +37,7 @@ config MMC_SDHCI

config MMC_OMAP
tristate "TI OMAP Multimedia Card Interface support"
depends on ARCH_OMAP && MMC
depends on ARCH_OMAP
select TPS65010 if MACH_OMAP_H2
help
This selects the TI OMAP Multimedia card Interface.
Expand All @@ -49,7 +48,7 @@ config MMC_OMAP

config MMC_WBSD
tristate "Winbond W83L51xD SD/MMC Card Interface support"
depends on MMC && ISA_DMA_API
depends on ISA_DMA_API
help
This selects the Winbond(R) W83L51xD Secure digital and
Multimedia card Interface.
Expand All @@ -60,7 +59,7 @@ config MMC_WBSD

config MMC_AU1X
tristate "Alchemy AU1XX0 MMC Card Interface support"
depends on MMC && SOC_AU1200
depends on SOC_AU1200
help
This selects the AMD Alchemy(R) Multimedia card interface.
If you have a Alchemy platform with a MMC slot, say Y or M here.
Expand All @@ -69,15 +68,15 @@ config MMC_AU1X

config MMC_AT91
tristate "AT91 SD/MMC Card Interface support"
depends on ARCH_AT91 && MMC
depends on ARCH_AT91
help
This selects the AT91 MCI controller.

If unsure, say N.

config MMC_IMX
tristate "Motorola i.MX Multimedia Card Interface support"
depends on ARCH_IMX && MMC
depends on ARCH_IMX
help
This selects the Motorola i.MX Multimedia card Interface.
If you have a i.MX platform with a Multimedia Card slot,
Expand All @@ -87,7 +86,7 @@ config MMC_IMX

config MMC_TIFM_SD
tristate "TI Flash Media MMC/SD Interface support (EXPERIMENTAL)"
depends on MMC && EXPERIMENTAL && PCI
depends on EXPERIMENTAL && PCI
select TIFM_CORE
help
Say Y here if you want to be able to access MMC/SD cards with
Expand Down
13 changes: 1 addition & 12 deletions trunk/drivers/mmc/host/tifm_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,25 +1021,14 @@ static void tifm_sd_remove(struct tifm_dev *sock)
mmc_remove_host(mmc);
dev_dbg(&sock->dev, "after remove\n");

/* The meaning of the bit majority in this constant is unknown. */
writel(0xfff8 & readl(sock->addr + SOCK_CONTROL),
sock->addr + SOCK_CONTROL);

mmc_free_host(mmc);
}

#ifdef CONFIG_PM

static int tifm_sd_suspend(struct tifm_dev *sock, pm_message_t state)
{
struct mmc_host *mmc = tifm_get_drvdata(sock);
int rc;

rc = mmc_suspend_host(mmc, state);
/* The meaning of the bit majority in this constant is unknown. */
writel(0xfff8 & readl(sock->addr + SOCK_CONTROL),
sock->addr + SOCK_CONTROL);
return rc;
return mmc_suspend_host(tifm_get_drvdata(sock), state);
}

static int tifm_sd_resume(struct tifm_dev *sock)
Expand Down
Loading

0 comments on commit 3bdb357

Please sign in to comment.