Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55248
b: refs/heads/master
c: cfa0652
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 8, 2007
1 parent abff8b6 commit 1c66956
Show file tree
Hide file tree
Showing 72 changed files with 2,205 additions and 2,495 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: 6ec129c3a2f8b38bc37e42348470ccfcb7460146
refs/heads/master: cfa0652c4eb4ca37f88fcdd7d871cf98d9d98c0e
9 changes: 0 additions & 9 deletions trunk/Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ 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 STK RAID INT (Cougar)
9005:0285:108e:0287 SUN STK RAID EXT (Prometheus)
9005:0285:108e:0286 SUN SG-XPCIESAS-R-IN (Cougar)
9005:0285:108e:0287 SUN SG-XPCIESAS-R-EX (Prometheus)

People
-------------------------
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/i386/boot/video.S
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,11 @@ 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
14 changes: 14 additions & 0 deletions trunk/arch/sparc64/kernel/pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@

#include "pci_impl.h"

void pci_get_pbm_props(struct pci_pbm_info *pbm)
{
const u32 *val = of_get_property(pbm->prom_node, "bus-range", NULL);

pbm->pci_first_busno = val[0];
pbm->pci_last_busno = val[1];

val = of_get_property(pbm->prom_node, "ino-bitmap", NULL);
if (val) {
pbm->ino_bitmap = (((u64)val[1] << 32UL) |
((u64)val[0] << 0UL));
}
}

