]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86/intel/sdsi: Combine read and write mailbox flows
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 11 Apr 2024 02:58:49 +0000 (19:58 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 Apr 2024 14:05:59 +0000 (16:05 +0200)
commit688ee9b9ec6cbf238aa3874e742221279b5e7667
treebe8b08f4474b5d2618d7936d25b5144b4e82d662
parent7c277d4d16bac2e21ebb53e583d8db0b08cbdeb1
platform/x86/intel/sdsi: Combine read and write mailbox flows

The current mailbox commands are either read-only or write-only and the
flow is different for each. New commands will need to send and receive
data. In preparation for these commands, create a common polling function
to handle sending data and receiving in the same transaction.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240411025856.2782476-3-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/sdsi.c