lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170706064646.GZ22780@codeaurora.org>
Date:   Wed, 5 Jul 2017 23:46:46 -0700
From:   Stephen Boyd <sboyd@...eaurora.org>
To:     Kiran Gunda <kgunda@...eaurora.org>
Cc:     Abhijeet Dharmapurikar <adharmap@...eaurora.org>,
        Nicholas Troast <ntroast@...eaurora.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Christophe JAILLET <christophe.jaillet@...adoo.fr>,
        linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH V1 5/5] spmi: pmic-arb: use irq_chip callback to set spmi
 irq wakeup capability

On 07/03, Kiran Gunda wrote:
> diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c
> index 5285245..2d2e39c 100644
> --- a/drivers/spmi/spmi-pmic-arb.c
> +++ b/drivers/spmi/spmi-pmic-arb.c
> @@ -621,6 +621,19 @@ static int qpnpint_irq_set_type(struct irq_data *d, unsigned int flow_type)
>  	return 0;
>  }
>  
> +static int qpnpint_irq_set_wake(struct irq_data *d, unsigned int on)
> +{
> +	struct spmi_pmic_arb *pmic_arb = irq_data_get_irq_chip_data(d);
> +	int ret;
> +
> +	if (on)
> +		ret = enable_irq_wake(pmic_arb->irq);
> +	else
> +		ret = disable_irq_wake(pmic_arb->irq);

Could be simplified to 

	return irq_set_irq_wake(pmic_arb->irq, on);

?

> +
> +	return ret;
> +}
> +
>  static int qpnpint_get_irqchip_state(struct irq_data *d,
>  				     enum irqchip_irq_state which,
>  				     bool *state)

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