[PATCH] USB: Add reset-resume quirk for WD19's Realtek Hub

2021-04-20 Thread chris . chiu
From: Chris Chiu Realtek Hub (0bda:5487) in Dell Dock WD19 sometimes fails to work after the system resumes from suspend with remote wakeup enabled device connected: [ 1947.640907] hub 5-2.3:1.0: hub_ext_port_status failed (err = -71) [ 1947.641208] usb 5-2.3-port5: cannot disable (err = -71

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-20 Thread Chris Chiu
On Tue, Apr 20, 2021 at 11:28 PM Alan Stern wrote: > > On Tue, Apr 20, 2021 at 03:14:56PM +0800, Chris Chiu wrote: > > On Mon, Apr 19, 2021 at 10:19 PM Alan Stern > > wrote: > > > > > > On Mon, Apr 19, 2021 at 01:11:38AM -0400, Chris Chiu wrote: > > &g

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-20 Thread Chris Chiu
On Mon, Apr 19, 2021 at 10:19 PM Alan Stern wrote: > > On Mon, Apr 19, 2021 at 01:11:38AM -0400, Chris Chiu wrote: > > Sorry that I didn't make myself clear. I found that if I applied > > RESET_RESUME > > quirk on the problematic hub, the Set-Port-Feature(suspend) timeo

Broadcom 9460 raid card takes too long at system resuming

2021-04-19 Thread Chris Chiu
Hi, We found that the Broadcom 9460 RAID card will take ~40 seconds in megasas_resume. It is mainly waiting for the FW to come to ready state, please refer to the following kernel log. The FW version is "megasas: 07.714.04.00-rc1". It seems that the megasas_transition_to_ready() loop costs

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-18 Thread Chris Chiu
On Fri, Apr 16, 2021 at 11:39 AM Alan Stern wrote: > > On Fri, Apr 16, 2021 at 09:24:30AM +0800, Chris Chiu wrote: > > On Fri, Apr 16, 2021 at 2:46 AM Alan Stern > > wrote: > > > > > > On Fri, Apr 16, 2021 at 12:13:43AM +0800, Chris Chiu wrote: > > &g

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-15 Thread Chris Chiu
On Fri, Apr 16, 2021 at 2:46 AM Alan Stern wrote: > > On Fri, Apr 16, 2021 at 12:13:43AM +0800, Chris Chiu wrote: > > One thing worth mentioning here, I never hit the hub_ext_port_status -71 > > problem if I resume by waking up from the keyboard connected to the hub. >

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-15 Thread Chris Chiu
On Thu, Apr 15, 2021 at 8:32 PM Greg KH wrote: > > On Thu, Apr 15, 2021 at 07:48:56PM +0800, chris.c...@canonical.com wrote: > > From: Chris Chiu > > > > Realtek Hub (0bda:5487) in Dell Dock WD19 sometimes fails to work > > after the system resumes from susp

[PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-15 Thread chris . chiu
From: Chris Chiu Realtek Hub (0bda:5487) in Dell Dock WD19 sometimes fails to work after the system resumes from suspend with remote wakeup enabled device connected: [ 1947.640907] hub 5-2.3:1.0: hub_ext_port_status failed (err = -71) [ 1947.641208] usb 5-2.3-port5: cannot disable (err = -71

Re: [PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-14 Thread Chris Chiu
On Wed, Apr 14, 2021 at 10:32 PM Alan Stern wrote: > > On Wed, Apr 14, 2021 at 01:07:43PM +0800, Chris Chiu wrote: > > Thanks for the instructions. I can hit the same timeout problem with > > runtime PM. The > > fail rate seems the same as normal PM. (around 1/4 ~ 1/7

Re: [PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-13 Thread Chris Chiu
On Tue, Apr 13, 2021 at 10:44 PM Alan Stern wrote: > > On Tue, Apr 13, 2021 at 03:52:14PM +0800, Chris Chiu wrote: > > On Mon, Apr 12, 2021 at 11:12 PM Alan Stern > > wrote: > > > > > > On Mon, Apr 12, 2021 at 11:00:06PM +0800, chris.c...@canonical.com wrot

[PATCH v2] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-13 Thread chris . chiu
From: Chris Chiu Realtek Hub (0bda:5487) in Dell Dock WD19 sometimes fails to work after the system resumes from suspend with remote wakeup enabled device connected: [ 1947.640907] hub 5-2.3:1.0: hub_ext_port_status failed (err = -71) [ 1947.641208] usb 5-2.3-port5: cannot disable (err = -71

Re: [PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-13 Thread Chris Chiu
On Mon, Apr 12, 2021 at 11:12 PM Alan Stern wrote: > > On Mon, Apr 12, 2021 at 11:00:06PM +0800, chris.c...@canonical.com wrote: > > From: Chris Chiu > > > > Realtek Hub (0bda:5413) in Dell Dock WD19 sometimes fails to work > > after the system resumes from susp

[PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-12 Thread chris . chiu
From: Chris Chiu Realtek Hub (0bda:5413) in Dell Dock WD19 sometimes fails to work after the system resumes from suspend with remote wakeup enabled device connected: [ 1947.640907] hub 5-2.3:1.0: hub_ext_port_status failed (err = -71) [ 1947.641208] usb 5-2.3-port5: cannot disable (err = -71

[PATCH] mailmap: update the email address for Chris Chiu

2021-03-25 Thread chris . chiu
From: Chris Chiu Redirect my older email addresses in the git logs. Signed-off-by: Chris Chiu --- .mailmap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.mailmap b/.mailmap index 85b93cdefc87..1f8579db5a3f 100644 --- a/.mailmap +++ b/.mailmap @@ -65,6 +65,8 @@ Changbin Du Changbin

[PATCH] block: clear GD_NEED_PART_SCAN later in bdev_disk_changed

2021-03-23 Thread chris . chiu
From: Chris Chiu The GD_NEED_PART_SCAN is set by bdev_check_media_change to initiate a partition scan while removing a block device. It should be cleared after blk_drop_paritions because blk_drop_paritions could return -EBUSY and then the consequence __blkdev_get has no chance to do

[PATCH] ACPI: video: Add missing callback back for Sony VPCEH3U1E

2021-03-11 Thread chris . chiu
From: Chris Chiu The .callback of the quirk for Sony VPCEH3U1E was unintetionally removed by the commit 25417185e9b5 ("ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807"). Add it back to make sure the quirk for Sony VPCEH3U1E works as expected. Signed-off-by: Chris Chiu Reported

Re: No sound cards detected on Kabylake laptops after upgrade to kernel 5.8

2021-03-10 Thread Chris Chiu
On Tue, Mar 9, 2021 at 11:29 PM Cezary Rojewski wrote: > > On 2021-03-09 1:19 PM, Chris Chiu wrote: > > Hi Guys, > > We have received reports that on some Kabylake laptops (Acer Swift > > SF314-54/55 and Lenovo Yoga C930...etc), all sound cards no longer be &g

No sound cards detected on Kabylake laptops after upgrade to kernel 5.8

2021-03-09 Thread Chris Chiu
Hi Guys, We have received reports that on some Kabylake laptops (Acer Swift SF314-54/55 and Lenovo Yoga C930...etc), all sound cards no longer be detected after upgrade to kernel later than 5.8. These laptops have one thing in common, all of them have Realtek audio codec and connect the

Re: [PATCH v2] ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256

2021-02-25 Thread Chris Chiu
On Fri, Feb 26, 2021 at 10:06 AM Jian-Hong Pan wrote: > > 於 2021年2月26日 週五 上午9:04寫道: > > > > From: Chris Chiu > > > > The Acer SWIFT Swift SF314-54/55 laptops with ALC256 cannot detect > > both the headset mic and the internal mic. Introduce new fixup > >

[PATCH v2] ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256

2021-02-25 Thread chris . chiu
From: Chris Chiu The Acer SWIFT Swift SF314-54/55 laptops with ALC256 cannot detect both the headset mic and the internal mic. Introduce new fixup to enable the jack sense and the headset mic. However, the internal mic actually connects to Intel SST audio. It still needs Intel SST support

[PATCH v2] ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256

2021-02-25 Thread chris . chiu
From: Chris Chiu The Acer SWIFT Swift SF314-54/55 laptops with ALC256 cannot detect both the headset mic and the internal mic. Introduce new fixup to enable the jack sense and the headset mic. However, the internal mic actually connects to Intel SST audio. It still needs Intel SST support

Re: [PATCH] ALSA: hda/realtek: Enable MICs of Acer SWIFT with ALC256

2021-02-25 Thread Chris Chiu
On Thu, Feb 25, 2021 at 5:32 PM Takashi Iwai wrote: > > On Thu, 25 Feb 2021 10:21:07 +0100, > Chris Chiu wrote: > > > > The Acer SWIFT Swift SF314-54/55 with ALC256 cannot detect the headset > > microphone and suffers the noise problem in audio capture. > > > &

[PATCH] ALSA: hda/realtek: Enable MICs of Acer SWIFT with ALC256

2021-02-25 Thread Chris Chiu
The Acer SWIFT Swift SF314-54/55 with ALC256 cannot detect the headset microphone and suffers the noise problem in audio capture. This patch enables the headset jack sense and fixes the noise problem with aamix fixup. Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 20

[PATCH] ALSA: hda/realtek - Limit int mic boost on Acer Aspire E5-575T

2021-01-14 Thread Chris Chiu
for Acer Aspire E5-575T. Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3c1d2a3fb1a4..60eb8383a704 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci

[PATCH v3 1/4] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2021-01-10 Thread Chris Chiu
On at least one laptop (ECS EF20EA) the 'hp-detect' GPIO is defined in the DSDT table by the ACPI GpioIo resources in _CRS. The GPIO related information should be mapped to the rt5645 driver to enable the jack detection also on non-DT platforms. Signed-off-by: Chris Chiu --- v2 ->

[PATCH v3 3/4] ASoC: rt5645: add inv_hp_det flag

2021-01-10 Thread Chris Chiu
ge () {"hp-detect-gpio", Package() {^RTK2, 0, 0, 1 }}, } }) This flag will invert the hp-detect gpio polarity. Signed-off-by: Chris Chiu --- v2 -> v3: - none v1 -> v2: - none include/sound/rt5645.h| 2 ++ sound/soc/codecs/rt5645.c | 4 2 files chan

[PATCH v3 2/4] ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series

2021-01-10 Thread Chris Chiu
"\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x004F } }) Return (SBUF) /* \_SB_.PCI0.I2C2.RTK2._CRS.SBUF */ } Signed-off-by: Chris Chiu --- v2 -> v3: - restore the terminator {} of the dmi_platform_data[] v1

[PATCH v3 4/4] ASoC: rt5645: Enable internal microphone and JD on ECS EF20

2021-01-10 Thread Chris Chiu
On ECS EF20 series laptops, the internal mic is on DMIC2/IN2P. And they need the inv_hp_det to make jack detection to work as exoected. Signed-off-by: Chris Chiu --- v2 -> v3: - restore the terminator {} of the dmi_platform_data[] v1 -> v2: - none sound/soc/codecs/rt

[PATCH v3 0/4] ASoC: rt5645: Enable internal mic and headset on ECS EF20

2021-01-10 Thread Chris Chiu
tor of the dmi_platform_data[]. v1 -> v2: Invoke callback() of the DMI quirk if it exists, because the dmi_first_match() doesn't. --- Chris Chiu (4): ASoC: rt5645: Introduce mapping for ACPI-defined GPIO ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series ASoC: rt5645: add inv_hp_de

Re: [PATCH 1/4] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2021-01-07 Thread Chris Chiu
On Thu, Jan 7, 2021 at 10:28 PM Mark Brown wrote: > > On Thu, Jan 07, 2021 at 05:06:22PM +0800, Chris Chiu wrote: > > > +static const struct acpi_gpio_mapping *cht_rt5645_gpios; > > + > > You're adding a read only static variable with no way to set it. This >

[PATCH v2 4/4] ASoC: rt5645: Enable internal microphone and JD on ECS EF20

2021-01-07 Thread Chris Chiu
On ECS EF20 series laptops, the internal mic is on DMIC2/IN2P. And they need the inv_hp_det to make jack detection to work as exoected. Signed-off-by: Chris Chiu --- v1 -> v2: - none sound/soc/codecs/rt5645.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/

[PATCH v2 3/4] ASoC: rt5645: add inv_hp_det flag

2021-01-07 Thread Chris Chiu
ge () {"hp-detect-gpio", Package() {^RTK2, 0, 0, 1 }}, } }) This flag will invert the hp-detect gpio polarity. Signed-off-by: Chris Chiu --- v1 -> v2: - none include/sound/rt5645.h| 2 ++ sound/soc/codecs/rt5645.c | 4 2 files changed, 6 insertions(+) dif

[PATCH v2 2/4] ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series

2021-01-07 Thread Chris Chiu
"\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x004F } }) Return (SBUF) /* \_SB_.PCI0.I2C2.RTK2._CRS.SBUF */ } Signed-off-by: Chris Chiu --- v1 -> v2: - Invoke callback() of the DMI quirk if it exists.

[PATCH v2 0/4] ASoC: rt5645: Enable internal mic and headset on ECS EF20

2021-01-07 Thread Chris Chiu
use the dmi_first_match() doesn't. --- Chris Chiu (4): ASoC: rt5645: Introduce mapping for ACPI-defined GPIO ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series ASoC: rt5645: add inv_hp_det flag ASoC: rt5645: Enable internal microphone and JD on ECS EF20 include/sound/rt5645.h|

[PATCH v2 1/4] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2021-01-07 Thread Chris Chiu
On at least one laptop (ECS EF20EA) the 'hp-detect' GPIO is defined in the DSDT table by the ACPI GpioIo resources in _CRS. The GPIO related information should be mapped to the rt5645 driver to enable the jack detection also on non-DT platforms. Signed-off-by: Chris Chiu --- v1 ->

[PATCH 0/4] ASoC: rt5645: Enable internal mic and headset on ECS EF20

2021-01-07 Thread Chris Chiu
These patches are trying to fix the jack detection and internal microphone problems on ECS EF20 series laptops which are empowered by Intel Atom x5-Z8350 CPU (CherryTrail) with Realtek rt5645 audio codec. Chris Chiu (4): ASoC: rt5645: Introduce mapping for ACPI-defined GPIO ASoC: rt5645: Add

[PATCH 1/4] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2021-01-07 Thread Chris Chiu
On at least one laptop (ECS EF20EA) the 'hp-detect' GPIO is defined in the DSDT table by the ACPI GpioIo resources in _CRS. The GPIO related information should be mapped to the rt5645 driver to enable the jack detection also on non-DT platforms. Signed-off-by: Chris Chiu --- sound/soc/codecs

[PATCH 2/4] ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series

2021-01-07 Thread Chris Chiu
"\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x004F } }) Return (SBUF) /* \_SB_.PCI0.I2C2.RTK2._CRS.SBUF */ } Signed-off-by: Chris Chiu --- sound/soc/codecs/rt5645.c | 27 +++ 1 file changed, 27 inserti

[PATCH 3/4] ASoC: rt5645: add inv_hp_det flag

2021-01-07 Thread Chris Chiu
ge () {"hp-detect-gpio", Package() {^RTK2, 0, 0, 1 }}, } }) This flag will invert the hp-detect gpio polarity. Signed-off-by: Chris Chiu --- include/sound/rt5645.h| 2 ++ sound/soc/codecs/rt5645.c | 4 2 files changed, 6 insertions(+) diff --git a/include/sound/rt5645.h b/

[PATCH 4/4] ASoC: rt5645: Enable internal microphone and JD on ECS EF20

2021-01-07 Thread Chris Chiu
On ECS EF20 series laptops, the internal mic is on DMIC2/IN2P. And they need the inv_hp_det to make jack detection to work as exoected. Signed-off-by: Chris Chiu --- sound/soc/codecs/rt5645.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc

Re: [PATCH v2] HID: Add Wireless Radio Control feature for Chicony devices

2021-01-04 Thread Chris Chiu
ting Chicony for this hotkey, learned the device will send > with 0x11 as the report ID and 0x1 as the value when the key is pressed > down. > > This patch maps the event as KEY_RFKILL. > > Signed-off-by: Jian-Hong Pan Reviewed-by: Chris Chiu > --- > v2: Remove the duplicated ke

Re: [PATCH] HID: Add Wireless Radio Control feature for Chicony devices

2020-12-22 Thread Chris Chiu
On Tue, Dec 22, 2020 at 3:41 PM Jian-Hong Pan wrote: > > Some Chicony's keyboards support airplane mode hotkey (Fn+F2) with > "Wireless Radio Control" feature. For example, the wireless keyboard > [04f2:1236] shipped with ASUS all-in-one desktop. > > After consulting Chicony for this hotkey,

Re: [PATCH] ASoC: Intel: bytcr_rt5640: Add quirks for DeeQ X5-Z8300

2020-12-22 Thread Chris Chiu
On Wed, Dec 16, 2020 at 12:18 PM Chris Chiu wrote: > > DeeQ X5-Z8300 is a laptop empowered by Intel Atom Cherry Trail. Add > quirks to select the correct input map, jack-detect options to enable > jack sensing and internal/headset microphones. > > Signed-off-by: Chris Chiu

[PATCH 1/2] ALSA: hda/realtek: Apply jack fixup for Quanta NL3

2020-12-22 Thread Chris Chiu
output. The ALC269_FIXUP_LIFEBOOK chained with ALC269_FIXUP_QUANTA_MUTE can help to differentiate 2 jacks and get the 'Auto-Mute Mode' working correctly. Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b

[PATCH 2/2] ALSA/hda: apply jack fixup for the Acer Veriton N4640G/N6640G/N2510G

2020-12-22 Thread Chris Chiu
all audio jacks to work as expected. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bb1010d78717..9eb43d827bda 100644 --- a/sound/pci

[PATCH] ALSA: hda/realtek: Remove dummy lineout on Acer TravelMate P648/P658

2020-12-16 Thread Chris Chiu
quirk to remove the useless lineout and enable the pin 0x18 for jack sensing and headset microphone. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/sound/pci/hda

[PATCH] ASoC: Intel: bytcr_rt5640: Add quirks for DeeQ X5-Z8300

2020-12-15 Thread Chris Chiu
DeeQ X5-Z8300 is a laptop empowered by Intel Atom Cherry Trail. Add quirks to select the correct input map, jack-detect options to enable jack sensing and internal/headset microphones. Signed-off-by: Chris Chiu --- sound/soc/intel/boards/bytcr_rt5651.c | 8 1 file changed, 8 insertions

[PATCH v2] x86/reboot/quirks: Add GIGABYTE BRIX BXBT-2807 reboot quirk

2020-12-09 Thread Chris Chiu
From: Dan Nicholson The GIGABYTE BRIX BXBT-2807 always hangs with the normal acpi reboot. It works without problem after adding the parameter reboot=bios. Signed-off-by: Dan Nicholson Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- v2: - fix typo in the commit message. arch

[PATCH] x86/reboot/quirks: Add GIGABYTE BRIX BXBT-2807 reboot quirk

2020-12-09 Thread Chris Chiu
From: Dan Nicholson The GIGABYTE BRIX BXBT-2807 always hangs with the normal acpi reboot. It works withour problem after adding the parameter reboot=bios. Signed-off-by: Dan Nicholson Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- arch/x86/kernel/reboot.c | 10 ++ 1 file

Re: [PATCH] power: supply: axp288_fuel_gauge: Add the ECS EF20EA to the blacklist

2020-12-09 Thread Chris Chiu
On Wed, Dec 9, 2020 at 10:57 PM Hans de Goede wrote: > > Hi, > > On 12/9/20 5:50 AM, Chris Chiu wrote: > > The ECS EF20EA laptop ships an AXP288 but it is actually using a > > different, separate FG chip for AC and battery monitoring. On this > > laptop we need

[PATCH] ALSA: hda/realtek - Enable headset mic of ASUS Q524UQK with ALC255

2020-12-08 Thread Chris Chiu
The ASUS laptop Q524UQK with ALC255 codec can't detect the headset microphone until ALC255_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda

[PATCH] power: supply: axp288_fuel_gauge: Add the ECS EF20EA to the blacklist

2020-12-08 Thread Chris Chiu
The ECS EF20EA laptop ships an AXP288 but it is actually using a different, separate FG chip for AC and battery monitoring. On this laptop we need to keep using the regular ACPI driver and disable the AXP288 FG to avoid reporting two batteries to userspace. Signed-off-by: Chris Chiu --- drivers

[PATCH] x86/platform: classmate-laptop: add WiFi media button

2020-12-07 Thread Chris Chiu
From: Carlo Caione The WiFi media button on the Quanta NL3 reports keycodes 0x8b and 0x9b to the platform driver. Add the mapping to support these codes. Signed-off-by: Carlo Caione Reviewed-by: Chris Chiu --- drivers/platform/x86/classmate-laptop.c | 2 ++ 1 file changed, 2 insertions

[PATCH] ASoC: Intel: bytcr_rt5640: Add quirk for ARCHOS Cesium 140

2020-12-07 Thread Chris Chiu
for jack-detect. Signed-off-by: Chris Chiu --- sound/soc/intel/boards/bytcr_rt5640.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index f790514a147d..cd6f7caa43c8 100644 --- a/sound/soc/intel

Re: [PATCH] ALSA: hda/realtek - Add support for Memeza EDL03 headset mic

2020-12-07 Thread Chris Chiu
On Mon, Dec 7, 2020 at 4:38 PM Takashi Iwai wrote: > > On Mon, 07 Dec 2020 08:33:46 +0100, > Chris Chiu wrote: > > > > The Memeza laptop EDL03 with codec ALC256 can't detect the headset > > microphone. The headphone jack sensing works after

[PATCH] ALSA: hda/realtek - Add support for Memeza EDL03 headset mic

2020-12-06 Thread Chris Chiu
The Memeza laptop EDL03 with codec ALC256 can't detect the headset microphone. The headphone jack sensing works after we add a pin definition for it by ALC256_FIXUP_ASUS_MIC_NO_PRESENCE. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 1 + 1 file

[PATCH] ALSA: hda/realtek - Enable headset mic of ASUS X430UN with ALC256

2020-12-06 Thread Chris Chiu
The ASUS laptop X430UN with ALC256 can't detect the headset microphone until ALC256_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda

[PATCH] Input: i8042 - add Acer laptops to the i8042 reset list

2020-12-06 Thread Chris Chiu
The touchpad operates in Basic Mode by default in the Acer BIOS setup, but some Aspire/TravelMate models require the i8042 to be reset in order to be correctly detected. Signed-off-by: Chris Chiu --- drivers/input/serio/i8042-x86ia64io.h | 42 +++ 1 file changed, 42

[PATCH] acer-wireless: send an EV_SYN/SYN_REPORT between state changes

2020-12-06 Thread Chris Chiu
of libinput changed to only process the device state and SYN_REPORT time, so now the key event is lost. Same fix as 'commit ("platform/x86: asus-wireless: send an EV_SYN/SYN_REPORT between state changes")' Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu --- drivers/platfor

[PATCH] ACPI: Add DMI quirk for GIGABYTE GB-BXBT-2807

2020-12-01 Thread Chris Chiu
which sees the existence of a backlight device node and has the unrealistic belief that there is actually a backlight there! Add a DMI quirk to force the backlight off on this system. Signed-off-by: Jasper St. Pierre Reviewed-by: Chris Chiu --- drivers/acpi/video_detect.c | 7 +++ 1 file

[PATCH v2] Bluetooth: btusb: Add support for 13d3:3560 MediaTek MT7615E device

2020-11-09 Thread Chris Chiu
-by: Chris Chiu --- v2: - Add comment for the MT7615E BT device. drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 5af2e3f30a5e..7e05be1a7bff 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth

[PATCH] Bluetooth: btusb: Add support for 13d3:3560 MediaTek MT7615E device

2020-11-02 Thread Chris Chiu
=01 Prot=01 Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms I: If#= 1 Alt= 6 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 63 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 63 Ivl=1ms Signed-off-by: Chris Chiu

[PATCH] rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff

2020-10-05 Thread Chris Chiu
From: Chris Chiu The legacy_httxpowerdiff in rtl8192se is pretty much the same as the legacy_ht_txpowerdiff for other chips. Use the same name to keep the consistency. Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 2 +- drivers/net/wireless/realtek

[PATCH 1/3] rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff

2020-10-05 Thread Chris Chiu
From: Chris Chiu The legacy_httxpowerdiff in rtl8192se is pretty much the same as the legacy_ht_txpowerdiff for other chips. Use the same name to keep the consistency. Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 2 +- drivers/net/wireless/realtek

Re: mt7615: Fail to load firmware on AZWAVE-CB434NF module

2020-09-13 Thread Chris Chiu
On Tue, Sep 8, 2020 at 8:33 PM Chris Chiu wrote: > > Hi Sean, Ryder, > We have an ASUS laptop X532EQ with the wifi module AZWAVE-CB434NF > which fails to bring up the wifi interface on kernel 5.9.0-rc1. The > dmesg shows the firmware load error. > > [ 25.630850]

mt7615: Fail to load firmware on AZWAVE-CB434NF module

2020-09-08 Thread Chris Chiu
Hi Sean, Ryder, We have an ASUS laptop X532EQ with the wifi module AZWAVE-CB434NF which fails to bring up the wifi interface on kernel 5.9.0-rc1. The dmesg shows the firmware load error. [ 25.630850] mt7615e :2d:00.0: Message -4294967280 (seq 1) timeout [ 25.630851] mt7615e

[PATCH] rtl8xxxu: prevent potential memory leak

2020-09-05 Thread Chris Chiu
Free the skb if usb_submit_urb fails on rx_urb. And free the urb no matter usb_submit_urb succeeds or not in rtl8xxxu_submit_int_urb. Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH] ALSA: usb: mixer: volume quirk for ESS Technology Asus USB DAC

