1. 14 Jun, 2024 1 commit
    • Richard Fitzgerald's avatar
      ASoC: cs35l56: Disconnect ASP1 TX sources when ASP1 DAI is hooked up · 8af49868
      Richard Fitzgerald authored
      If the ASP1 DAI is hooked up by the machine driver the ASP TX mixer
      sources should be initialized to disconnected. There aren't currently
      any available products using the ASP so this doesn't affect any
      existing systems.
      
      The cs35l56 does not have any fixed default for the mixer source
      registers. When the cs35l56 boots, its firmware patches these registers
      to setup a system-specific routing; this is so that Windows can use
      generic SDCA drivers instead of needing knowledge of chip-specific
      registers. The setup varies between end-products, which each have
      customized firmware, and so the default register state varies between
      end-products. It can also change if the firmware on an end-product is
      upgraded - for example if a change was needed to the routing for Windows
      use-cases. It must be emphasized that the settings applied by the
      firmware are not internal magic tuning; they are statically implementing
      use-case setup that on Linux would be done via ALSA controls.
      
      The driver is currently syncing the mixer controls with whatever
      initial state the firmware wrote to the registers, so that they report
      the actual audio routing. But if the ASP DAI is hooked up this can create
      a powered-up DAPM graph without anything intentionally setting up a path.
      This can lead to parts of the audio system powering up unexpectedly.
      
      For example when cs35l56 is connected to cs42l43 using a codec-codec link,
      this can create a complete DAPM graph which then powers-up cs42l43. But
      the cs42l43 can only be clocked from its SoundWire bus so this causes a
      bunch of errors in the kernel log where cs42l43 is unexpectedly powered-up
      without a clock.
      
      If the host is taking ownership of the ASP (either directly or as a
      codec-to-codec link) there is no need to keep the mixer settings that the
      firmware wrote. The driver has ALSA controls for setting these using
      standard Linux mechanisms. So if the machine driver hooks up the ASP the
      ASP mixers are initialized to "None" (no input). This prevents unintended
      DAPM-graph power-ups, and means the initial state of the mixers is
      always going to be None.
      
      Since the initial state of the mixers can vary from system to system and
      potentially between firmware upgrades, no use-case manager can currently
      assume that cs35l56 has a known initial state. The firmware could just as
      easily default them to "None" as to any input source. So defaulting them
      to "None" in the driver is not increasing the entropy of the system.
      Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
      Link: https://lore.kernel.org/r/20240613132527.46537-1-rf@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      8af49868
  2. 13 Jun, 2024 1 commit
  3. 12 Jun, 2024 3 commits
  4. 11 Jun, 2024 4 commits
  5. 10 Jun, 2024 5 commits
  6. 06 Jun, 2024 1 commit
  7. 05 Jun, 2024 2 commits
  8. 04 Jun, 2024 4 commits
  9. 03 Jun, 2024 6 commits
  10. 02 Jun, 2024 8 commits
  11. 01 Jun, 2024 5 commits
    • Linus Torvalds's avatar
      Merge tag '6.10-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 89be4025
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Two small smb3 fixes:
      
         - Fix socket creation with sfu mount option (spotted by test generic/423)
      
         - Minor cleanup: fix missing description in two files"
      
      * tag '6.10-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix creating sockets when using sfu mount options
        fs: smb: common: add missing MODULE_DESCRIPTION() macros
      89be4025
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.10' of... · ec9eeb89
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix a Kconfig bug regarding comparisons to 'm' or 'n'
      
       - Replace missed $(srctree)/$(src)
      
       - Fix unneeded kallsyms step 3
      
       - Remove incorrect "compatible" properties from image nodes in
         image.fit
      
       - Improve gen_kheaders.sh
      
       - Fix 'make dt_binding_check'
      
       - Clean up unnecessary code
      
      * tag 'kbuild-fixes-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        dt-bindings: kbuild: Fix dt_binding_check on unconfigured build
        kheaders: use `command -v` to test for existence of `cpio`
        kheaders: explicitly define file modes for archived headers
        scripts/make_fit: Drop fdt image entry compatible string
        kbuild: remove a stale comment about cleaning in link-vmlinux.sh
        kbuild: fix short log for AS in link-vmlinux.sh
        kbuild: change scripts/mksysmap into sed script
        kbuild: avoid unneeded kallsyms step 3
        kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src)
        kconfig: remove redundant check in expr_join_or()
        kconfig: fix comparison to constant symbols, 'm', 'n'
        kconfig: remove unused expr_is_no()
      ec9eeb89
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.10-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · bbeb1219
      Linus Torvalds authored
      Pull xfs fixes from Chandan Babu:
      
       - Fix a livelock by dropping an xfarray sortinfo folio when an error
         is encountered
      
       - During extended attribute operations, Initialize transaction
         reservation computation based on attribute operation code
      
       - Relax symbolic link's ondisk verification code to allow symbolic
         links with short remote targets
      
       - Prevent soft lockups when unmapping file ranges and also during
         remapping blocks during a reflink operation
      
       - Fix compilation warnings when XFS is built with W=1 option
      
      * tag 'xfs-6.10-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: Add cond_resched to block unmap range and reflink remap path
        xfs: don't open-code u64_to_user_ptr
        xfs: allow symlinks with short remote targets
        xfs: fix xfs_init_attr_trans not handling explicit operation codes
        xfs: drop xfarray sortinfo folio on error
        xfs: Stop using __maybe_unused in xfs_alloc.c
        xfs: Clear W=1 warning in xfs_iwalk_run_callbacks()
      bbeb1219
    • Linus Torvalds's avatar
      Merge tag 'tty-6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · f26ee67a
      Linus Torvalds authored
      Pull tty fix from Greg KH:
       "Here is a single revert for a much-reported regression in 6.10-rc1
        when it comes to a few older architectures.
      
        Turns out that the VT ioctls don't work the same across all cpu types
        because of some old compatibility requrements for stuff like alpha and
        powerpc. So revert the change that attempted to have them use the
        _IO() macros and go back to the known-working values instead.
      
        This has NOT been in linux-next but has had many reports that it fixes
        the issue with 6.10-rc1"
      
      * tag 'tty-6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        Revert "VT: Use macros to define ioctls"
      f26ee67a
    • Linus Torvalds's avatar
      Merge tag 'landlock-6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · d9aab0b1
      Linus Torvalds authored
      Pull landlock fix from Mickaël Salaün:
       "This fixes a wrong path walk triggered by syzkaller"
      
      * tag 'landlock-6.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
        selftests/landlock: Add layout1.refer_mount_root
        landlock: Fix d_parent walk
      d9aab0b1