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]
Date:   Wed, 28 Apr 2021 01:51:04 +0000
From:   yuechao.zhao(赵越超) 
        <yuechao.zhao@...antech.com.cn>
To:     Pavel Machek <pavel@....cz>
CC:     "345351830@...com" <345351830@...com>,
        Rainbow.Zhang(張玉) 
        <Rainbow.Zhang@...antech.com.cn>,
        yunxia.li(李云霞) 
        <yunxia.li@...antech.com.cn>,
        Jia.Sui(贾睢) <Jia.Sui@...antech.com.cn>,
        Hans de Goede <hdegoede@...hat.com>,
        Mark Gross <mgross@...ux.intel.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "platform-driver-x86@...r.kernel.org" 
        <platform-driver-x86@...r.kernel.org>
Subject: RE: [v2,1/1] adv_mix955x is a scheme that multiplexes PCA9554/PCA9555
 into LED and GPIO

Hi Pavel
As for " Please Cc LED drivers to the LED maintainers...", does it mean that I only need to Cc LED drivers to LED maintainers?
Or do I need to send this driver to linux-leds@...r.kernel.org instead of platform-driver-x86@...r.kernel.org.

Best regards
Yuechao Zhao

-----Original Message-----
From: Pavel Machek [mailto:pavel@....cz] 
Sent: Tuesday, April 27, 2021 9:54 PM
To: yuechao.zhao(赵越超) <yuechao.zhao@...antech.com.cn>
Cc: 345351830@...com; Rainbow.Zhang(張玉) <Rainbow.Zhang@...antech.com.cn>; yunxia.li(李云霞) <yunxia.li@...antech.com.cn>; Jia.Sui(贾睢) <Jia.Sui@...antech.com.cn>; Hans de Goede <hdegoede@...hat.com>; Mark Gross <mgross@...ux.intel.com>; linux-kernel@...r.kernel.org; platform-driver-x86@...r.kernel.org
Subject: Re: [v2,1/1] adv_mix955x is a scheme that multiplexes PCA9554/PCA9555 into LED and GPIO

On Tue 2021-04-27 08:32:05, yuechao.zhao(赵越超) wrote:
> From: Yuechao Zhao <yuechao.zhao@...antech.com.cn>
> 
> With this driver, we can multiplex PCA9554/PCA9555 into LED and GPIO based on the ACPI data of BIOS.
> 
> Signed-off-by: Yuechao Zhao <yuechao.zhao@...antech.com.cn>
> Signed-off-by: Sui Jia <jia.sui@...antech.com.cn>

Please Cc LED drivers to the LED maintainers...

> +
> +static inline u8 amix955x_set_bit(u8 val, int led_id, enum 
> +AMIX955X_LED
> +state) {
> +	led_id %= BANK_SIZE;
> +
> +	switch (state) {
> +	case AMIX955X_LED_ON:
> +		val &= ~(1 << led_id); //Clear bit
> +		break;
> +	case AMIX955X_LED_OFF:
> +		val |= 1 << led_id; //Set bit
> +		break;
> +	}
> +
> +	return val;

Please check CodingStyle, avoid useless comments and check word wrapping in your email settings.

Best regards,
								Pavel

--
http://www.livejournal.com/~pavelmachek

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