15 Oct, 2008

6 commits

  • This reverts commit c9e587abfdec2c2aaa55fab83bcb4972e2f84f9b, and the
    subsequent commits that fixed it up:

    - afa9b649 "fbcon: prevent cursor disappearance after switching to 512
    character font"

    - d850a2fa "vt/fbcon: fix background color on line feed"

    - 7fe3915a "vt/fbcon: update scrl_erase_char after 256/512-glyph font
    switch"

    by request of Alan Cox. Quoth Alan:
    "Unfortunately it's wrong and its been causing breakages because
    various apps like ncurses expect our previous (and correct)
    behaviour."

    Alexander sent out a similar patch.

    Requested-by: Alan Cox
    Tested-by: Jan Engelhardt
    Cc: Alexander V. Lukyanov
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    qlge: Fix page size ifdef test.
    net: Rationalise email address: Network Specific Parts
    dsa: fix compile bug on s390
    netns: mib6 section fixlet
    enic: Fix Kconfig headline description
    de2104x: wrong MAC address fix
    s390: claw compile fixlet
    net: export genphy_restart_aneg
    cxgb3: extend copyrights to 2008
    cxgb3: update driver version
    net/phy: add missing kernel-doc
    pktgen: fix skb leak in case of failure
    mISDN/dsp_cmx.c: fix size checks
    misdn: use nonseekable_open()
    net: fix driver build errors due to missing net/ip6_checksum.h include

    Linus Torvalds
     
  • This patch removes the no longer used m68k PCI code.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This patch removes the Hades support that was marked as BROKEN 5 years ago.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Several multi-bus subsystems:

    | include/linux/ssb/ssb.h: In function 'ssb_dma_mapping_error':
    | include/linux/ssb/ssb.h:430: error: implicit declaration of function 'pci_dma_mapping_error'
    | include/linux/ssb/ssb.h: In function 'ssb_dma_map_single':
    | include/linux/ssb/ssb.h:444: error: implicit declaration of function 'pci_map_single'
    | include/linux/ssb/ssb.h: In function 'ssb_dma_unmap_single':
    | include/linux/ssb/ssb.h:458: error: implicit declaration of function 'pci_unmap_single'
    | include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_for_cpu':
    | include/linux/ssb/ssb.h:475: error: implicit declaration of function 'pci_dma_sync_single_for_cpu'
    | include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_for_device':
    | include/linux/ssb/ssb.h:493: error: implicit declaration of function 'pci_dma_sync_single_for_device'

    or legacy drivers:

    | drivers/net/hp100.c: In function 'pdl_map_data':
    | drivers/net/hp100.c:291: error: implicit declaration of function 'pci_map_single'
    | drivers/net/hp100.c: In function 'hp100_probe1':
    | drivers/net/hp100.c:707: error: implicit declaration of function 'pci_alloc_consistent'
    | drivers/net/hp100.c:782: error: implicit declaration of function 'pci_free_consistent'
    | drivers/net/hp100.c: In function 'hp100_clean_txring':
    | drivers/net/hp100.c:1614: error: implicit declaration of function 'pci_unmap_single'

    and

    | drivers/scsi/aic7xxx_old.c: In function 'aic7xxx_allocate_scb':
    | drivers/scsi/aic7xxx_old.c:2573: error: implicit declaration of function 'pci_alloc_consistent'
    | drivers/scsi/aic7xxx_old.c: In function 'aic7xxx_done':
    | drivers/scsi/aic7xxx_old.c:2697: error: implicit declaration of function 'pci_unmap_single'
    | drivers/scsi/aic7xxx_old.c: In function 'aic7xxx_handle_seqint':
    | drivers/scsi/aic7xxx_old.c:4275: error: implicit declaration of function 'pci_map_single'
    | drivers/scsi/aic7xxx_old.c: In function 'aic7xxx_free':
    | drivers/scsi/aic7xxx_old.c:8460: error: implicit declaration of function 'pci_free_consistent'

    rely on PCI DMA operations to be always available.

    Add #include to to make them happy.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • | include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_range_for_cpu':
    | include/linux/ssb/ssb.h:517: error: implicit declaration of function 'dma_sync_single_range_for_cpu'
    | include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_range_for_device':
    | include/linux/ssb/ssb.h:538: error: implicit declaration of function 'dma_sync_single_range_for_device'

    Add the missing dma_sync_single_range_for_{cpu,device}(), and remove the
    `inline' for the non-static function dma_sync_single_for_device().

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

14 Oct, 2008

34 commits

  • Clean up the various different email addresses of mine listed in the code
    to a single current and valid address. As Dave says his network merges
    for 2.6.28 are now done this seems a good point to send them in where
    they won't risk disrupting real changes.

    Signed-off-by: Alan Cox
    Signed-off-by: David S. Miller

    Alan Cox
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (66 commits)
    ata: Add documentation for hard disk shock protection interface (v3)
    ide: Implement disk shock protection support (v4)
    ide-cd: fix printk format warning
    piix: add Hercules EC-900 mini-notebook to ich_laptop short cable list
    ide-atapi: assign taskfile flags per device type
    ide-cd: move cdrom_info.dma to ide_drive_t.dma
    ide: add ide_drive_t.dma flag
    ide-cd: add a debug_mask module parameter
    ide-cd: convert driver to new ide debugging macro (v3)
    ide: move SFF DMA code to ide-dma-sff.c
    ide: cleanup ide-dma.c
    ide: cleanup ide_build_dmatable()
    ide: remove needless includes from ide-dma.c
    ide: switch to DMA-mapping API part #2
    ide: make ide_dma_timeout() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n
    ide: make ide_dma_lost_irq() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n
    ide: __ide_dma_end() -> ide_dma_end()
    pmac: remove needless pmac_ide_destroy_dmatable() wrapper
    pmac: remove superfluous pmif == NULL checks
    ide: Two fixes regarding memory allocation
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (49 commits)
    pcmcia: ioctl-internal definitions
    pcmcia: cistpl header cleanup
    pcmcia: remove unused argument to pcmcia_parse_tuple()
    pcmcia: card services header cleanup
    pcmcia: device_id header cleanup
    pcmcia: encapsulate ioaddr_t
    pcmcia: cleanup device driver header file
    pcmcia: cleanup socket services header file
    pcmcia: merge ds_internal.h into cs_internal.h
    pcmcia: cleanup cs_internal.h
    pcmcia: cs_internal.h is internal
    pcmcia: use dev_printk for cs_error()
    pcmcia: remove CS_ error codes alltogether
    pcmcia: deprecate CS_BAD_TUPLE
    pcmcia: deprecate CS_BAD_ARGS
    pcmcia: deprecate CS_BAD_BASE, CS_BAD_IRQ, CS_BAD_OFFSET and CS_BAD_SIZE
    pcmcia: deprecate CS_BAD_ATTRIBUTE, CS_BAD_TYPE and CS_BAD_PAGE
    pcmcia: deprecate CS_NO_MORE_ITEMS
    pcmcia: deprecate CS_IN_USE
    pcmcia: deprecate CS_CONFIGURATION_LOCKED
    ...

    Fix trivial conflict in drivers/pcmcia/ds.c manually

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (313 commits)
    V4L/DVB (9186): Added support for Prof 7300 DVB-S/S2 cards
    V4L/DVB (9185): S2API: Ensure we have a reasonable ROLLOFF default
    V4L/DVB (9184): cx24116: Change the default SNR units back to percentage by default.
    V4L/DVB (9183): S2API: Return error of the caller provides 0 commands.
    V4L/DVB (9182): S2API: Added support for DTV_HIERARCHY
    V4L/DVB (9181): S2API: Add support fot DTV_GUARD_INTERVAL and DTV_TRANSMISSION_MODE
    V4L/DVB (9180): S2API: Added support for DTV_CODE_RATE_HP/LP
    V4L/DVB (9179): S2API: frontend.h cleanup
    V4L/DVB (9178): cx24116: Add module parameter to return SNR as ESNO.
    V4L/DVB (9177): S2API: Change _8PSK / _16APSK to PSK_8 and APSK_16
    V4L/DVB (9176): Add support for DvbWorld USB cards with STV0288 demodulator.
    V4L/DVB (9175): Remove NULL pointer in stb6000 driver.
    V4L/DVB (9174): Allow custom inittab for ST STV0288 demodulator.
    V4L/DVB (9173): S2API: Remove the hardcoded command limit during validation
    V4L/DVB (9172): S2API: Bugfix related to DVB-S / DVB-S2 tuning for the legacy API.
    V4L/DVB (9171): S2API: Stop an OOPS if illegal commands are dumped in S2API.
    V4L/DVB (9170): cx24116: Sanity checking to data input via S2API to the cx24116 demod.
    V4L/DVB (9169): uvcvideo: Support two new Bison Electronics webcams.
    V4L/DVB (9168): Add support for MSI TV@nywhere Plus remote
    V4L/DVB: v4l2-dev: remove duplicated #include
    ...

    Linus Torvalds
     
  • On user request (through sysfs), the IDLE IMMEDIATE command with UNLOAD
    FEATURE as specified in ATA-7 is issued to the device and processing of
    the request queue is stopped thereafter until the specified timeout
    expires or user space asks to resume normal operation. This is supposed
    to prevent the heads of a hard drive from accidentally crashing onto the
    platter when a heavy shock is anticipated (like a falling laptop expected
    to hit the floor). Port resets are deferred whenever a device on that
    port is in the parked state.

    v3:
    Elias Oltmanns wrote:
    [...]
    > >> 1. Make sure that no negative value is being passed to
    > >> jiffies_to_msecs() in ide_park_show().
    > >> 2. Drop the superfluous variable hwif in ide_special_rq().
    > >> 3. Skip initialisation of task and tf in ide_special_rq() if we are not
    > >> handling a (un)park request.
    > >
    > > Well, #3 should have been done differently because we donn't want to
    > > check for REQ_(UN)?PARK_HEADS more often than is necessary.
    >
    > While preparing the backport to 2.6.27, it has just occurred to me that
    > we need to clear the IDE_DFLAG_PARKED flag in ide_disk_pre_reset()
    > because this flag must not be set after *any* sort of access to the
    > device.

    v4:
    Fix a memory leak due to a missing blk_put_request() in
    issue_park_cmd(). Additionally, we should plug the queue when enqueueing
    the unpark request because there is no guarantee that the park timeout
    has not expired by then. Even though the chance for that to happen is
    very slim, the request might end up hanging in the queue until the next
    I/O operation is queued up. While at it, clean up the code a little:
    - make issue_park_cmd() a function of type void since nobody cares for
    the return value anyway;
    - use blk_start_queueing() instead of __blk_run_queue() since we don't
    have to worry about recursion;
    - remove a superfluous pointer deference in task_no_data_intr().

    Signed-off-by: Elias Oltmanns
    Cc: Jeff Garzik ,
    Cc: Randy Dunlap
    Cc: Tejun Heo
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Elias Oltmanns
     
  • This flag is to accomodate ide-cd functionality into ide atapi.

    There should be no functionality change resulting from this patch.

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Follow-up to commit 5c05ff68b9a9b40a9be949497e0aa980185565cf
    ("ide: switch to DMA-mapping API"):

    * pci_{alloc,free}_consistent() -> dma_{alloc,free}_coherent()
    in ide_{allocate,release}_dma_engine().

    * Add ->prd_max_nents and ->prd_ent_size fields to ide_hwif_t
    (+ set default values in ide_allocate_dma_engine()).

    * Make ide_{allocate,release}_dma_engine() available also
    for CONFIG_BLK_DEV_IDEDMA_SFF=n. Then convert au1xxx-ide.c,
    scc_pata.c and sgiioc4.c to use them.

    * Add missing ->init_dma method to scc_pata.

    This patch also fixes:
    - ->dmatable_cpu leak for au1xxx-ide
    - too early realease of ->dmatable_cpu for scc_pata
    - wrong amount of ->dmatable_cpu memory being freed for sgiioc4

    While at it:
    - remove superfluous ->dma_base check from ide_unregister()
    - return -ENOMEM on error in ide_release_dma_engine()
    - beautify error message in ide_release_dma_engine()

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Make ide_dma_timeout() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n
    and convert {ics,au1xxx-}ide.c to use it.

    While at it:
    - dump ATA Status register content on error
    - use EXPORT_SYMBOL_GPL() to match the rest of SFF DMA functions

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Make ide_dma_lost_irq() available also for CONFIG_BLK_DEV_IDEDMA_SFF=n
    and convert {ics,au1xxx-}ide.c to use it.

    While at it:
    - use EXPORT_SYMBOL_GPL() to match the rest of SFF DMA functions

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • While at it:
    - use EXPORT_SYMBOL_GPL() to match the rest of SFF DMA functions

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • While at it:
    - idedisk_ioctl() -> ide_disk_ioctl()

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Remove no longer used ide_host_alloc_all().

    * Add MAX_HOST_PORTS define and use it instead of MAX_HWIFS
    as the maximum number of host ports possible.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Rename ->ide_dma_clear_irq method to ->clear_irq
    and move it from ide_hwif_t to struct ide_port_ops.

    * Move ->waiting_for_dma check inside ->clear_irq method.

    * Move ->dma_base check inside ->clear_irq method.

    piix.c:
    * Add ich_port_ops and remove init_hwif_ich() wrapper.

    There should be no functional changes caused by this patch.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add 'struct task_s' to ide_hwif_t and init it to the current command
    in do_rw_taskfile().

    * Merge all TASKFILE_NO_DATA data phase handlers into taskfile_no_intr().

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Convert 'pio_mode' device setting to use DS_SYNC flag.

    * Remove unused special_t.b.{set_tune,serviced} and ide_drive_t.tune_req.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Use 'drive->dn & 1' in ide_init_disk().

    * remove [ata_]select_t.

    While at it:

    * Use ATA_DEVICE_OBS define in ide_port_init_devices_data().

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Move ide*_pm_* enums from ide-io.c to .

    * idedisk_pm_* -> ide_pm_*

    * ide_pm_state_* -> ide_pm_*

    * No need to set ide_pm_* enums to the fixed values.

    * Uppercase ide_pm_* enums.

    * Fix/update comments.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add IDE_DFLAG_LBA device flag and use it instead of ->select.b.lba.

    Since ->tf_load uses ->select.all for ATA Device/Head register this
    fixes HDIO_DRIVE_TASK[FILE] ioctls for CHS commands on LBA devices.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add IDE_DFLAG_DMA_PIO_RETRY and use it instead of
    ide_drive_t.state + DMA_PIO_RETRY.

    There should be no functional changes cause by this patch.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add 'unsigned long dev_flags' to ide_drive_t and convert bitfields
    to IDE_DFLAG_* flags.

    While at it:
    - IDE_DFLAG_ADDRESSING -> IDE_DFLAG_LBA48
    - fixup some comments
    - remove needless g->flags zeroing from ide*_probe()

    There should be no functional changes caused by this patch.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Return -EIO if arg > 0 and LBA48 is unsupported.

    * No need to reset ->addressing.

    * Make ->addressing a single bit flag.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add __ide_debug_log() debugging macro which is controlled by drive->debug_mask.
    The macro has to have the macro DRV_NAME defined in each driver before use.
    Also, add different debugging levels depending on the functionality debugged.

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • Add a debugging on/off switch for controlling driver debugging
    messages dynamically.

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • Introduce to_ide_drv() and ide_drv_g() macros and replace the respective
    definitions of similar ones in each driver.

    There should be no functionality change resulting from this patch.

    Signed-off-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Borislav Petkov
     
  • * Move ->ticks field from struct ide_floppy_obj to ide_drive_t.

    * Move idefloppy_transfer_pc() to ide-atapi.c and make
    ide_transfer_pc() use it.

    * Always use ide_transfer_pc as a handler in ide_issue_pc().

    * Remove no longer used idefloppy_start_pc_transfer(),
    ide*_transfer_pc() and 'handler' argument from ide_issue_pc().

    * Make ide_transfer_pc() static.

    While at it:

    * idefloppy_transfer_pc() -> ide_delayed_transfer_pc()

    * IDEFLOPPY_TICKS_DELAY -> IDEFLOPPY_PC_DELAY

    * ->ticks -> ->pc_delay

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Always use ide_pc_intr as a handler in ide_pc_intr().

    * Remove no longer used ide*_pc_intr() and 'handler'
    argument from ide_{transfer_pc,pc_intr}().

    * Make ide_pc_intr() static.

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add ->pc_{update,io}_buffers methods to ide_drive_t and use
    them instead of {update,io}_buffers ide_pc_intr() arguments.

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add ide_create_request_sense_cmd() and ide_retry_pc() helpers
    and convert ide-{atapi,floppy,tape}.c to use them.

    * Remove no longer used ide*_create_request_sense_cmd(),
    ide*_retry_pc() and 'retry_pc' argument from ide_pc_intr().

    * Make ide_queue_pc_head() static.

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add 'struct ide_atapi_pc request_sense_pc' and 'request request_sense_rq' to
    ide_drive_t and use them instead of fields in struct ide_{floppy,tape}_obj.

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Move idescsi_expiry() to ide-atapi.c.

    * Move get_timeout() to .

    * Drop 'timeout' and 'expiry' arguments from ide_pc_intr().

    While at it:

    * idescsi_expiry() -> ide_scsi_expiry()

    * get_timeout() -> ide_scsi_get_timeout()

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add pointer to the current packet command (struct ide_atapi_pc *pc)
    to ide_drive_t and use it instead of the pointer in struct ide_*_obj.

    * Use drive->pc in ide_{issue,transfer}_pc() and ide_pc_intr()
    instead of 'pc' argument.

    There should be no functional changes caused by this patch.

    Cc: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz