21 Dec, 2019

6 commits


04 Dec, 2019

1 commit

  • …ernel/git/chrome-platform/linux

    Pull chrome platform changes from Benson Leung:
    "CrOS EC / MFD / IIO:

    - Contains tag-ib-chrome-mfd-iio-input-5.5, which is the first part
    of a series from Gwendal to refactor sensor code between MFD, CrOS
    EC, iio and input in order to add a new sensorhub driver and FIFO
    processing

    Wilco EC:

    - Add support for Dell's USB PowerShare policy control, keyboard
    backlight LED driver, and a new test_event file.

    - Fixes use after free in wilco_ec's telemetry driver.

    Misc:

    - bugfix in cros_usbpd_logger (missing destroy workqueue)"

    * tag 'tag-chrome-platform-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
    platform/chrome: wilco_ec: fix use after free issue
    platform/chrome: cros_ec: Add Kconfig default for cros-ec-sensorhub
    Revert "Input: cros_ec_keyb: mask out extra flags in event_type"
    Revert "Input: cros_ec_keyb - add back missing mask for event_type"
    platform/chrome: cros_ec: handle MKBP more events flag
    platform/chrome: cros_ec: Do not attempt to register a non-positive IRQ number
    platform/chrome: cros-ec: Record event timestamp in the hard irq
    mfd / platform / iio: cros_ec: Register sensor through sensorhub
    iio / platform: cros_ec: Add cros-ec-sensorhub driver
    mfd / platform: cros_ec: Add sensor_count and make check_features public
    platform/chrome: cros_ec: Put docs with the code
    platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in remove
    platform/chrome: cros_ec: Fix Kconfig indentation
    platform/chrome: wilco_ec: Add keyboard backlight LED support
    platform/chrome: wilco_ec: Add charging config driver
    platform/chrome: wilco_ec: Add Dell's USB PowerShare Policy control
    platform/chrome: wilco_ec: Add debugfs test_event file

    Linus Torvalds
     

03 Dec, 2019

1 commit

  • Pull Documentation updates from Jonathan Corbet:
    "Here are the main documentation changes for 5.5:

    - Various kerneldoc script enhancements.

    - More RST conversions; those are slowing down as we run out of
    things to convert, but we're a ways from done still.

    - Dan's "maintainer profile entry" work landed at last. Now we just
    need to get maintainers to fill in the profiles...

    - A reworking of the parallel build setup to work better with a
    variety of systems (and to not take over huge systems entirely in
    particular).

    - The MAINTAINERS file is now converted to RST during the build.
    Hopefully nobody ever tries to print this thing, or they will need
    to load a lot of paper.

    - A script and documentation making it easy for maintainers to add
    Link: tags at commit time.

    Also included is the removal of a bunch of spurious CR characters"

    * tag 'docs-5.5a' of git://git.lwn.net/linux: (91 commits)
    docs: remove a bunch of stray CRs
    docs: fix up the maintainer profile document
    libnvdimm, MAINTAINERS: Maintainer Entry Profile
    Maintainer Handbook: Maintainer Entry Profile
    MAINTAINERS: Reclaim the P: tag for Maintainer Entry Profile
    docs, parallelism: Rearrange how jobserver reservations are made
    docs, parallelism: Do not leak blocking mode to other readers
    docs, parallelism: Fix failure path and add comment
    Documentation: Remove bootmem_debug from kernel-parameters.txt
    Documentation: security: core.rst: fix warnings
    Documentation/process/howto/kokr: Update for 4.x -> 5.x versioning
    Documentation/translation: Use Korean for Korean translation title
    docs/memory-barriers.txt: Remove remaining references to mmiowb()
    docs/memory-barriers.txt/kokr: Update I/O section to be clearer about CPU vs thread
    docs/memory-barriers.txt/kokr: Fix style, spacing and grammar in I/O section
    Documentation/kokr: Kill all references to mmiowb()
    docs/memory-barriers.txt/kokr: Rewrite "KERNEL I/O BARRIER EFFECTS" section
    docs: Add initial documentation for devfreq
    Documentation: Document how to get links with git am
    docs: Add request_irq() documentation
    ...

    Linus Torvalds
     

02 Dec, 2019

