debugfs.c (977c45ab5f4190bc9ee08ce03e501f73082e3c68) debugfs.c (0e698cd0b94c1bf2c9311d6c1a6ba9dd32cd73de)
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 379 unchanged lines hidden (view full) ---

388 wil_debugfs_iomem_data *)data;
389 struct wil6210_priv *wil = d->wil;
390 int ret;
391
392 ret = wil_pm_runtime_get(wil);
393 if (ret < 0)
394 return ret;
395
1/*
2 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
3 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 379 unchanged lines hidden (view full) ---

388 wil_debugfs_iomem_data *)data;
389 struct wil6210_priv *wil = d->wil;
390 int ret;
391
392 ret = wil_pm_runtime_get(wil);
393 if (ret < 0)
394 return ret;
395
396 writel(val, (void __iomem *)d->offset);
396 writel_relaxed(val, (void __iomem *)d->offset);
397
397 wmb(); /* make sure write propagated to HW */
398
399 wil_pm_runtime_put(wil);
400
401 return 0;
402}
403
404static int wil_debugfs_iomem_x32_get(void *data, u64 *val)

--- 2132 unchanged lines hidden ---
398 wmb(); /* make sure write propagated to HW */
399
400 wil_pm_runtime_put(wil);
401
402 return 0;
403}
404
405static int wil_debugfs_iomem_x32_get(void *data, u64 *val)

--- 2132 unchanged lines hidden ---