1. 07 Jan, 2003 9 commits
  2. 06 Jan, 2003 31 commits
    • James Morris's avatar
      [SUNSAB]: Bug fixes for new sunsab uart driver. · 0870ffaf
      James Morris authored
      - Ensure ports are detected in the right order (also fixes crash in
        interrupt handler).
      - Make use of uart api port fields: port, line, irq, fifosize, mapbase. 
      - Remove some variable fifo size logic, driver always uses 32 byte fifos. 
      - Unmask XPR interrupt in transmit_chars() (per 2.4).
      - Unmask XPR interrupt early in sunsab_start_tx(), as the user may have 
        been put to sleep by the uart api with XPR masked, and will otherwise 
        not be able to unmask XPR again.
      - Do not enable RFDF, as the code is no longer checking for or 
        even handling rx status bytes.
      - Make sunsab_type() return more useful info.
      - Increment instance_p in sab_attach_callback().
      - Remove self-reporting, as the uart api now reports the ports.
      - Handle sunserial_current_minor increment/decrement properly.
      0870ffaf
    • Laszlo Valko's avatar
    • Patrick Mochel's avatar
      Implement find_bus() for finding a struct bus_type by name. · 33e86005
      Patrick Mochel authored
      Simply, pass off to kset_find_obj() to iterate over list of buses and 
      search for bus with certain name.
      33e86005
    • Patrick Mochel's avatar
      add kset_find_obj() to search for object in a kset's list. · 7dd6e94e
      Patrick Mochel authored
      The operation is simple:
      - Take read lock for kset.
      - Iterate over kset->list.
      - Compare name to each kobject's name.
      - Return kobject if found. 
      7dd6e94e
    • Patrick Mochel's avatar
      driver model: allow manual binding of devices to drivers. · c3016fe6
      Patrick Mochel authored
      This creates and exports device_bind_driver() and device_release_driver()
      that allow a caller to manually bind a device to a driver. Apparantly, some
      drivers use this functionality (like USB): a driver binds to other device
      interfaces during the driver's probe() method call for the first interface.
      
      Implementation is easy enough, since it simply involves renaming and exporting
      the internal functions attach() and detach().
      c3016fe6
    • Patrick Mochel's avatar
      bus drivers: fix leaking refcounts. · 45cd2cfe
      Patrick Mochel authored
      In drivers/base/bus.c, get_bus() was called without put_bus() in these 
      functions:
      
      - bus_for_each_dev()
      - bus_for_each_drv()
      45cd2cfe
    • Richard Henderson's avatar
    • Patrick Mochel's avatar
      Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core · 6fec6161
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-kobject
      6fec6161
    • Patrick Mochel's avatar
      net devices: Get network devices to show up in sysfs. · 6ed6b9bf
      Patrick Mochel authored
      - declare net_subsys, and register during net_dev_init().
      - Add kobject to struct net_device.
      - initialize name and register in register_netdevice().
      - remove in unregister_netdevice().
      
      This allows one to see the registered network devices in the system via:
      
      # tree /sys/net/
      /sys/net/
      `-- eth0
      6ed6b9bf
    • Bjorn Helgaas's avatar
      [PATCH] i810/i830 AGP update · ae4d9837
      Bjorn Helgaas authored
      Here are the i810 and i830 fixes.  I don't have either of these, so I
      can't test them, but they're pretty straightforward.
      ae4d9837
    • Bjorn Helgaas's avatar
      [PATCH] 440GX AGP update · 9845ed27
      Bjorn Helgaas authored
      I don't have a 440GX to test here, but I think the patch below is likely
      to fix the problem.
      
      I see some other issues in intel-agp.c.  I'll send those separately since
      the diff is a little larger and should affect only i810 and i830.
      9845ed27
    • Patrick Mochel's avatar
      block devices: use list and lock in block_subsys, instead of those defined in genhd.c. · 426f67eb
      Patrick Mochel authored
      Since block_subsys already contains a list and a lock, use those, instead
      of defining our own static ones.
      
      This allows struct gendisk::full_list to be removed. 
      
      struct gendisk::list is also apparently unused, so it is removed also.
      426f67eb
    • Patrick Mochel's avatar
      remove kernel/platform.c · 93e8f330
      Patrick Mochel authored
      This was never used, and a bad idea to begin with. 
      93e8f330
    • Patrick Mochel's avatar
      acpi: use decl_subsys() macro. · d977f5ed
      Patrick Mochel authored
      d977f5ed
    • Patrick Mochel's avatar
      64e928e3
    • Patrick Mochel's avatar
      kobjects: Remove kobject::subsys and subsystem::kobj. · 85e865ec
      Patrick Mochel authored
      The kobject core no longer references a subsystem directly through a kobject,
      instead using the kobject's dominant kset to reference the subsystem. The 
      registrants of kobjects have been fixed up. 
      
      To aid in this process, a few helpers were introdcuced: 
      
      - kobj_set_kset_s(obj,subsys)
      - kset_set_kset_s(obj,subsys)
      - subsys_set_kset(obj,subsys)
      
      that set the kset ptr of embedded kobjects for objects that have different
      embedded types. See include/linux/kobject.h for more description and usage.
      
      
      struct subsystem::kobj is also removed, relying solely on a subsystem's
      embedded kset for hierarchy information.  Since this requires modification
      of the subsystem declarations, a helper macro has been defined:
      
      decl_subsys(name,type)
      
      which initializes the name and ktype fields of the subsystem's embedded
      kset. All the subsystem declarations have been fixed up.
      85e865ec
    • Patrick Mochel's avatar
      Merge bk://linux.bkbits.net/linux-2.5 · 199578c4
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
      199578c4
    • Linus Torvalds's avatar
      Merge bk://are.twiddle.net/axp-2.5 · 10d43ec6
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      10d43ec6
    • Richard Henderson's avatar
      ec146bb1
    • Rusty Russell's avatar
      [PATCH] Remove mod_bound macro and unify kernel_text_address(). · 8e4f2cd3
      Rusty Russell authored
      Various archs (i386, m68k, s390, s390x, m68k, parisc, um, x86_64)
      implement kernel_text_address.  Put this in kernel/extable.c, and the
      module iteration inside module.c.
      
      Other than cleanliness, this finally allows the module list and lock
      to be static to kernel/module.c (you didn't think I actually cared
      about those archs did you?)
      
      It also drops the module->init_size to zero when it's discarded, so
      bounds checking is simplified (and the /proc/modules size statistic
      will be more accurate, too).
      8e4f2cd3
    • Rusty Russell's avatar
      [PATCH] "constfrobbing considered harmful" · 18f50759
      Rusty Russell authored
      The declaration of `module_frob_arch_sections' in moduleloader.h (and
      the definitions in most of the module.c files) are inconsistent with the
      definition in the PPC's module.c -- in the latter the first two
      arguments are not declared `const', whereas everyplace else they are.
      
      PS.  secstrings can be modded to: if an arch can't handle discarding
           init, it simply renames the .init sections.
      18f50759
    • Richard Henderson's avatar
      [PATCH] fix alpha boot oops · 1086892d
      Richard Henderson authored
      Oops in fb_set_cmap caused by palette_cmap.transp uninitialized.
      
      By inspection, fb_blank appears to have the same problem.
      1086892d
    • Linus Torvalds's avatar
      Merge bk://linux-dj.bkbits.net/agpgart · 5a09946d
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      5a09946d
    • Bjorn Helgaas's avatar
      [AGP] size AGP mem correctly when memory is discontiguous. · ba051c01
      Bjorn Helgaas authored
      This removes the agpgart assumption that memory is contiguous.
      ba051c01
    • Bjorn Helgaas's avatar
      [AGP] Remove bogus AGP/DRM assumptions · c6ce7bc9
      Bjorn Helgaas authored
      [Forward port of a 2.4 patch that got applied last month -- DJ] 
       
      AGP/DRM currently assume that GATT entries can be converted
      to physical addresses with a simple mask.  Additionally, agpgart
      assumes in a couple places that the mask is ~0xfff, i.e., that
      all the GART control bits are in the low 12 bits.  Both assumptions
      are bogus, so:
        
      Make agp_memory.memory[] (exported from agpgart to DRM) contain physical
      addresses, not GATT entries.
        
      DRM assumes agp_memory contains GATT entries, and it converts them to
      physical addresses with "paddr = agp_memory.memory[i] & mask".  460GX
      requires both a shift and a mask, so exporting plain physical addresses
      and a mask of ~0UL allows agpgart to add 460GX support without requiring
      DRM interface changes.
      c6ce7bc9
    • Dave Jones's avatar
      sync · bc6bb033
      Dave Jones authored
      bc6bb033
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: update timer notifier · 73c11c16
      Dominik Brodowski authored
      - global loops_per_jiffy, x86 cpu_khz and x86
         fast_gettimeoffset_quotient can only be safely adjusted on UP
      - x86 per-CPU loops_per_jiffy does not depend on TSC
      - save reference values so that rounding errors do not accumulate
      73c11c16
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: elanfreq cleanup and compile fix · 19accb69
      Dominik Brodowski authored
      Clean up searching code for best frequency multiplier, and add a
      safety check. Also, SAFE_FREQ wasn't used.
      19accb69
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: p4-clockmod bugfixes · 627d1004
      Dominik Brodowski authored
      The "get current speed" algorithm wasn't aware of the disable/enable bit,
      and the policy verification function wasn't aware of the N44 / O17
      bug. Also, some unused code is removed.
      627d1004
    • Adrian Bunk's avatar
      5672df00
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/net-2.5 · 8f701a3e
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      8f701a3e