All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Neronin <niklas.neronin@linux.intel.com>
To: mathias.nyman@linux.intel.com
Cc: linux-usb@vger.kernel.org,
	Niklas Neronin <niklas.neronin@linux.intel.com>
Subject: [PATCH 0/2] usb: xhci: improve HCD page size & IMODI
Date: Fri, 25 Oct 2024 14:26:59 +0300	[thread overview]
Message-ID: <20241025112701.303035-1-niklas.neronin@linux.intel.com> (raw)

Improves HCD page size validation and move it into its own function.
This function is built so that the page size can be set to any valid value.

Improve the interrupt moderation interval (IMODI), by removing the error
case, and instead setting the IMODI to the closes valid value.

All patches were applied and tested on v6.12-rc4.

Niklas Neronin (2):
  usb: xhci: improve HCD page size validation and setting
  usb: xhci: improve xhci_set_interrupter_moderation()

 drivers/usb/host/xhci-mem.c | 45 ++++++++++++++++++++-----------------
 drivers/usb/host/xhci.c     | 25 +++++++++++----------
 drivers/usb/host/xhci.h     | 13 ++++++-----
 3 files changed, 46 insertions(+), 37 deletions(-)

-- 
2.45.2


             reply	other threads:[~2024-10-25 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-25 11:26 Niklas Neronin [this message]
2024-10-25 11:27 ` [PATCH 1/2] usb: xhci: improve HCD page size validation and setting Niklas Neronin
2024-10-28 13:13   ` Mathias Nyman
2024-10-25 11:27 ` [PATCH 2/2] usb: xhci: improve xhci_set_interrupter_moderation() Niklas Neronin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241025112701.303035-1-niklas.neronin@linux.intel.com \
    --to=niklas.neronin@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.