static void pci_register_legacy_regions(struct resource *io_res,
struct resource *mem_res)
{
Expand Down
10 changes: 1 addition & 9 deletions trunk/arch/sparc64/kernel/pci_fire.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ static void pci_fire_pbm_init(struct pci_controller_info *p,
{
const struct linux_prom64_registers *regs;
struct pci_pbm_info *pbm;
const u32 *ino_bitmap;
const unsigned int *busrange;

if ((portid & 1) == 0)
pbm = &p->pbm_A;
Expand All @@ -338,13 +336,7 @@ static void pci_fire_pbm_init(struct pci_controller_info *p,

pci_determine_mem_io_space(pbm);

ino_bitmap = of_get_property(dp, "ino-bitmap", NULL);
pbm->ino_bitmap = (((u64)ino_bitmap[1] << 32UL) |
((u64)ino_bitmap[0] << 0UL));

busrange = of_get_property(dp, "bus-range", NULL);
pbm->pci_first_busno = busrange[0];
pbm->pci_last_busno = busrange[1];
pci_get_pbm_props(pbm);

pci_fire_hw_init(pbm);
pci_fire_pbm_iommu_init(pbm);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sparc64/kernel/pci_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extern unsigned long pci_memspace_mask;
extern int pci_num_controllers;

/* PCI bus scanning and fixup support. */
extern void pci_get_pbm_props(struct pci_pbm_info *pbm);
extern struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm);
extern void pci_determine_mem_io_space(struct pci_pbm_info *pbm);

Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/sparc64/kernel/pci_psycho.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,6 @@ static void psycho_pbm_strbuf_init(struct pci_controller_info *p,
static void psycho_pbm_init(struct pci_controller_info *p,
struct device_node *dp, int is_pbm_a)
{
unsigned int *busrange;
struct property *prop;
struct pci_pbm_info *pbm;

Expand Down Expand Up @@ -1117,10 +1116,7 @@ static void psycho_pbm_init(struct pci_controller_info *p,

pci_determine_mem_io_space(pbm);

prop = of_find_property(dp, "bus-range", NULL);
busrange = prop->value;
pbm->pci_first_busno = busrange[0];
pbm->pci_last_busno = busrange[1];
pci_get_pbm_props(pbm);

psycho_pbm_strbuf_init(p, pbm, is_pbm_a);
}
Expand Down
8 changes: 1 addition & 7 deletions trunk/arch/sparc64/kernel/pci_sabre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,7 @@ static void sabre_pbm_init(struct pci_controller_info *p, struct device_node *dp
pbm->chip_type = PBM_CHIP_TYPE_SABRE;
pbm->parent = p;
pbm->prom_node = dp;
pbm->pci_first_busno = p->pci_first_busno;
pbm->pci_last_busno = p->pci_last_busno;
pci_get_pbm_props(pbm);

pci_determine_mem_io_space(pbm);
}
Expand All @@ -1018,7 +1017,6 @@ void sabre_init(struct device_node *dp, char *model_name)
struct pci_controller_info *p;
struct iommu *iommu;
int tsbsize;
const u32 *busrange;
const u32 *vdma;
u32 upa_portid, dma_mask;
u64 clear_irq;
Expand Down Expand Up @@ -1119,10 +1117,6 @@ void sabre_init(struct device_node *dp, char *model_name)

sabre_iommu_init(p, tsbsize, vdma[0], dma_mask);

busrange = of_get_property(dp, "bus-range", NULL);
p->pci_first_busno = busrange[0];
p->pci_last_busno = busrange[1];

/*
* Look for APB underneath.
*/
Expand Down
10 changes: 1 addition & 9 deletions trunk/arch/sparc64/kernel/pci_schizo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1491,10 +1491,8 @@ static void schizo_pbm_init(struct pci_controller_info *p,
int chip_type)
{
const struct linux_prom64_registers *regs;
const unsigned int *busrange;
struct pci_pbm_info *pbm;
const char *chipset_name;
const u32 *ino_bitmap;
int is_pbm_a;

switch (chip_type) {
Expand Down Expand Up @@ -1555,13 +1553,7 @@ static void schizo_pbm_init(struct pci_controller_info *p,

pci_determine_mem_io_space(pbm);

ino_bitmap = of_get_property(dp, "ino-bitmap", NULL);
pbm->ino_bitmap = (((u64)ino_bitmap[1] << 32UL) |
((u64)ino_bitmap[0] << 0UL));

busrange = of_get_property(dp, "bus-range", NULL);
pbm->pci_first_busno = busrange[0];
pbm->pci_last_busno = busrange[1];
pci_get_pbm_props(pbm);

schizo_pbm_iommu_init(pbm);
schizo_pbm_strbuf_init(pbm);
Expand Down
16 changes: 1 addition & 15 deletions trunk/arch/sparc64/kernel/pci_sun4v.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,20 +802,6 @@ static void pci_sun4v_iommu_init(struct pci_pbm_info *pbm)
pbm->name, sz);
}

static void pci_sun4v_get_bus_range(struct pci_pbm_info *pbm)
{
struct property *prop;
unsigned int *busrange;

prop = of_find_property(pbm->prom_node, "bus-range", NULL);

busrange = prop->value;

pbm->pci_first_busno = busrange[0];
pbm->pci_last_busno = busrange[1];

}

#ifdef CONFIG_PCI_MSI
struct pci_sun4v_msiq_entry {
u64 version_type;
Expand Down Expand Up @@ -1271,7 +1257,7 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node

pci_determine_mem_io_space(pbm);

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

writel((s_state & TIFM_CTRL_POWER_MASK) | 0x0c00,
sock_addr + SOCK_CONTROL);
writel((s_state & 7) | 0x0c00, sock_addr + SOCK_CONTROL);
/* wait for power to stabilize */
msleep(20);
for (cnt = 16; cnt <= 256; cnt <<= 1) {
Expand All @@ -123,12 +122,6 @@ 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 @@ -140,7 +133,6 @@ 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 @@ -166,12 +158,11 @@ 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);
tifm_7xx1_sock_power_off(sock_addr);
writel(0x0e00, sock_addr + SOCK_CONTROL);
writel(0x0e00, tifm_7xx1_sock_addr(fm->addr, cnt)
+ SOCK_CONTROL);
}

spin_unlock_irqrestore(&fm->lock, flags);
Expand Down Expand Up @@ -214,16 +205,8 @@ 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 @@ -374,7 +357,6 @@ 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 @@ -383,9 +365,6 @@ 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,8 +2,10 @@
# MMC subsystem configuration
#

menuconfig MMC
tristate "MMC/SD card support"
menu "MMC/SD Card support"

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

Expand All @@ -17,12 +19,10 @@ 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"

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

comment "MMC/SD Card Drivers"
depends MMC

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

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: 4 additions & 6 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,9 @@ void __mmc_release_bus(struct mmc_host *host)
void mmc_detect_change(struct mmc_host *host, unsigned long delay)
{
#ifdef CONFIG_MMC_DEBUG
unsigned long flags;
spin_lock_irqsave(host->lock, flags);
mmc_claim_host(host);
BUG_ON(host->removed);
spin_unlock_irqrestore(host->lock, flags);
mmc_release_host(host);
#endif

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

mmc_flush_scheduled_work();
Expand Down
Loading

0 comments on commit 1c66956

Please sign in to comment.