3 commits

  • This is caused by dereferencing 'dev_data' after put_device() in
    the telem_device_remove() function.
    This patch just moves the put_device() down a bit to avoid this
    issue.

    Fixes: 1210d1e6bad1 ("platform/chrome: wilco_ec: Add telemetry char device interface")
    Signed-off-by: Wen Yang
    Cc: Benson Leung
    Cc: Enric Balletbo i Serra
    Cc: Nick Crews
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Enric Balletbo i Serra

    Wen Yang
     
  • Pull x86 platform driver updates from Andy Shevchenko:

    - New bootctl driver for Mellanox BlueField SoC.

    - New driver to support System76 laptops.

    - Temperature monitoring and fan control on Acer Aspire 7551 is now
    supported.

    - Previously the Huawei driver handled only hotkeys. After the
    conversion to WMI it has been expanded to support newer laptop
    models.

    - Big refactoring of intel-speed-select tools allows to use it on Intel
    CascadeLake-N systems.

    - Touchscreen support for ezpad 6 m4 and Schneider SCT101CTM tablets

    - Miscellaneous clean ups and fixes here and there.

    * tag 'platform-drivers-x86-v5.5-1' of git://git.infradead.org/linux-platform-drivers-x86: (59 commits)
    platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size
    platform/x86: hp-wmi: Fix ACPI errors caused by too small buffer
    platform/x86: intel_pmc_core: Add Comet Lake (CML) platform support to intel_pmc_core driver
    platform/x86: intel_pmc_core: Fix the SoC naming inconsistency
    platform/mellanox: Fix Kconfig indentation
    tools/power/x86/intel-speed-select: Display TRL buckets for just base config level
    tools/power/x86/intel-speed-select: Ignore missing config level
    platform/x86: touchscreen_dmi: Add info for the ezpad 6 m4 tablet
    tools/power/x86/intel-speed-select: Increment version
    tools/power/x86/intel-speed-select: Use core count for base-freq mask
    tools/power/x86/intel-speed-select: Support platform with limited Intel(R) Speed Select
    tools/power/x86/intel-speed-select: Use Frequency weight for CLOS
    tools/power/x86/intel-speed-select: Make CLOS frequency in MHz
    tools/power/x86/intel-speed-select: Use mailbox for CLOS_PM_QOS_CONFIG
    tools/power/x86/intel-speed-select: Auto mode for CLX
    tools/power/x86/intel-speed-select: Correct CLX-N frequency units
    tools/power/x86/intel-speed-select: Change display of "avx" to "avx2"
    tools/power/x86/intel-speed-select: Extend command set for perf-profile
    Add touchscreen platform data for the Schneider SCT101CTM tablet
    platform/x86: intel_int0002_vgpio: Pass irqchip when adding gpiochip
    ...

    Linus Torvalds
     
  • Pull removal of most of fs/compat_ioctl.c from Arnd Bergmann:
    "As part of the cleanup of some remaining y2038 issues, I came to
    fs/compat_ioctl.c, which still has a couple of commands that need
    support for time64_t.

    In completely unrelated work, I spent time on cleaning up parts of
    this file in the past, moving things out into drivers instead.

    After Al Viro reviewed an earlier version of this series and did a lot
    more of that cleanup, I decided to try to completely eliminate the
    rest of it and move it all into drivers.

    This series incorporates some of Al's work and many patches of my own,
    but in the end stops short of actually removing the last part, which
    is the scsi ioctl handlers. I have patches for those as well, but they
    need more testing or possibly a rewrite"

    * tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/git/arnd/playground: (42 commits)
    scsi: sd: enable compat ioctls for sed-opal
    pktcdvd: add compat_ioctl handler
    compat_ioctl: move SG_GET_REQUEST_TABLE handling
    compat_ioctl: ppp: move simple commands into ppp_generic.c
    compat_ioctl: handle PPPIOCGIDLE for 64-bit time_t
    compat_ioctl: move PPPIOCSCOMPRESS to ppp_generic
    compat_ioctl: unify copy-in of ppp filters
    tty: handle compat PPP ioctls
    compat_ioctl: move SIOCOUTQ out of compat_ioctl.c
    compat_ioctl: handle SIOCOUTQNSD
    af_unix: add compat_ioctl support
    compat_ioctl: reimplement SG_IO handling
    compat_ioctl: move WDIOC handling into wdt drivers
    fs: compat_ioctl: move FITRIM emulation into file systems
    gfs2: add compat_ioctl support
    compat_ioctl: remove unused convert_in_user macro
    compat_ioctl: remove last RAID handling code
    compat_ioctl: remove /dev/raw ioctl translation
    compat_ioctl: remove PCI ioctl translation
    compat_ioctl: remove joystick ioctl translation
    ...

    Linus Torvalds
     