2020-05-26 Thread Chris Chiu
-23040/0/1 Signed-off-by: Chris Chiu --- sound/usb/mixer.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 81b2db0edd5f..0b568a9fdab3 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1171,6 +1171,14 @@ static void volume_control_

[PATCH] platform/x86: asus_wmi: Reserve more space for struct bias_args

2020-05-22 Thread Chris Chiu
blem. Signed-off-by: Chris Chiu --- drivers/platform/x86/asus-wmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index bb7c529d7d16..cd212ee210e2 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-w

asus-wmi fails to load on new ASUS laptop UX325JA

2020-05-21 Thread Chris Chiu
Hi, I have the ASUS new laptop UX325JA and most of the media keys are not working even with the latest kernel (5.7.0-rc5+). Looking into the dmesg log, the ASUS WMI driver fails to load because of [7.827241] asus-nb-wmi: probe of asus-nb-wmi failed with error -5. Before this message,

Re: [PATCH[RFT]] ACPI: EC: s2idle: Avoid flushing EC work when EC GPE is inactive

2020-05-18 Thread Chris Chiu
On Mon, May 18, 2020 at 4:59 PM Rafael J. Wysocki wrote: > > On Thu, May 14, 2020 at 12:10 PM Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > Flushing the EC work while suspended to idle when the EC GPE status > > is not set causes some EC wakeup events (notably power button

Re: [PATCH[RFT]] ACPI: EC: s2idle: Avoid flushing EC work when EC GPE is inactive

2020-05-18 Thread Chris Chiu
On Mon, May 18, 2020 at 4:59 PM Rafael J. Wysocki wrote: > > On Thu, May 14, 2020 at 12:10 PM Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > Flushing the EC work while suspended to idle when the EC GPE status > > is not set causes some EC wakeup events (notably power button

Re: [PATCH v2] ACPI: EC: s2idle: Avoid premature returns from acpi_s2idle_wake()

2020-05-11 Thread Chris Chiu
Todd Brandt > Fixes: fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up > the system") > Link: > https://lore.kernel.org/linux-acpi/CAB4CAwdqo7=mvyg_pe+pgvfea17ahf5i5jucgakqqmx6mja...@mail.gmail.com/ > Reported-by: Chris Chiu > Cc: 5.4+ # 5.4+ >

Re: System fails to exit s2idle by a keystroke on my laptop

2020-05-11 Thread Chris Chiu
On Sat, May 9, 2020 at 12:50 AM Rafael J. Wysocki wrote: > > On Friday, May 8, 2020 10:22:09 AM CEST Chris Chiu wrote: > > On Fri, May 8, 2020 at 2:05 AM Rafael J. Wysocki wrote: > > > > Hi Rafael, > > Thanks for your patch. I tried it on my laptop and it's

Re: System fails to exit s2idle by a keystroke on my laptop

2020-05-08 Thread Chris Chiu
On Fri, May 8, 2020 at 2:05 AM Rafael J. Wysocki wrote: > > On Thursday, May 7, 2020 5:38:11 AM CEST Chris Chiu wrote: > > On Wed, May 6, 2020 at 6:19 PM Rafael J. Wysocki wrote: > > > > > > On Wed, May 6, 2020 at 11:32 AM Rafael J. Wysocki > > >

Re: System fails to exit s2idle by a keystroke on my laptop

2020-05-06 Thread Chris Chiu
On Wed, May 6, 2020 at 6:19 PM Rafael J. Wysocki wrote: > > On Wed, May 6, 2020 at 11:32 AM Rafael J. Wysocki wrote: > > > > > > Thanks for the report, the issue evidently is EC-related. > > > > > @@ -1024,7 +1024,7 @@ static bool acpi_s2idle_wake(void) > > > * regarded as a

System fails to exit s2idle by a keystroke on my laptop

2020-05-04 Thread Chris Chiu
Hi, I have an Intel X5-Z8350 laptop which used to work fine on s2idle enter/exit with kernel 5.3. After upgrading to kernel 5.4 and later, the system can still exit s2idle by power button. However, if I try to wake it up from a keystroke, the system will freeze and then no longer respond even

[PATCH] rtl8xxxu: fix warnings for symbol not declared.

2019-10-23 Thread Chris Chiu
: symbol 'rtl8723bu_handle_bt_info' was not declared. Should it be static? Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless

Re: [PATCH] rtl8xxxu: remove set but not used variable 'rate_mask'

2019-10-23 Thread Chris Chiu
erformance of RTL8723BU on rtl8xxxu driver") > > Signed-off-by: YueHaibing > --- Singed-off-by: Chris Chiu > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 - > 1 file changed, 5 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_

Re: [PATCH v2] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-20 Thread Chris Chiu
On Thu, Oct 17, 2019 at 10:26 AM Chris Chiu wrote: > > On Wed, Oct 16, 2019 at 9:54 AM Chris Chiu wrote: > > > > The RTL8723BU has problems connecting to AP after each warm reboot. > > Sometimes it returns no scan result, and in most cases, it fails > > the aut

Re: [PATCH v2] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-16 Thread Chris Chiu
On Wed, Oct 16, 2019 at 9:54 AM Chris Chiu wrote: > > The RTL8723BU has problems connecting to AP after each warm reboot. > Sometimes it returns no scan result, and in most cases, it fails > the authentication for unknown reason. However, it works totally > fine after cold rebo

[PATCH v2] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-15 Thread Chris Chiu
only tells the RTL8723BU to do full initialization without checking MAC status. Signed-off-by: Chris Chiu --- Note: v2: fix typo of commit message drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + drivers/net/wireless

Re: [PATCH] rtl8xxxu: fix connection failure issue after warm reboot

2019-10-15 Thread Chris Chiu
On Tue, Oct 15, 2019 at 6:16 PM Chris Chiu wrote: > > --- > 2.23.0 > Please ignore this message since it's not properly titled and no detail description. Sorry for inconvenience. Chris

[PATCH] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-15 Thread Chris Chiu
only tells the RTL8723BU to do full initialization without checking MAC status. https://phabricator.endlessm.com/T28000 Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + drivers/net/wireless

[PATCH] rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot

2019-10-15 Thread Chris Chiu
only tells the RTL8723BU to do full initilization without checking MAC status. Signed-off-by: Chris Chiu --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 +++ 3

[PATCH] rtl8xxxu: fix connection failure issue after warm reboot

2019-10-15 Thread Chris Chiu
--- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

Re: [PATCH v8] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-10-08 Thread Chris Chiu
On Wed, Oct 2, 2019 at 8:18 PM Chris Chiu wrote: > v7: >- Fix reported bug of watchdog stop >- refer to the RxPWDBAll in vendor driver for SNR calculation > v8: >- Add missing break in switch case > > + case WIRELESS_MODE_N_24G: &

Re: [PATCH] rtl8xxxu: make arrays static, makes object smaller

2019-10-07 Thread Chris Chiu
148619024 0 238855d4d realtek/rtl8xxxu/rtl8xxxu_8192e.o > 149536616 0 215695441 realtek/rtl8xxxu/rtl8xxxu_8723b.o > 102986 31458 576 135020 20f6c realtek/rtl8xxxu/rtl8xxxu_core.o > > (gcc version 9.2.1, amd64) > > Signed-off-by: Colin Ian King > --- Reviewed-by: Chris Chiu

[PATCH v3] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-05 Thread Chris Chiu
invokes the handle_c2h is only for 8723b and 8192e so the mechanism is expected to work on both chips with single antenna. Note RTL8192EU dual antenna is not supported. Signed-off-by: Chris Chiu --- Notes: v2: - Add helper functions to replace bunch of tdma settings - Reformat some lines

Re: [PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-02 Thread Chris Chiu
On Wed, Oct 2, 2019 at 11:04 PM Jes Sorensen wrote: > > > In general I think it looks good! One nit below: > > Sorry I have been traveling for the last three weeks, so just catching up. > > > > +void rtl8723bu_set_coex_with_type(struct rtl8xxxu_priv *priv, u8 type) > > +{ > > + switch (type)

Re: [PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-02 Thread Chris Chiu
On Wed, Oct 2, 2019 at 12:29 PM Kalle Valo wrote: > Failed to apply, please rebase on top of wireless-drivers-next. > > fatal: sha1 information is lacking or useless > (drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h). > error: could not build fake ancestor > Applying: rtl8xxxu: add bluetooth

Re: [PATCH v7] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-10-02 Thread Chris Chiu
On Wed, Oct 2, 2019 at 12:30 PM Kalle Valo wrote: > New warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function > 'rtl8xxxu_refresh_rate_mask': > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5907:7: warning: this > statement may fall through

[PATCH v8] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-10-02 Thread Chris Chiu
be further improved. Signed-off-by: Chris Chiu Reviewed-by: Daniel Drake Acked-by: Jes Sorensen --- Notes: v2: - Fix errors and warnings complained by checkpatch.pl - Replace data structure rate_adaptive by 2 member variables - Make rtl8xxxu_wireless_mode non-static - Runs

Re: [PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-10-01 Thread Chris Chiu
On Thu, Sep 19, 2019 at 9:44 AM Chris Chiu wrote: > > On Wed, Sep 11, 2019 at 10:50 AM Chris Chiu wrote: > > > > > > Notes: > > v2: > >- Add helper functions to replace bunch of tdma settings > >- Reformat some lines to meet kernel coding s

Re: [PATCH] rtl8xxxu: prevent leaking urb

2019-09-20 Thread Chris Chiu
On Fri, Sep 20, 2019 at 11:01 AM Navid Emamdoost wrote: > > In rtl8xxxu_submit_int_urb if usb_submit_urb fails the allocated urb > should be released. > > Signed-off-by: Navid Emamdoost Reviewed-by: Chris Chiu > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c &

Re: [PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-09-18 Thread Chris Chiu
On Wed, Sep 11, 2019 at 10:50 AM Chris Chiu wrote: > > > Notes: > v2: >- Add helper functions to replace bunch of tdma settings >- Reformat some lines to meet kernel coding style > > Gentle ping. Any suggestions would be appreciated. Thanks. Chris

[PATCH v7] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-09-17 Thread Chris Chiu
be further improved. Signed-off-by: Chris Chiu Reviewed-by: Daniel Drake --- Notes: v2: - Fix errors and warnings complained by checkpatch.pl - Replace data structure rate_adaptive by 2 member variables - Make rtl8xxxu_wireless_mode non-static - Runs refresh_rate_mask() only

Re: [RFC PATCH v7] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-09-16 Thread Chris Chiu
On Mon, Aug 12, 2019 at 11:21 PM Jes Sorensen wrote: > > On 8/12/19 10:32 AM, Kalle Valo wrote: > >> Signed-off-by: Jes Sorensen > > > > This is marked as RFC so I'm not sure what's the plan. Should I apply > > this? > > I think it's at a point where it's worth applying - I kinda wish I had >

[PATCH v2] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-09-10 Thread Chris Chiu
invokes the handle_c2h is only for 8723b and 8192e so the mechanism is expected to work on both chips with single antenna. Note RTL8192EU dual antenna is not supported. Signed-off-by: Chris Chiu --- Notes: v2: - Add helper functions to replace bunch of tdma settings - Reformat some lines

Re: [PATCH] [v2] pinctrl: intel: mark intel_pin_to_gpio __maybe_unused

2019-09-08 Thread Chris Chiu
[-Werror,-Wunused-function] > > Mark it __maybe_unused to suppress the warning. > > Suggested-by: Andy Shevchenko > Signed-off-by: Arnd Bergmann Reviewed-by: Chris Chiu

  1   2   3   4   >