1. 19 Dec, 2023 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'extcon-next-for-6.8' of... · a833c84a
      Greg Kroah-Hartman authored
      Merge tag 'extcon-next-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-next
      
      Chanwoo writes:
      
      Update extcon next for v6.8
      
      Detailed description for this pull request:
      1. Fix possible memory leak of device name in extcon_dev_register()
       : Fix memory leak on error path of extcon_dev_register().
      
      2. Set interrupt polarity based on device-tree for extcon-usbc-tusb320.c
       :Remove 'IRQF_TRIGGER_FALLING' request which is not allowed on
       every interrupt controller (i.e. arm64 GIC). Replace flag by a
       request that depends on the actual device-tree setting.
      
      3. Fix the comment style according to guide on extcon-qcom-spmi-misc.c.
      
      * tag 'extcon-next-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon:
        extcon: qcom-spmi-misc: don't use kernel-doc marker for comment
        extcon: usbc-tusb320: Set interrupt polarity based on device-tree
        extcon: fix possible name leak in extcon_dev_register()
      a833c84a
    • Greg Kroah-Hartman's avatar
      Merge tag 'mhi-for-v6.8' of... · 687a2859
      Greg Kroah-Hartman authored
      Merge tag 'mhi-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi into char-misc-next
      
      Manivannan writes:
      
      MHI Host
      ========
      
      - Added alignment check for event ring read pointer to avoid the potential
        buffer corruption issue.
      - Added support for SDX75 modem which takes longer time to enter READY state.
      - Added spinlock to protect concurrent access while queuing transfer ring
        elements.
      - Dropped the read channel lock before invoking the client callback as the
        client can potentially queue buffers thus ending up wtih soft lockup.
      
      MHI Endpoint
      ============
      
      - Used kzalloc() to allocate event ring elements instead of allocating the
        elements on the stack, as the endpoint controller trying to queue them may not
        be able to use vmalloc memory (using DMA).
      - Used slab allocator for allocting the memory for objects used frequently and
        are of fixed size.
      - Added support for interrupt moderation timer feature which is used by the host
        to limit the number of interrupts raised by the device for an event ring.
      - Added async read/write DMA support for transferring data between host and the
        endpoint. So far MHI EP stack assumed that the data will be transferred
        synchronously (i.e., it sends completion once the transfer APIs are returned).
        But this impacts the throughput if the controller is using DMA to do the
        transfer.
      
        So to add async suport, existing sync transfer APIs are renamed to
        {read/write}_sync and also introduced two new APIs {read/write}_async for
        carrying out the async transfer.
      
        Controllers implementing the async APIs should queue the buffers and return
        immediately without waiting for transfer completion. Once the transfer
        completion happens later, they should invoke the completion callback so that
        the MHI EP stack can send the completion event to the host.
      
        The controller driver patches (PCI EPF) for this async support are also merged
        to the MHI tree with Acks from PCI maintainers.
      - Fixed the DMA channel direction in error path of the PCI EPF driver.
      
      * tag 'mhi-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi:
        bus: mhi: host: Drop chan lock before queuing buffers
        bus: mhi: host: Add spinlock to protect WP access when queueing TREs
        PCI: epf-mhi: Fix the DMA data direction of dma_unmap_single()
        bus: mhi: ep: Add checks for read/write callbacks while registering controllers
        bus: mhi: ep: Add support for async DMA read operation
        bus: mhi: ep: Add support for async DMA write operation
        PCI: epf-mhi: Enable MHI async read/write support
        PCI: epf-mhi: Add support for DMA async read/write operation
        PCI: epf-mhi: Simulate async read/write using iATU
        bus: mhi: ep: Introduce async read/write callbacks
        bus: mhi: ep: Rename read_from_host() and write_to_host() APIs
        bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs
        bus: mhi: ep: Add support for interrupt moderation timer
        bus: mhi: ep: Use slab allocator where applicable
        bus: mhi: host: Add alignment check for event ring read pointer
        bus: mhi: host: pci_generic: Add SDX75 based modem support
        bus: mhi: host: Add a separate timeout parameter for waiting ready
        bus: mhi: ep: Do not allocate event ring element on stack
      687a2859
  2. 18 Dec, 2023 1 commit
  3. 17 Dec, 2023 1 commit
  4. 16 Dec, 2023 2 commits
  5. 15 Dec, 2023 34 commits