28 Nov, 2019

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here is the big set of char/misc and other driver patches for 5.5-rc1

    Loads of different things in here, this feels like the catch-all of
    driver subsystems these days. Full details are in the shortlog, but
    nothing major overall, just lots of driver updates and additions.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'char-misc-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (198 commits)
    char: Fix Kconfig indentation, continued
    habanalabs: add more protection of device during reset
    habanalabs: flush EQ workers in hard reset
    habanalabs: make the reset code more consistent
    habanalabs: expose reset counters via existing INFO IOCTL
    habanalabs: make code more concise
    habanalabs: use defines for F/W files
    habanalabs: remove prints on successful device initialization
    habanalabs: remove unnecessary checks
    habanalabs: invalidate MMU cache only once
    habanalabs: skip VA block list update in reset flow
    habanalabs: optimize MMU unmap
    habanalabs: prevent read/write from/to the device during hard reset
    habanalabs: split MMU properties to PCI/DRAM
    habanalabs: re-factor MMU masks and documentation
    habanalabs: type specific MMU cache invalidation
    habanalabs: re-factor memory module code
    habanalabs: export uapi defines to user-space
    habanalabs: don't print error when queues are full
    habanalabs: increase max jobs number to 512
    ...

    Linus Torvalds
     

27 Nov, 2019

2 commits

  • Like the other CrOS EC sub-drivers set that depends on his parent and
    set default to the parent's value.

    Signed-off-by: Enric Balletbo i Serra

    Enric Balletbo i Serra
     
  • Pull sound updates from Takashi Iwai:
    "There have been some significant changes in the core side, both for
    ALSA and ASoC, while lots of development have been seen in SOF, as
    well as many small fixes/improvements for ASoC codecs and platforms.
    Below is a highlight in this cycle:

    Core:
    - The unification of PCM vmalloc buffer allocation helpers into the
    standard API
    - Clean up of the default PCM mmap handling for vmalloc & SG-buffer
    - Fix potential races at ALSA timer open
    - A few new PCM API extensions; just preliminary core changes, the
    actual changes in drivers will be merged in 5.6
    - Continued ASoC componentization works; now almost everything is a
    common ASoC component object. A lot of refactoring and
    simplification have been done along with it.

    ASoC:
    - Many fixes to the Sound Open Firmware (SOF) code
    - Wake on voice support for Chromebooks
    - SPI support and trigger word detection for RT5677
    - New drivers for Analog Devices ADAU7118, Intel Cannonlake systems
    with RT1011 and RT5682, Texas Instruments TAS2562 and TAS2770

    HD-audio:
    - Improved Intel DSP configuration / probe code for SOF
    - Plumbing the legacy HD-audio driver with Intel SOF HDMI
    - DP-MST support for Nvidia HDMI codecs
    - Realtek quirks cleanups and new additions as usual

    Others:
    - Lots of refactoring and cleanups for FireWire; period-size sharing,
    h/w IRQ interval configuration, clock recovery improvements, etc
    - USB-audio: Scarlett mixer quirks
    - Cleanups of PCM calls in various drivers (including media and USB)
    to adapt the core API changes"

    * tag 'sound-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (497 commits)
    ALSA: usb-audio: Fix Focusrite Scarlett 6i6 gen1 - input handling
    ALSA: hda/realtek - Enable internal speaker of ASUS UX431FLC
    ALSA: aloop: Fix dependency on timer API
    ASoC: DMI long name - avoid to add board name if matches with product name
    ASoC: improve the DMI long card code in asoc-core
    ASoC: rsnd: fix DALIGN register for SSIU
    ALSA: aloop: Avoid unexpected timer event callback tasklets
    ALSA: aloop: Remove redundant locking in timer open function
    ASoC: component: Add sync_stop PCM ops
    ASoC: pcm: Make ioctl ops optional
    ALSA: hda/hdmi - Clear codec->relaxed_resume flag at unbinding
    ALSA: hda - Disable audio component for legacy Nvidia HDMI codecs
    ALSA: cs4236: fix error return comparison of an unsigned integer
    ALSA: usb-audio: Fix NULL dereference at parsing BADD
    ALSA: usb-audio: Fix Scarlett 6i6 Gen 2 port data
    ALSA: hda/realtek - Enable the headset-mic on a Xiaomi's laptop
    ALSA: hda/realtek - Move some alc236 pintbls to fallback table
    ALSA: hda/realtek - Move some alc256 pintbls to fallback table
    ALSA: docs: Update about the new PCM sync_stop ops
    ALSA: pcm: Add card sync_irq field
    ...

    Linus Torvalds
     

