17 Apr, 2014

8 commits

  • Signed-off-by: Geert Uytterhoeven
    Cc: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Geert Uytterhoeven
     
  • Ignore client writing state during cb completion to fix a memory
    leak.

    When moving cbs to the completion list we should not look at
    writing_state as this state can be already overwritten by next
    write, the fact that a cb is on the write waiting list means
    that it was already written to the HW and we can safely complete it.

    Same pays for wait in poll handler, we do not have to check the state
    wake is done after completion list processing.

    Cc: stable@vger.kernel.org
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     
  • NM and SPS FW types that may run on ME device on server platforms
    do not have valid MEI/HECI interface and driver should not
    be bound to it as this might lead to system hung.
    In practice not all BIOSes effectively hide such devices from the
    OS and in some cases it is not possible.

    We determine FW type by examining Host FW status registers in order to
    unbind the driver.
    In this patch we are adding check for ME on Cougar Point, Lynx Point
    Devices

    Cc: stable # 3.10+
    Signed-off-by: Tomas Winkler
    Tested-by: Nikola Ciprich
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • Increase genwqe driver version number.

    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Frank Haverkamp
     
  • When being used in a multithreaded application there were problems
    with memory pages/cachelines accessed by multiple threads/cpus at the
    same time, while doing DMA transfers to/from those. To avoid such
    situations this fix is creating a copy of the first and the last page
    if it is not fully used. The data is copied from user-space into those
    pages and results are copied back when the DDCB-request is
    successfully finished.

    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Frank Haverkamp
     
  • rc is not initialized, so genwqe_finish_queue() either returns -EIO or
    garbage. Fortunately the return is not being checked by any callers,
    so this has not yet caused any problems. Even so, it makes sense to
    fix this small bug in case is is checked in future.

    Signed-off-by: Colin Ian King
    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Colin Ian King
     
  • Needed to add wmb() before we send the DDCB for execution.
    Without the syncronizing it failed on System p.

    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Frank Haverkamp
     
  • In addition to the two flash partitions we used so far, there is a 3rd
    one which is enabled for usage by this fix.

    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Frank Haverkamp
     

08 Apr, 2014

1 commit


03 Apr, 2014

1 commit

  • Pull trivial tree updates from Jiri Kosina:
    "Usual rocket science -- mostly documentation and comment updates"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
    sparse: fix comment
    doc: fix double words
    isdn: capi: fix "CAPI_VERSION" comment
    doc: DocBook: Fix typos in xml and template file
    Bluetooth: add module name for btwilink
    driver core: unexport static function create_syslog_header
    mmc: core: typo fix in printk specifier
    ARM: spear: clean up editing mistake
    net-sysfs: fix comment typo 'CONFIG_SYFS'
    doc: Insert MODULE_ in module-signing macros
    Documentation: update URL to hfsplus Technote 1150
    gpio: update path to documentation
    ixgbe: Fix format string in ixgbe_fcoe.
    Kconfig: Remove useless "default N" lines
    user_namespace.c: Remove duplicated word in comment
    CREDITS: fix formatting
    treewide: Fix typo in Documentation/DocBook
    mm: Fix warning on make htmldocs caused by slab.c
    ata: ata-samsung_cf: cleanup in header file
    idr: remove unused prototype of idr_free()

    Linus Torvalds
     

02 Apr, 2014

