Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def function(file, name):
# Whether a partner identity has been received, when the update checks that
late = [n for n in ('cd321x_identity_known',)
if re.search(r'^static \w+ ' + n + r'\(', (r / core).read_text(), re.M)]
# The DPTX withdrawal of an external stop, separate so that KUnit can stub it
withdraw = [n for n in ('dcp_external_withdraw_dptx_locked',)
if re.search(r'^static \w+ ' + n + r'\(', (r / dcp).read_text(), re.M)]
# The DisplayPort hotplug decisions live in cd321x-dp.h when present.
dp_header = r / 'drivers/usb/typec/tipd/cd321x-dp.h'
dp = ''
Expand All @@ -55,6 +58,7 @@ def function(file, name):
('drivers/gpu/drm/apple/iomfb.c', 'iomfb_pause_presentation'),
(dcp, 'dcp_external_report_disconnected'),
(dcp, 'dcp_external_publish_generation'),
*((dcp, n) for n in withdraw),
(dcp, 'dcp_external_stop_locked'),
(dcp, 'dcp_external_disconnect'),
(dcp, 'dcp_external_stop_work'),
Expand Down Expand Up @@ -139,6 +143,7 @@ def function(file, name):
bool external_stop_deferred; unsigned int external_stop_retries;
struct delayed_work external_stop_retry_wq;
bool external_cable, typec_cable_connected, typec_crtc_off, pipe_enabled_h17p;
int typec_iomfb_hpd_ready;
bool external_physically_absent, external_prepared, placeholder_retried;
int typec_reconnect_tries;
bool external_hotplug_pending, external_hotplug_connected, quiescing;
Expand All @@ -152,6 +157,7 @@ def function(file, name):
bool sleep_v27_torn;
};
#define atomic_set(p, v) (*(p) = (v))
static void __attribute__((unused)) reinit_completion(int *c) { *c = 0; }
struct platform_device { struct apple_dcp *data; };
static struct apple_dcp *platform_get_drvdata(struct platform_device *p) { return p->data; }
static int raw_error, raw_links;
Expand Down Expand Up @@ -636,7 +642,6 @@ def swap(old, new):
static void mutex_unlock(int *m) { (void)m; }
static bool dcp_is_usb4_output(struct apple_dcp *d) { (void)d; return false; }
static bool apple_dp_tunnel_t602x(void) { return false; }
static void reinit_completion(int *c) { *c = 0; }
/* The firmware configures the link only while a sink answers it. */
static unsigned long wait_for_completion_timeout(int *c, unsigned long t)
{ if (link_trains) *c = 1; return *c ? t : 0; }
Expand Down