26 Nov, 2019

2 commits

  • Pull printk updates from Petr Mladek:

    - Allow to print symbolic error names via new %pe modifier.

    - Use pr_warn() instead of the remaining pr_warning() calls. Fix
    formatting of the related lines.

    - Add VSPRINTF entry to MAINTAINERS.

    * tag 'printk-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk: (32 commits)
    checkpatch: don't warn about new vsprintf pointer extension '%pe'
    MAINTAINERS: Add VSPRINTF
    tools lib api: Renaming pr_warning to pr_warn
    ASoC: samsung: Use pr_warn instead of pr_warning
    lib: cpu_rmap: Use pr_warn instead of pr_warning
    trace: Use pr_warn instead of pr_warning
    dma-debug: Use pr_warn instead of pr_warning
    vgacon: Use pr_warn instead of pr_warning
    fs: afs: Use pr_warn instead of pr_warning
    sh/intc: Use pr_warn instead of pr_warning
    scsi: Use pr_warn instead of pr_warning
    platform/x86: intel_oaktrail: Use pr_warn instead of pr_warning
    platform/x86: asus-laptop: Use pr_warn instead of pr_warning
    platform/x86: eeepc-laptop: Use pr_warn instead of pr_warning
    oprofile: Use pr_warn instead of pr_warning
    of: Use pr_warn instead of pr_warning
    macintosh: Use pr_warn instead of pr_warning
    idsn: Use pr_warn instead of pr_warning
    ide: Use pr_warn instead of pr_warning
    crypto: n2: Use pr_warn instead of pr_warning
    ...

    Linus Torvalds
     
  • Pull MIPS updates from Paul Burton:
    "The main MIPS changes for 5.5:

    - Atomics-related code sees some rework & cleanup, most notably
    allowing Loongson LL/SC errata workarounds to be more bulletproof &
    their correctness to be checked at build time.

    - Command line setup code is simplified somewhat, resolving various
    corner cases.

    - MIPS kernels can now be built with kcov code coverage support.

    - We can now build with CONFIG_FORTIFY_SOURCE=y.

    - Miscellaneous cleanups.

    And some platform specific changes:

    - We now disable some broken TLB functionality on certain Ingenic
    systems, and JZ4780 systems gain some devicetree nodes to support
    more devices.

    - Loongson support sees a number of cleanups, and we gain initial
    support for Loongson 3A R4 systems.

    - We gain support for MediaTek MT7688-based GARDENA Smart Gateway
    systems.

    - SGI IP27 (Origin 2*) see a number of fixes, cleanups &
    simplifications.

    - SGI IP30 (Octane) systems are now supported"

    * tag 'mips_5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (107 commits)
    MIPS: SGI-IP27: Enable ethernet phy on second Origin 200 module
    MIPS: PCI: Fix fake subdevice ID for IOC3
    MIPS: Ingenic: Disable abandoned HPTLB function.
    MIPS: PCI: remember nasid changed by set interrupt affinity
    MIPS: SGI-IP27: Fix crash, when CPUs are disabled via nr_cpus parameter
    mips: add support for folded p4d page tables
    mips: drop __pXd_offset() macros that duplicate pXd_index() ones
    mips: fix build when "48 bits virtual memory" is enabled
    MIPS: math-emu: Reuse name array in debugfs_fpuemu()
    MIPS: allow building with kcov coverage
    MIPS: Loongson64: Drop setup_pcimap
    MIPS: Loongson2ef: Convert to early_printk_8250
    MIPS: Drop CPU_SUPPORTS_UNCACHED_ACCELERATED
    MIPS: Loongson{2ef, 32, 64} convert to generic fw cmdline
    MIPS: Drop pmon.h
    MIPS: Loongson: Unify LOONGSON3/LOONGSON64 Kconfig usage
    MIPS: Loongson: Rename LOONGSON1 to LOONGSON32
    MIPS: Loongson: Fix return value of loongson_hwmon_init
    MIPS: add support for SGI Octane (IP30)
    MIPS: PCI: make phys_to_dma/dma_to_phys for pci-xtalk-bridge common
    ...

    Linus Torvalds
     