4 commits

  • Pull staging driver updates from Greg KH:
    "Here's the huge drivers/staging/ update for 3.15-rc1.

    Loads of cleanup fixes, a few drivers removed, and some new ones
    added.

    All have been in linux-next for a while"

    * tag 'staging-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1375 commits)
    staging: xillybus: XILLYBUS_PCIE depends on PCI_MSI
    staging: xillybus: Added "select CRC32" for XILLYBUS in Kconfig
    staging: comedi: poc: remove obsolete driver
    staging: unisys: replace kzalloc/kfree with UISMALLOC/UISFREE
    staging: octeon-usb: prevent memory corruption
    staging: usbip: fix line over 80 characters
    staging: usbip: fix quoted string split across lines
    Staging: unisys: Remove RETINT macro
    Staging: unisys: Remove FAIL macro
    Staging: unisys: Remove RETVOID macro
    Staging: unisys: Remove RETPTR macro
    Staging: unisys: Remove RETBOOL macro
    Staging: unisys: Remove FAIL_WPOSTCODE_1 macro
    Staging: unisys: Cleanup macros to get rid of goto statements
    Staging: unisys: include: Remove unused macros from timskmod.h
    staging: dgap: fix the rest of the checkpatch warnings in dgap.c
    Staging: bcm: Remove unnecessary parentheses
    staging: wlags49_h2: Delete unnecessary braces
    staging: wlags49_h2: Do not use assignment in if condition
    staging: wlags49_h2: Enclose macro in a do-while loop
    ...

    Linus Torvalds
     
  • Pull char/misc driver patches from Greg KH:
    "Here's the big char/misc driver updates for 3.15-rc1.

    Lots of various things here, including the new mcb driver subsystem.

    All of these have been in linux-next for a while"

    * tag 'char-misc-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (118 commits)
    extcon: Move OF helper function to extcon core and change function name
    extcon: of: Remove unnecessary function call by using the name of device_node
    extcon: gpio: Use SIMPLE_DEV_PM_OPS macro
    extcon: palmas: Use SIMPLE_DEV_PM_OPS macro
    mei: don't use deprecated DEFINE_PCI_DEVICE_TABLE macro
    mei: amthif: fix checkpatch error
    mei: client.h fix checkpatch errors
    mei: use cl_dbg where appropriate
    mei: fix Unnecessary space after function pointer name
    mei: report consistently copy_from/to_user failures
    mei: drop pr_fmt macros
    mei: make me hw headers private to me hw.
    mei: fix memory leak of pending write cb objects
    mei: me: do not reset when less than expected data is received
    drivers: mcb: Fix build error discovered by 0-day bot
    cs5535-mfgpt: Simplify dependencies
    spmi: pm: drop bus-level PM suspend/resume routines
    spmi: pmic_arb: make selectable on ARCH_QCOM
    Drivers: hv: vmbus: Increase the limit on the number of pfns we can handle
    pch_phub: Report error writing MAC back to user
    ...

    Linus Torvalds
     
  • Pull sound updates from Takashi Iwai:
    "There have been lots of changes in ALSA core, HD-audio and ASoC, also
    most of PCI drivers touched by conversions of printks. All these
    resulted in a high volume and wide ranged patch sets in this release.
    Many changes are fairly trivial, but also lots of nice cleanups and
    refactors. There are a few new drivers, most notably, the Intel
    Haswell and Baytrail ASoC driver.

    Core changes:
    - A bit modernization; embed the device struct into snd_card struct,
    so that it may be referred from the beginning. A new
    snd_card_new() function is introduced for that, and all drivers
    have been converted.

    - Simplification in the device management code in ALSA core; now
    managed by a simple priority list instead

    - Converted many kernel messages to use the standard dev_err() & co;
    this would be the pretty visible difference, especially for
    HD-audio.

    HD-audio:
    - Conexant codecs use the auto-parser as default now; the old static
    code still remains in case of regressions. Some old quirks have
    been rewritten with the fixups for auto-parser.

    - C-Media codecs also use the auto-parser as default now, too.

    - A device struct is assigned to each HD-audio codec, and the
    formerly hwdep attributes are accessible over the codec sysfs, too.
    hwdep attributes still remain for compatibility.

    - Split the PCI-specific stuff for HD-audio controller into a
    separate module, ane make a helper module for the generic
    controller driver. This is a preliminary change for supporting
    Tegra HDMI controller in near future, which slipped from 3.15
    merge.

    - Device-specific fixes: mute LED support for Lenovo Ideapad, mic LED
    fix for HP laptops, more ASUS subwoofer quirks, yet more Dell
    laptop headset quirks

    - Make the HD-audio codec response a bit more robust

    - A few improvements on Realtek ALC282 / 283 about the pop noises

    - A couple of Intel HDMI fixes

    ASoC:
    - Lots of cleanups for enumerations; refactored lots of error prone
    original codes to use more modern APIs

    - Elimination of the ASoC level wrappers for I2C and SPI moving us
    closer to converting to regmap completely and avoiding some
    randconfig hassle

    - Provide both manually and transparently locked DAPM APIs rather
    than a mix of the two fixing some concurrency issues

    - Start converting CODEC drivers to use separate bus interface
    drivers rather than having them all in one file helping avoid
    dependency issues

    - DPCM support for Intel Haswell and Bay Trail platforms, lots of
    fixes

    - Lots of work on improvements for simple-card, DaVinci and the
    Renesas rcar drivers.

    - New drivers for Analog Devices ADAU1977, TI PCM512x and parts of
    the CSR SiRF SoC, TLV320AIC31XXX, Armada 370 DB, Cirrus cs42xx8

    - Fixes for the simple-card DAI format DT mess

    - DT support for a couple more devices.

    - Use of the tdm_slot mapping in a few drivers

    Others:
    - Support of reset_resume callback for improved S4 in USB-audio
    driver; the device with boot quirks have been little tested, which
    we need to watch out in this development cycle

    - Add PM support for ICE1712 driver (finally!); it's still pretty
    partial support, only for M-Audio devices"

    * tag 'sound-3.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (610 commits)
    ALSA: ice1712: Add suspend support for M-Audio ICE1712-based cards
    ALSA: ice1712: add suspend support for ICE1712 chip
    ALSA: hda - Enable beep for ASUS 1015E
    ALSA: asihpi: fix some indenting in snd_card_asihpi_pcm_new()
    ALSA: hda - add headset mic detect quirks for three Dell laptops
    ASoC: tegra: move AC97 clock handling to the machine driver
    ASoC: simple-card: Handle many DAI links
    ASoC: simple-card: Add DT documentation for multi-DAI links
    ASoC: simple-card: dynamically allocate the DAI link and properties
    ASoC: imx-ssi: Add .xlate_tdm_slot_mask() support.
    ASoC: fsl-esai: Add .xlate_tdm_slot_mask() support.
    ASoC: fsl-utils: Add fsl_asoc_xlate_tdm_slot_mask() support.
    ASoC: core: remove the 'of_' prefix of of_xlate_tdm_slot_mask.
    ASoC: rcar: subnode tidyup for renesas,rsnd.txt
    ASoC: Remove name_prefix unset during DAI link init hack
    ALSA: hda - Inform the unexpectedly ignored pins by auto-parser
    ASoC: rcar: bugfix: it cares about the non-src case
    ARM: bockw: fixup SND_SOC_DAIFMT_CBx_CFx flags
    ASoC: pcm: Drop incorrect double/extra frees
    ASoC: mfld_machine: Fix compile error
    ...

    Linus Torvalds
     
  • Pull PCI changes from Bjorn Helgaas:
    "Enumeration
    - Increment max correctly in pci_scan_bridge() (Andreas Noever)
    - Clarify the "scan anyway" comment in pci_scan_bridge() (Andreas Noever)
    - Assign CardBus bus number only during the second pass (Andreas Noever)
    - Use request_resource_conflict() instead of insert_ for bus numbers (Andreas Noever)
    - Make sure bus number resources stay within their parents bounds (Andreas Noever)
    - Remove pci_fixup_parent_subordinate_busnr() (Andreas Noever)
    - Check for child busses which use more bus numbers than allocated (Andreas Noever)
    - Don't scan random busses in pci_scan_bridge() (Andreas Noever)
    - x86: Drop pcibios_scan_root() check for bus already scanned (Bjorn Helgaas)
    - x86: Use pcibios_scan_root() instead of pci_scan_bus_with_sysdata() (Bjorn Helgaas)
    - x86: Use pcibios_scan_root() instead of pci_scan_bus_on_node() (Bjorn Helgaas)
    - x86: Merge pci_scan_bus_on_node() into pcibios_scan_root() (Bjorn Helgaas)
    - x86: Drop return value of pcibios_scan_root() (Bjorn Helgaas)

    NUMA
    - x86: Add x86_pci_root_bus_node() to look up NUMA node from PCI bus (Bjorn Helgaas)
    - x86: Use x86_pci_root_bus_node() instead of get_mp_bus_to_node() (Bjorn Helgaas)
    - x86: Remove mp_bus_to_node[], set_mp_bus_to_node(), get_mp_bus_to_node() (Bjorn Helgaas)
    - x86: Use NUMA_NO_NODE, not -1, for unknown node (Bjorn Helgaas)
    - x86: Remove acpi_get_pxm() usage (Bjorn Helgaas)
    - ia64: Use NUMA_NO_NODE, not MAX_NUMNODES, for unknown node (Bjorn Helgaas)
    - ia64: Remove acpi_get_pxm() usage (Bjorn Helgaas)
    - ACPI: Fix acpi_get_node() prototype (Bjorn Helgaas)

    Resource management
    - i2o: Fix and refactor PCI space allocation (Bjorn Helgaas)
    - Add resource_contains() (Bjorn Helgaas)
    - Add %pR support for IORESOURCE_UNSET (Bjorn Helgaas)
    - Mark resources as IORESOURCE_UNSET if we can't assign them (Bjorn Helgaas)
    - Don't clear IORESOURCE_UNSET when updating BAR (Bjorn Helgaas)
    - Check IORESOURCE_UNSET before updating BAR (Bjorn Helgaas)
    - Don't try to claim IORESOURCE_UNSET resources (Bjorn Helgaas)
    - Mark 64-bit resource as IORESOURCE_UNSET if we only support 32-bit (Bjorn Helgaas)
    - Don't enable decoding if BAR hasn't been assigned an address (Bjorn Helgaas)
    - Add "weak" generic pcibios_enable_device() implementation (Bjorn Helgaas)
    - alpha, microblaze, sh, sparc, tile: Use default pcibios_enable_device() (Bjorn Helgaas)
    - s390: Use generic pci_enable_resources() (Bjorn Helgaas)
    - Don't check resource_size() in pci_bus_alloc_resource() (Bjorn Helgaas)
    - Set type in __request_region() (Bjorn Helgaas)
    - Check all IORESOURCE_TYPE_BITS in pci_bus_alloc_from_region() (Bjorn Helgaas)
    - Change pci_bus_alloc_resource() type_mask to unsigned long (Bjorn Helgaas)
    - Log IDE resource quirk in dmesg (Bjorn Helgaas)
    - Revert "[PATCH] Insert GART region into resource map" (Bjorn Helgaas)

    PCI device hotplug
    - Make check_link_active() non-static (Rajat Jain)
    - Use link change notifications for hot-plug and removal (Rajat Jain)
    - Enable link state change notifications (Rajat Jain)
    - Don't disable the link permanently during removal (Rajat Jain)
    - Don't check adapter or latch status while disabling (Rajat Jain)
    - Disable link notification across slot reset (Rajat Jain)
    - Ensure very fast hotplug events are also processed (Rajat Jain)
    - Add hotplug_lock to serialize hotplug events (Rajat Jain)
    - Remove a non-existent card, regardless of "surprise" capability (Rajat Jain)
    - Don't turn slot off when hot-added device already exists (Yijing Wang)

    MSI
    - Keep pci_enable_msi() documentation (Alexander Gordeev)
    - ahci: Fix broken single MSI fallback (Alexander Gordeev)
    - ahci, vfio: Use pci_enable_msi_range() (Alexander Gordeev)
    - Check kmalloc() return value, fix leak of name (Greg Kroah-Hartman)
    - Fix leak of msi_attrs (Greg Kroah-Hartman)
    - Fix pci_msix_vec_count() htmldocs failure (Masanari Iida)

    Virtualization
    - Device-specific ACS support (Alex Williamson)

    Freescale i.MX6
    - Wait for retraining (Marek Vasut)

    Marvell MVEBU
    - Use Device ID and revision from underlying endpoint (Andrew Lunn)
    - Fix incorrect size for PCI aperture resources (Jason Gunthorpe)
    - Call request_resource() on the apertures (Jason Gunthorpe)
    - Fix potential issue in range parsing (Jean-Jacques Hiblot)

    Renesas R-Car
    - Check platform_get_irq() return code (Ben Dooks)
    - Add error interrupt handling (Ben Dooks)
    - Fix bridge logic configuration accesses (Ben Dooks)
    - Register each instance independently (Magnus Damm)
    - Break out window size handling (Magnus Damm)
    - Make the Kconfig dependencies more generic (Magnus Damm)

    Synopsys DesignWare
    - Fix RC BAR to be single 64-bit non-prefetchable memory (Mohit Kumar)

    Miscellaneous
    - Remove unused SR-IOV VF Migration support (Bjorn Helgaas)
    - Enable INTx if BIOS left them disabled (Bjorn Helgaas)
    - Fix hex vs decimal typo in cpqhpc_probe() (Dan Carpenter)
    - Clean up par-arch object file list (Liviu Dudau)
    - Set IORESOURCE_ROM_SHADOW only for the default VGA device (Sander Eikelenboom)
    - ACPI, ARM, drm, powerpc, pcmcia, PCI: Use list_for_each_entry() for bus traversal (Yijing Wang)
    - Fix pci_bus_b() build failure (Paul Gortmaker)"

    * tag 'pci-v3.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (108 commits)
    Revert "[PATCH] Insert GART region into resource map"
    PCI: Log IDE resource quirk in dmesg
    PCI: Change pci_bus_alloc_resource() type_mask to unsigned long
    PCI: Check all IORESOURCE_TYPE_BITS in pci_bus_alloc_from_region()
    resources: Set type in __request_region()
    PCI: Don't check resource_size() in pci_bus_alloc_resource()
    s390/PCI: Use generic pci_enable_resources()
    tile PCI RC: Use default pcibios_enable_device()
    sparc/PCI: Use default pcibios_enable_device() (Leon only)
    sh/PCI: Use default pcibios_enable_device()
    microblaze/PCI: Use default pcibios_enable_device()
    alpha/PCI: Use default pcibios_enable_device()
    PCI: Add "weak" generic pcibios_enable_device() implementation
    PCI: Don't enable decoding if BAR hasn't been assigned an address
    PCI: Enable INTx in pci_reenable_device() only when MSI/MSI-X not enabled
    PCI: Mark 64-bit resource as IORESOURCE_UNSET if we only support 32-bit
    PCI: Don't try to claim IORESOURCE_UNSET resources
    PCI: Check IORESOURCE_UNSET before updating BAR
    PCI: Don't clear IORESOURCE_UNSET when updating BAR
    PCI: Mark resources as IORESOURCE_UNSET if we can't assign them
    ...

    Conflicts:
    arch/x86/include/asm/topology.h
    drivers/ata/ahci.c

    Linus Torvalds
     

