05 Oct, 2009

1 commit

  • There is no point in implementing a detect callback for the DS2482, as
    this device can't be detected. It was there solely to handle "force"
    module parameters to instantiate devices, but now we have a better sysfs
    interface that can do the same.

    So we can get rid of the ugly module parameters and the detect callback.
    This shrinks the binary module size by 21%.

    Signed-off-by: Jean Delvare
    Acked-by: Ben Gardner

    Jean Delvare
     

03 Oct, 2009

1 commit


13 Aug, 2009

1 commit


08 Aug, 2009

1 commit


18 Jul, 2009

1 commit

  • The connector documentation states that the argument to the callback
    function is always a pointer to a struct cn_msg, but rather than encode it
    in the API itself, it uses a void pointer everywhere. This doesn't make
    much sense to encode the pointer in documentation as it prevents proper C
    type checking from occurring and can easily allow people to use the wrong
    pointer type. So convert the argument type to an explicit struct cn_msg
    pointer.

    Signed-off-by: Mike Frysinger
    Signed-off-by: David S. Miller

    Mike Frysinger
     

25 Jun, 2009

1 commit

  • * git://git.infradead.org/battery-2.6:
    da9030_battery: Fix race between event handler and monitor
    Add MAX17040 Fuel Gauge driver
    w1: ds2760_battery: add support for sleep mode feature
    w1: ds2760: add support for EEPROM read and write
    ds2760_battery: cleanups in ds2760_battery_probe()

    Linus Torvalds
     

19 Jun, 2009

1 commit

  • On embedded devices, sleep mode conditions can be tricky to handle,
    Especially when processors tend to pull-down the w1 bus during sleep. Bus
    slaves (such as the ds2760) may interpret this as a reason for power-down
    conditions and entirely switch off the device.

    This patch adds a callback function pointer to let users switch on and off
    the external pull-up resistor. This lets the outside world know whether
    the processor is currently actively driving the bus or not.

    When this callback is not provided, the code behaviour won't change.

    Signed-off-by: Daniel Mack
    Acked-by: Ville Syrjala
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     

13 Jun, 2009

1 commit


09 Jun, 2009

2 commits

  • This adds support for ds2760's sleep mode feature. With this feature
    enabled, the chip enters a deep sleep mode and disconnects from the
    battery when the w1 line is held down for more than 2 seconds.

    This new behaviour can be switched on and off using a new module
    parameter.

    Signed-off-by: Daniel Mack
    Cc: Szabolcs Gyurko
    Acked-by: Matt Reimer
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Anton Vorontsov

    Daniel Mack
     
  • In order to modify the DS2762's status registers and to add support for
    sleep mode, there is need for functions to write the internal EEPROM.

    Signed-off-by: Daniel Mack
    Acked-by: Matt Reimer
    Acked-by: Szabolcs Gyurko
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Anton Vorontsov

    Daniel Mack
     

05 Apr, 2009

2 commits

  • This driver requests a clock that usually is supplied by the MFD in which
    the DS1WM is contained. Currently, it is impossible for a MFD to register
    their clocks with the generic clock API due to different implementations
    across architectures.
    For now, this patch removes the clock handling from DS1WM altogether,
    trusting that the MFD enable/disable functions will switch the clock if
    needed. The clock rate is obtained from a new parameter in driver_data.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     
  • This patch converts the DS1WM driver into an MFD cell. It also
    calculates the bus_shift parameter from the memory resource size.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Samuel Ortiz

    Philipp Zabel
     

03 Apr, 2009

1 commit


26 Mar, 2009

1 commit


19 Mar, 2009

1 commit


13 Mar, 2009

2 commits

  • The context makes it clear already that these are clocks, so there's
    no need for such a suffix. This patch only changes the clocks actually
    used in the tree. The remaining clocks are renamed in the subsequent
    architecture specific patches.

    Signed-off-by: Sascha Hauer

    Sascha Hauer
     
  • W1 master implementations are expected to return 0 or 1 from their
    read_bit() function. However, not all platforms do return these values
    from gpio_get_value() - namely PXAs won't. Hence the w1 gpio-master needs
    to break the result down to 0 or 1 itself.

    Signed-off-by: Daniel Mack
    Cc: Ville Syrjala
    Cc: Evgeniy Polyakov
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     

28 Feb, 2009

2 commits


12 Feb, 2009

1 commit

  • Addresses http://bugzilla.kernel.org/show_bug.cgi?id=12646

    When the temperature exceeds 32767 milli-degrees the temperature overflows
    to -32768 millidegrees. These are bothe well within the -55 - +125 degree
    range for the sensor.

    Fix overflow in left-shift of a u8.

    Signed-off-by: Ian Dall
    Signed-off-by: Evgeniy Polyakov
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ian Dall
     

09 Feb, 2009

1 commit


09 Jan, 2009

