Skip to content

Commit

Permalink
Silences WLAN, PCIe, and CPU suspend state kernel messages
Browse files Browse the repository at this point in the history
Bug: 27134656
Change-Id: I681ec2171472514489365ca4bfc4ef16d9b344fe
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
nickdesaulniers authored and khusika committed Aug 18, 2018
1 parent 62f27a2 commit 43c87ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions drivers/pci/host/pci-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4377,7 +4377,7 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)

/* assert PCIe reset link to keep EP in reset */

PCIE_INFO(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
PCIE_DBG(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
dev->rc_idx);
gpio_set_value(dev->gpio[MSM_PCIE_GPIO_PERST].num,
dev->gpio[MSM_PCIE_GPIO_PERST].on);
Expand Down Expand Up @@ -4504,7 +4504,7 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)
dev->rc_idx, retries);

if (pcie_phy_is_ready(dev))
PCIE_INFO(dev, "PCIe RC%d PHY is ready!\n", dev->rc_idx);
PCIE_DBG(dev, "PCIe RC%d PHY is ready!\n", dev->rc_idx);
else {
PCIE_ERR(dev, "PCIe PHY RC%d failed to come up!\n",
dev->rc_idx);
Expand All @@ -4524,7 +4524,7 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)

/* de-assert PCIe reset link to bring EP out of reset */

PCIE_INFO(dev, "PCIe: Release the reset of endpoint of RC%d.\n",
PCIE_DBG(dev, "PCIe: Release the reset of endpoint of RC%d.\n",
dev->rc_idx);
gpio_set_value(dev->gpio[MSM_PCIE_GPIO_PERST].num,
1 - dev->gpio[MSM_PCIE_GPIO_PERST].on);
Expand All @@ -4551,9 +4551,9 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)
msm_pcie_confirm_linkup(dev, false, false, NULL)) {
PCIE_DBG(dev, "Link is up after %d checkings\n",
link_check_count);
PCIE_INFO(dev, "PCIe RC%d link initialized\n", dev->rc_idx);
PCIE_DBG(dev, "PCIe RC%d link initialized\n", dev->rc_idx);
} else {
PCIE_INFO(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
PCIE_DBG(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
dev->rc_idx);
gpio_set_value(dev->gpio[MSM_PCIE_GPIO_PERST].num,
dev->gpio[MSM_PCIE_GPIO_PERST].on);
Expand Down Expand Up @@ -4632,7 +4632,7 @@ void msm_pcie_disable(struct msm_pcie_dev_t *dev, u32 options)
dev->power_on = false;
dev->link_turned_off_counter++;

PCIE_INFO(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
PCIE_DBG(dev, "PCIe: Assert the reset of endpoint of RC%d.\n",
dev->rc_idx);

gpio_set_value(dev->gpio[MSM_PCIE_GPIO_PERST].num,
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/qcom/msm-pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#define MAX_BUF_SIZE 1024

static int msm_pm_debug_mask = 1;
static int msm_pm_debug_mask = 0;
module_param_named(
debug_mask, msm_pm_debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP
);
Expand Down
6 changes: 3 additions & 3 deletions kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ int disable_nonboot_cpus(void)
*/
cpumask_clear(frozen_cpus);

pr_info("Disabling non-boot CPUs ...\n");
pr_debug("Disabling non-boot CPUs ...\n");
for_each_online_cpu(cpu) {
if (cpu == first_cpu)
continue;
Expand Down Expand Up @@ -650,7 +650,7 @@ void __ref enable_nonboot_cpus(void)
if (cpumask_empty(frozen_cpus))
goto out;

pr_info("Enabling non-boot CPUs ...\n");
pr_debug("Enabling non-boot CPUs ...\n");

arch_enable_nonboot_cpus_begin();

Expand All @@ -659,7 +659,7 @@ void __ref enable_nonboot_cpus(void)
error = _cpu_up(cpu, 1);
trace_suspend_resume(TPS("CPU_ON"), cpu, false);
if (!error) {
pr_info("CPU%d is up\n", cpu);
pr_debug("CPU%d is up\n", cpu);
cpu_device = get_cpu_device(cpu);
if (!cpu_device)
pr_err("%s: failed to get cpu%d device\n",
Expand Down

0 comments on commit 43c87ef

Please sign in to comment.