23 Mar, 2014

1 commit

  • ASoC: Updates for v3.15

    Quite a busy release for ASoC this time, more on janitorial work than
    exciting new features but welcome nontheless:

    - Lots of cleanups from Takashi for enumerations; the original API for
    these was error prone so he's refactored lots of code to use more
    modern APIs which avoid issues.
    - Elimination of the ASoC level wrappers for I2C and SPI moving us
    closer to converting to regmap completely and avoiding some
    randconfig hassle.
    - Provide both manually and transparently locked DAPM APIs rather than
    a mix of the two fixing some concurrency issues.
    - Start converting CODEC drivers to use separate bus interface drivers
    rather than having them all in one file helping avoid dependency
    issues.
    - DPCM support for Intel Haswell and Bay Trail platforms.
    - Lots of work on improvements for simple-card, DaVinci and the Renesas
    rcar drivers.
    - New drivers for Analog Devices ADAU1977, TI PCM512x and parts of the
    CSR SiRF SoC.

    # gpg: Signature made Wed 12 Mar 2014 23:05:45 GMT using RSA key ID 7EA229BD
    # gpg: Good signature from "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "
    # gpg: aka "Mark Brown "

    Mark Brown
     

18 Mar, 2014

11 commits


13 Mar, 2014

1 commit