8 commits

  • Send completion status of the commands to the userspace. Message and
    protocol are described in the documentation.

    Signed-off-by: Evgeniy Polyakov
    Cc: Paul Alfille
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • Command which allows to reset the bus.

    Signed-off-by: Evgeniy Polyakov
    Cc: Paul Alfille
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • Signed-off-by: Evgeniy Polyakov
    Cc: Paul Alfille
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • This small patchset extendes existing commands with reset, master IO and
    status messages. Reset is used to reset the bus for given master device,
    master IO command allows to initiate IO against bus itself not selecting
    slave device first, which can be used to probe the device for example.
    And status messages carry command completion status back to the userspace
    (namely very useful to get -ENODEV from when requested device was not
    found).

    Great thanks to Paul Alfille of OWFS for testing and commands suggestions.

    This patch:

    Allow starting of IO not against already found slave devices, but against
    the bus itself, which can be used for example to probe devices.

    [akpm@linux-foundation.org: reindent switch statements]
    Signed-off-by: Evgeniy Polyakov
    Cc: Paul Alfille
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • Initiates search (or alarm search) and returns all found devices to
    userspace. Found devices are not added into the system (i.e. they are
    not attached to family devices or bus masters), it will be done via (if
    was not done yet) usual timed searching.

    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • Writes and returns sampled data back to userspace.

    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • This patch series introduces and extends several userspace commands
    used with netlink protocol.

    Touch block command allows to write data and return sampled data to
    the userspace.

    Extended search and alarm seach commands to return list of slave
    devices found during given search.

    List masters command allows to send all registered master IDs to the
    userspace.

    Great thanks to Paul Alfille (owfs) who
    tested this implementation and wrote w1-to-network daemon
    http://sourceforge.net/projects/w1repeater/ and

    Frederik Deweerdt and Randy Dunlap for review.

    This patch:

    Returns list of registered bus master devices.

    Signed-off-by: Evgeniy Polyakov
    Cc: Paul Alfille
    Cc: Frederik Deweerdt
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • This patch adds support for the 1-wire master interface for i.MX27 and
    i.MX31.

    Signed-off-by: Luotao Fu
    Signed-off-by: Sascha Hauer
    Signed-off-by: Evgeniy Polyakov
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sascha Hauer
     

07 Jan, 2009

1 commit


24 Dec, 2008

1 commit

  • During test of the w1-gpio driver i found that in "w1.c:679
    w1_slave_found()" the device id is converted to little-endian with
    "cpu_to_le64()", but its not converted back to cpu format in "w1_io.c:293
    w1_reset_select_slave()".

    Based on a patch created by Andreas Hummel.

    [akpm@linux-foundation.org: remove unneeded cast]
    Reported-by: Andreas Hummel
    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     

01 Dec, 2008

1 commit


20 Nov, 2008

1 commit

  • OMAP LDP boot crash. This is because w1 subsystem changed the search
    interface, so update omap_hdq's search interface to follow the change.

    Signed-off-by: Stanley.Miao
    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stanley.Miao
     

13 Nov, 2008

3 commits

  • Provide the BQ27000 slave interface driver.

    Signed-off-by: Madhusudhan Chikkature
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Madhusudhan Chikkature
     
  • The HDQ/1-Wire module of TI OMAP2430/3430 platforms implement the hardware
    protocol of the master functions of the Benchmark HDQ and the Dallas
    Semiconductor 1-Wire protocols. These protocols use a single wire for
    communication between the master (HDQ/1-Wire controller) and the slave
    (HDQ/1-Wire external compliant device).

    This patch provides the HDQ driver to suppport TI OMAP2430/3430 platforms.

    Signed-off-by: Madhusudhan Chikkature
    Acked-by: Felipe Balbi
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Madhusudhan Chikkature
     
  • Export the w1_read_8 function for use of drivers. The OMAP HDQ
    driver(drivers/w1/masters/omap_hdq.c) uses this function.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Madhusudhan Chikkature
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Madhusudhan Chikkature
     

20 Oct, 2008

1 commit

  • Tejun's commit 7b595756ec1f49e0049a9e01a1298d53a7faaa15 made sysfs
    attribute->owner unnecessary. But the field was left in the structure to
    ease the merge. It's been over a year since that change and it is now
    time to start killing attribute->owner along with its users - one arch at
    a time!

    This patch is attempt #1 to get rid of attribute->owner only for
    CONFIG_X86_64 or CONFIG_X86_32 . We will deal with other arches later on
    as and when possible - avr32 will be the next since that is something I
    can test. Compile (make allyesconfig / make allmodconfig / custom config)
    and boot tested.

    akpm: the idea is that we put the declaration of sttribute.owner inside
    `#ifndef CONFIG_X86'. But that proved to be too ambitious for now because
    new usages kept on turning up in subsystem trees.

    [akpm: remove the ifdef for now]
    Signed-off-by: Parag Warudkar
    Cc: Greg KH
    Cc: Ingo Molnar
    Cc: Tejun Heo
    Cc: Len Brown
    Cc: Jens Axboe
    Cc: Jean Delvare
    Cc: Roland Dreier
    Cc: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Parag Warudkar
     

17 Oct, 2008

3 commits

  • [akpm@linux-foundation.org: minor fixlets and cleanups]
    Signed-off-by: Bernhard Weirich
    Signed-off-by: Evgeniy Polyakov
    Cc: Ben Gardner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Weirich
     
  • Optimize the ds_set_pullup function. For a strong pullup to be sent the
    ds2490 has to have both the strong pullup mode enabled, and the specific
    write operation has to have the SPU bit enabled. Previously the write
    always had the SPU bit enabled and both the duration and model was set
    when a strong pullup was requested. Now the strong pullup mode is enabled
    at initialization time, the delay is updated only when the value changes,
    and the write SPU bit is set only when a strong pullup is required. This
    removes two or three bus transactions per strong pullup request.

    Signed-off-by: David Fries
    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Fries
     
  • Drop the extra ds_wait_status() in ds_write_block().

    Signed-off-by: David Fries
    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Fries