25 Nov, 2019

2 commits

  • The AML code implementing the WMI methods creates a variable length
    field to hold the input data we pass like this:

    CreateDWordField (Arg1, 0x0C, DSZI)
    Local5 = DSZI /* \HWMC.DSZI */
    CreateField (Arg1, 0x80, (Local5 * 0x08), DAIN)

    If we pass 0 as bios_args.datasize argument then (Local5 * 0x08)
    is 0 which results in these errors:

    [ 71.973305] ACPI BIOS Error (bug): Attempt to CreateField of length zero (20190816/dsopcode-133)
    [ 71.973332] ACPI Error: Aborting method \HWMC due to previous error (AE_AML_OPERAND_VALUE) (20190816/psparse-529)
    [ 71.973413] ACPI Error: Aborting method \_SB.WMID.WMAA due to previous error (AE_AML_OPERAND_VALUE) (20190816/psparse-529)

    And in our HPWMI_WIRELESS2_QUERY calls always failing. for read commands
    like HPWMI_WIRELESS2_QUERY the DSZI value is not used / checked, except for
    read commands where extra input is needed to specify exactly what to read.

    So for HPWMI_WIRELESS2_QUERY we can safely pass the size of the expected
    output as insize to hp_wmi_perform_query(), as we are already doing for all
    other HPWMI_READ commands we send. Doing so fixes these errors.

    Cc: stable@vger.kernel.org
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=197007
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=201981
    BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1520703
    Signed-off-by: Hans de Goede
    Signed-off-by: Andy Shevchenko

    Hans de Goede
     
  • The HP WMI calls may take up to 128 bytes of data as input, and
    the AML methods implementing the WMI calls, declare a couple of fields for
    accessing input in different sizes, specifycally the HWMC method contains:

    CreateField (Arg1, 0x80, 0x0400, D128)

    Even though we do not use any of the WMI command-types which need a buffer
    of this size, the APCI interpreter still tries to create it as it is
    declared in generoc code at the top of the HWMC method which runs before
    the code looks at which command-type is requested.

    This results in many of these errors on many different HP laptop models:

    [ 14.459261] ACPI Error: Field [D128] at 1152 exceeds Buffer [NULL] size 160 (bits) (20170303/dsopcode-236)
    [ 14.459268] ACPI Error: Method parse/execution failed [\HWMC] (Node ffff8edcc61507f8), AE_AML_BUFFER_LIMIT (20170303/psparse-543)
    [ 14.459279] ACPI Error: Method parse/execution failed [\_SB.WMID.WMAA] (Node ffff8edcc61523c0), AE_AML_BUFFER_LIMIT (20170303/psparse-543)

    This commit increases the size of the data element of the bios_args struct
    to 128 bytes fixing these errors.

    Cc: stable@vger.kernel.org
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=197007
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=201981
    BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1520703
    Signed-off-by: Hans de Goede
    Signed-off-by: Andy Shevchenko

    Hans de Goede
     

23 Nov, 2019

1 commit


21 Nov, 2019