11 Mar, 2014

1 commit

  • GFP_THISNODE is for callers that implement their own clever fallback to
    remote nodes. It restricts the allocation to the specified node and
    does not invoke reclaim, assuming that the caller will take care of it
    when the fallback fails, e.g. through a subsequent allocation request
    without GFP_THISNODE set.

    However, many current GFP_THISNODE users only want the node exclusive
    aspect of the flag, without actually implementing their own fallback or
    triggering reclaim if necessary. This results in things like page
    migration failing prematurely even when there is easily reclaimable
    memory available, unless kswapd happens to be running already or a
    concurrent allocation attempt triggers the necessary reclaim.

    Convert all callsites that don't implement their own fallback strategy
    to __GFP_THISNODE. This restricts the allocation a single node too, but
    at the same time allows the allocator to enter the slowpath, wake
    kswapd, and invoke direct reclaim if necessary, to make the allocation
    happen when memory is full.

    Signed-off-by: Johannes Weiner
    Acked-by: Rik van Riel
    Cc: Jan Stancek
    Cc: Mel Gorman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     

09 Mar, 2014

3 commits


01 Mar, 2014

9 commits

  • This implements support for defining reserved areas as subnodes,
    to keep the genpool from using these.

    Suggested-by: Rob Herring
    Signed-off-by: Heiko Stuebner
    Tested-by: Ulrich Prinz
    Signed-off-by: Greg Kroah-Hartman

    Heiko Stübner
     
  • As result of deprecation of MSI-X/MSI enablement functions
    pci_enable_msix() and pci_enable_msi_block() all drivers
    using these two interfaces need to be updated to use the
    new pci_enable_msi_range() or pci_enable_msi_exact()
    and pci_enable_msix_range() or pci_enable_msix_exact()
    interfaces.

    Signed-off-by: Alexander Gordeev
    Cc: Greg Kroah-Hartman
    Cc: Andy King
    Cc: Dmitry Torokhov
    Cc: linux-pci@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Alexander Gordeev
     
  • As result of deprecation of MSI-X/MSI enablement functions
    pci_enable_msix() and pci_enable_msi_block() all drivers
    using these two interfaces need to be updated to use the
    new pci_enable_msi_range() or pci_enable_msi_exact()
    and pci_enable_msix_range() or pci_enable_msix_exact()
    interfaces.

    Signed-off-by: Alexander Gordeev
    Cc: Harshavardhan R Kharche
    Cc: Ashutosh Dixit
    Cc: linux-pci@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Alexander Gordeev
     
  • While running Documentation/watchdog/src/watchdog-simple.c
    and quiting by Ctrl-C, fallowing error is displayed:
    mei_me 0000:00:16.0: wd: stop failed to complete ret=-512.

    The whatchdog core framework is not able to propagate
    -ESYSRESTART or -EINTR. Also There is no much sense in
    restarting the close system call so instead of using
    wait_event_interruptible_timeout we can use wait_event_timeout
    with reasonable 10 msecs timeout.

    Reported-by: Prarit Bhargava
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • Add reduce credits to wd_send to remove code
    repetition and simplify error handling

    Signed-off-by: Tomas Winkler
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • 1. Propagate ENOTTY to user space if the client is not present
    in the system
    2. Use ETIME consistently on timeouts
    3. Return EIO on write failures
    4. Return ENODEV on recoverable device failures such as resets

    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     
  • Since txe use doorbell and not circular buffer
    we have to cheat in write slot counting, txe always consume all the
    slots upon write. In order for it to work we need to track
    slots using mei_hbuf_empty_slots() instead of tracking it in mei layer

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • A client has to acquire host buffer
    before writing, we add lock like wrapper
    to replace the code snippet

    if (dev->hbuf_is_ready)
    dev->hbuf_is_ready = false;

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • Signed-off-by: Stephen Rothwell
    Signed-off-by: Greg Kroah-Hartman

    Stephen Rothwell