11 commits

  • Add Comet Lake to the list of the platforms that intel_pmc_core driver
    supports for pmc_core device.

    Just like Ice Lake, Comet Lake can also reuse all the Cannon Lake PCH
    IPs. No additional effort is needed to enable but to simply reuse them.

    Cc: Mario Limonciello
    Cc: Peter Zijlstra
    Cc: Srinivas Pandruvada
    Cc: Andy Shevchenko
    Cc: Kan Liang
    Cc: David E. Box
    Cc: Rajneesh Bhardwaj
    Cc: Tony Luck
    Signed-off-by: Gayatri Kammela
    Signed-off-by: Andy Shevchenko

    Gayatri Kammela
     
  • Intel's SoCs follow a naming convention which spells out the SoC name as
    two words instead of one word (E.g: Cannon Lake vs Cannonlake). Thus fix
    the naming inconsistency across the intel_pmc_core driver, so future
    SoCs can follow the naming consistency as below.

    Cometlake -> Comet Lake
    Tigerlake -> Tiger Lake
    Elkhartlake -> Elkhart Lake

    Cc: Mario Limonciello
    Cc: Peter Zijlstra
    Cc: Srinivas Pandruvada
    Cc: Andy Shevchenko
    Cc: Kan Liang
    Cc: David E. Box
    Cc: Rajneesh Bhardwaj
    Cc: Tony Luck
    Suggested-by: Andy Shevchenko
    Signed-off-by: Gayatri Kammela
    Signed-off-by: Andy Shevchenko

    Gayatri Kammela
     
  • Adjust indentation from spaces to tab (+optional two spaces) as in
    coding style with command like:
    $ sed -e 's/^ /\t/' -i */Kconfig

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andy Shevchenko

    Krzysztof Kozlowski
     
  • IB between mfd, iio, input and chrome platform for cros-ec-sensorhub

    Signed-off-by: Enric Balletbo i Serra

    Enric Balletbo i Serra
     
  • The ChromeOS EC has support for signaling to the host that a single IRQ
    can serve multiple MKBP (Matrix KeyBoard Protocol) events.

    Doing this serves an optimization purpose, as it minimizes the number of
    round-trips into the interrupt handling machinery, and it proves
    beneficial to sensor timestamping as it keeps the desired synchronization
    of event times between the two processors.

    This patch adds kernel support for this EC feature, allowing the ec_irq
    to loop until all events have been served.

    Signed-off-by: Enrico Granata
    Signed-off-by: Gwendal Grignou
    Reviewed-by: Jonathan Cameron
    Acked-by: Lee Jones
    Signed-off-by: Enric Balletbo i Serra

    Enrico Granata
     
  • Add a layer of sanity checking to cros_ec_register against attempting to
    register IRQ values that are not strictly greater than 0.

    Signed-off-by: Enrico Granata
    Signed-off-by: Gwendal Grignou
    Acked-by: Jonathan Cameron
    Acked-by: Lee Jones
    Signed-off-by: Enric Balletbo i Serra

    Gwendal Grignou
     
  • To improve sensor timestamp precision, given EC and AP are in different
    time domains, the AP needs to try to record the exact moment an event
    was signalled to the AP by the EC as soon as possible after it happens.

    First thing in the hard irq is the best place for this.

    Signed-off-by: Gwendal Grignou
    Acked-by: Jonathan Cameron
    Acked-by: Lee Jones
    Signed-off-by: Enric Balletbo i Serra

    Gwendal Grignou
     
  • Similar to HID sensor stack, the new driver sits between cros-ec-dev
    and the IIO device drivers:

    The EC based IIO device topology would be:

    iio:device1 ->
    ...0/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.6.auto/
    cros-ec-sensorhub.7.auto/
    cros-ec-accel.15.auto/
    iio:device1

    It will be expanded to control EC sensor FIFO.

    Signed-off-by: Gwendal Grignou
    Reviewed-by: Jonathan Cameron
    [Fix "unknown type name 'uint32_t'" type errors]
    Reported-by: kbuild test robot
    Signed-off-by: Enric Balletbo i Serra

    Gwendal Grignou
     
  • Add a new function to return the number of MEMS sensors available in a
    ChromeOS Embedded Controller. It uses MOTIONSENSE_CMD_DUMP if available
    or a specific memory map ACPI registers to find out.

    Also, make check_features public as it can be useful for other drivers
    to know what the Embedded Controller supports.

    Signed-off-by: Gwendal Grignou
    Acked-by: Lee Jones
    Signed-off-by: Enric Balletbo i Serra

    Gwendal Grignou
     
  • To avoid doc rot, put function documentations with code, not header.
    Use kernel-doc style comments for exported functions.

    Signed-off-by: Gwendal Grignou
    Acked-by: Jonathan Cameron
    Signed-off-by: Enric Balletbo i Serra

    Gwendal Grignou
     
  • The driver forgets to destroy workqueue in remove.
    Add the missed call to fix it.

    Signed-off-by: Chuhong Yuan
    Signed-off-by: Enric Balletbo i Serra

    Chuhong Yuan
     

20 Nov, 2019

3 commits


18 Nov, 2019

1 commit


05 Nov, 2019

1 commit

  • When call function hwmon_device_register failed, use the actual
    return value instead of always -ENOMEM.

    Fixes: 64f09aa967e1 ("MIPS: Loongson-3: Add CPU Hwmon platform driver")
    Signed-off-by: Tiezhu Yang
    Signed-off-by: Paul Burton
    Cc: Ralf Baechle
    Cc: James Hogan
    Cc: Huacai Chen
    Cc: Jiaxun Yang
    Cc: linux-mips@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org

    Tiezhu Yang
     

02 Nov, 2019

1 commit


29 Oct, 2019

1 commit


28 Oct, 2019

1 commit


27 Oct, 2019

2 commits