[PATCH v9 08/11] serial: 8250_lpss: split LPSS driver to separate module

2016-06-20 Thread Andy Shevchenko
future support of UART DMA on Intel Quark. The Intel Quark UART DMA support is based on bits taking from BSP code published by Intel earlier. The driver does not use any specific power management. PCI core takes care of the default behaviour during suspend and resume. Signed-off-by: Andy Shevchenko

[PATCH v1 1/1] MAINTAINERS: belong Documentation/pinctrl.txt properly

2016-06-20 Thread Andy Shevchenko
I'm pretty sure that Documentation/pinctrl.txt would be better maintained by pinctrl subsystem. Signed-off-by: Andy Shevchenko --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9040236..c59d978 100644 --- a/MAINTAINERS +++ b/MAINTA

Re: [PATCH v3] gpio: add Intel WhiskeyCove GPIO driver

2016-06-20 Thread Andy Shevchenko
+ wg->chip.parent = dev; > + wg->chip.dbg_show = wcove_gpio_dbg_show; > + wg->regmap = pmic->regmap; > + > + retval = devm_gpiochip_add_data(&pdev->dev, &wg->chip, wg); > + if (retval) { > + dev_warn(&pdev->dev, "add gpio chip error: %d\n", retval); > + return retval; > + } > + > + gpiochip_irqchip_add(&wg->chip, &wcove_irqchip, 0, > +handle_simple_irq, IRQ_TYPE_NONE); > + > + virq = regmap_irq_get_virq(wg->regmap_irq_chip, irq); > + if (virq < 0) { > + dev_err(&pdev->dev, > + "failed to get virtual interrupt=%d\n", irq); > + retval = virq; > + goto out_remove_gpio; > + } > + > + retval = devm_request_threaded_irq(&pdev->dev, virq, > + NULL, wcove_gpio_irq_handler, > + IRQF_ONESHOT, pdev->name, wg); > + > + if (retval) { > + dev_warn(&pdev->dev, "request irq failed: %d, virq: %d\n", > + retval, virq); Non fatal? Needs an explanation in the comment. > + goto out_remove_gpio; > + } > + > + return 0; > + > +out_remove_gpio: > + gpiochip_remove(&wg->chip); > + return retval; BLUNDER! You are using devm_*() API. > +} > + > +static int wcove_gpio_remove(struct platform_device *pdev) > +{ > + struct wcove_gpio *wg = platform_get_drvdata(pdev); > + > + gpiochip_remove(&wg->chip); Ditto. > + return 0; > +} > + > +static struct platform_driver wcove_gpio_driver = { > + .driver = { > + .name = "bxt_wcove_gpio", No PM? > + }, > + .probe = wcove_gpio_probe, > + .remove = wcove_gpio_remove, > +}; -- With Best Regards, Andy Shevchenko

Re: [PATCH net-next 01/19] net: hns: bug fix of ge reset sequence

2016-06-21 Thread Andy Shevchenko
0 << dsaf_dev->reset_offset; > + else > + reg_val_2 = 0x40 << dsaf_dev->reset_offset; reg_val_1 = 0x15540; reg_val_2 = AE_IS_VER1(dsaf_dev->dsaf_ver) ? 0x100 : 0x40; reg_val_1 <<= dsaf_dev->reset_offset; reg_val_2 <<= dsaf_dev- &

Re: [RESEND PATCH v3 1/2] device property: Add function to search for named child of device

2016-06-21 Thread Andy Shevchenko
> obviously wrong > with the mail format. Also tried to reduce down the number of people > on the > To/Cc list There is still _a lot_ of addresses in the Cc and To fields. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH net-next 10/19] net: hns: bugfix about pfc pause frame statistics

2016-06-21 Thread Andy Shevchenko
DSAF_PRIO_NR] = hw_stats- > >tx_pfc[i]; > + } Two different approaches how to assign data. Above uses 2 for-loops, here you put everything to one. > + p[29] = hw_stats->tx_pkts; > + return &p[30]; > + } >   > + p[13] = hw_stats->tx_pkts; >   return &p[14]; >  } -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v9 00/11] serial: 8250: split LPSS to 8250_lpss, enable DMA on Quark

2016-06-21 Thread Andy Shevchenko
On Tue, Jun 21, 2016 at 6:10 PM, Bryan O'Donoghue wrote: > On Mon, 2016-06-20 at 12:17 +0300, Andy Shevchenko wrote: >> This is combined series of two things: >> - split out the Intel LPSS specific driver from 8250_pci into >> 8250_lpss >> - enable DMA support on

[PATCH v1 1/1] x86/cpu: Rename Merrifield2 to Moorefield

2016-09-06 Thread Andy Shevchenko
Merrifield2 is actually Moorefield. Rename it accodingly and drop tail digit from Merrifield1. Cc: Dave Hansen Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/intel-family.h | 4 ++-- arch/x86/platform/atom/punit_atom_debug.c | 2 +- drivers/pci/pci-mid.c | 2

[PATCH v1 1/1] x86/platform/intel-mid: Implement power off sequence

2016-09-06 Thread Andy Shevchenko
Tell SCU that we are about powering off the device. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/intel-mid.h| 2 ++ arch/x86/include/asm/intel_scu_ipc.h| 2 ++ arch/x86/platform/intel-mid/intel-mid.c | 5 + arch/x86/platform/intel-mid/pwr.c | 27

[PATCH v2 1/1] x86/platform/intel-mid: Implement power off sequence

2016-09-06 Thread Andy Shevchenko
Tell SCU that we are about powering off the device. Signed-off-by: Andy Shevchenko --- - change abbrevation from PMU to PWRMU arch/x86/include/asm/intel-mid.h| 2 ++ arch/x86/include/asm/intel_scu_ipc.h| 2 ++ arch/x86/platform/intel-mid/intel-mid.c | 5 + arch/x86/platform

[PATCH v2 1/1] x86/cpu: Rename Merrifield2 to Moorefield

2016-09-06 Thread Andy Shevchenko
Merrifield2 is actually Moorefield. Rename it accordingly and drop tail digit from Merrifield1. Cc: Dave Hansen Signed-off-by: Andy Shevchenko --- - fix spelling typo in commit message arch/x86/include/asm/intel-family.h | 4 ++-- arch/x86/platform/atom/punit_atom_debug.c | 2

Re: [PATCH v2 1/5] gpio: pca953x: coding style fixes

2016-09-07 Thread Andy Shevchenko
lines by functional changes and the first patch in such cases just makes a noise. More important, easier way to back port if anyone is interested in that. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v2 5/5] gpio: pca953x: refactor pca953x_read_regs()

2016-09-07 Thread Andy Shevchenko
gt;   chip->write_regs = pca953x_write_regs_8; > - else if (chip->gpio_chip.ngpio >= 24) > + chip->read_regs = pca953x_read_regs_8; > + } else if (chip->gpio_chip.ngpio >= 24) { >   chip->write_regs = pca953x_write_regs_24; > + chip->read_regs = pca953x_read_regs_24; > + } else { > + chip->read_regs = pca953x_read_regs_16; > + } For sake of consolidation stuff can we move write_regs_16 variants here? It might require to refactor patch 3 as well >   >   if (PCA_CHIP_TYPE(chip->driver_data) == PCA953X_TYPE) >   ret = device_pca953x_init(chip, invert); -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v2 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Andy Shevchenko
e(struct i2c_client > *client, >   else if (chip->gpio_chip.ngpio >= 24) >   chip->write_regs = pca953x_write_regs_24; >   > - if (chip->chip_type == PCA953X_TYPE) > + if (PCA_CHIP_TYPE(chip->driver_data) == PCA953X_TYPE) >   r

Re: [PATCH v2 0/5] gpio: pca953x: code refactoring

2016-09-07 Thread Andy Shevchenko
pca953x: remove an unused variable >   gpio: pca953x: refactor pca953x_read_regs() > >  drivers/gpio/gpio-pca953x.c | 270 ++----- > - >  1 file changed, 136 insertions(+), 134 deletions(-) > -- Andy Shevchenko Intel Finland Oy

Re: [PATCH 1/1] intel-mid: Fix sfi get_platform_data() return value issues

2016-09-07 Thread Andy Shevchenko
entry->name); >   return; > + } >   >   spi_info.platform_data = pdata; >   if (dev->delay) > @@ -398,8 +403,10 @@ static void __init sfi_handle_i2c_dev(struct > sfi_device_table_entry *pentry, >   i2c_info.addr); >   pdat

Re: [PATCH v2 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 13:40 +0200, Bartosz Golaszewski wrote: > 2016-09-07 13:36 GMT+02:00 Andy Shevchenko tel.com>: > > > > On Wed, 2016-09-07 at 11:24 +0200, Bartosz Golaszewski wrote: > > > > > > The chip_type variable in struct pca953x_chip is no longer

[PATCH v3 1/1] x86/platform/intel-mid: Implement power off sequence

2016-09-07 Thread Andy Shevchenko
Tell SCU that we are about powering off the device. Signed-off-by: Andy Shevchenko --- v3: - fix type of variable (lkp) v2: - change abbrevation from PMU to PWRMU arch/x86/include/asm/intel-mid.h| 2 ++ arch/x86/include/asm/intel_scu_ipc.h| 2 ++ arch/x86/platform/intel-mid/intel

Re: [PATCH v3 3/5] gpio: pca953x: refactor pca953x_read_regs()

2016-09-07 Thread Andy Shevchenko
ngpio >= 24) { >   chip->write_regs = pca953x_write_regs_24; > - else > + chip->read_regs = pca953x_read_regs_24; > + } else { >   chip->write_regs = chip->chip_type == PCA953X_TYPE ? >   pca953x_write_regs_16 : >   pca957x_write_regs_16; > + chip->read_regs = pca953x_read_regs_16; > + } Would you move {} to the previous patch? -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v3 4/5] gpio: pca953x: remove an unused variable

2016-09-07 Thread Andy Shevchenko
gs = pca957x_write_regs_16; >   chip->read_regs = pca953x_read_regs_16; I would also move this to previous patch. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v3 0/5] gpio: pca953x: code refactoring

2016-09-07 Thread Andy Shevchenko
t fixes a couple coding style issues. The second > removes a couple unnecessary switches. Last three refactor the > read/write_regs functions to avoid if-elses by using function pointers > to smaller, specialized routines. Still few style comments, otherwise Reviewed-by: Andy Shevchenko

Re: [PATCH v3 5/5] gpio: pca953x: coding style fixes

2016-09-07 Thread Andy Shevchenko
8); >   reg_val[bank] = (reg_val[bank] & ~bankmask) | > bankval; >   } >   } > + >   ret = i2c_smbus_write_i2c_block_data(chip->client, >    chip->offset->output << > bank_shift, >    NBANK(chip), reg_val); -- Andy Shevchenko Intel Finland Oy

Re: Regulator probe

2016-09-07 Thread Andy Shevchenko
) or > > > supply all the mappings for device supplies before you register a > > > device.  If you don't call regulator_has_full_constraints() > > > missing regulators will always defer so you would need to provide > > > a fixed voltage regulator for it. ...and fixed regulator is also deferred due to GPIO is not ready _yet_. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v3 1/1] x86/platform/intel-mid: Implement power off sequence

2016-09-07 Thread Andy Shevchenko
On Wed, 2016-09-07 at 15:53 +0100, Bryan O'Donoghue wrote: > On Wed, 2016-09-07 at 15:39 +0300, Andy Shevchenko wrote: > > > > +#define IPCMSG_COLD_OFF0x80/* Only for Tangier > > */ > > Andy, I'm wondering are these magic numbers document

Re: [PATCH v4 5/5] gpio: pca953x: coding style fixes

2016-09-07 Thread Andy Shevchenko
igned-off-by: Bartosz Golaszewski > Reviewed-by: Andy Shevchenko > --- >  drivers/gpio/gpio-pca953x.c | 22 -- >  1 file changed, 12 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c > index b08ed52..07

Re: [RFC RESEND] serial: 8250: fix regression in 8250 uart driver

2016-09-07 Thread Andy Shevchenko
On Tue, 2016-08-23 at 08:53 -0500, Dinh Nguyen wrote: > Hi Andy, > > On 08/17/2016 06:14 AM, Andy Shevchenko wrote: > > > > > > I sent a v2 of the series for internal review, same you may found on > > [1]. If Heikki is okay to that I'll send it here. > &

Re: [PATCH 1/1] intel-mid: Fix sfi get_platform_data() return value issues

2016-09-08 Thread Andy Shevchenko
platform_ipc.c. > Yes. But platform_ipc.c implements custom ipc handler for audio ipc  > device. Even though there are duplications between custom handler and  > generic handler in sfi.c, I think its bit early to optimize this. I  > think we should revisit this once we have one more implementation of  > custom ipc handler. Definitely it's out of scope for now. -- Andy Shevchenko Intel Finland Oy

[PATCH v1 1/2] x86/platform/intel-mid: Add Intel Penwell to ID table

2016-09-08 Thread Andy Shevchenko
th drivers. Fixes: ca22312dc840 ("x86/platform/intel-mid: Extend PWRMU to support Penwell") Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/pwr.c | 1 + drivers/pci/pci-mid.c | 5 + 2 files changed, 6 insertions(+) diff --git a/arch/x86/platform/intel-m

[PATCH v1 2/2] x86/platform/intel-mid: Keep SRAM powered on at boot

2016-09-08 Thread Andy Shevchenko
On Penwell SRAM has to be powered on, otherwise it prevents booting. Fixes: ca22312dc840 ("x86/platform/intel-mid: Extend PWRMU to support Penwell") Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/pwr.c | 45 +++ 1 file changed, 36

Re: [PATCH v5 6/6] gpio: pca953x: make the define names consistent

2016-09-08 Thread Andy Shevchenko
ret = pca953x_read_regs(chip, PCA957X_DIRECTION, chip- > >reg_direction); Bu we may use chip->regs->direction here, right? And output before.  >   if (ret) >   goto out; >   -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v5 6/6] gpio: pca953x: make the define names consistent

2016-09-08 Thread Andy Shevchenko
On Thu, 2016-09-08 at 15:27 +0300, Andy Shevchenko wrote: > On Thu, 2016-09-08 at 12:48 +0200, Bartosz Golaszewski wrote: > > > > The register offset defines for the pca953x and pca957x expander > > families should have the same names to better reflect their similar > >

Re: [PATCH v6 1/3] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-09-08 Thread Andy Shevchenko
s ok for you, my next patch will be > something like > this: > ... > config P2SB > bool > depends on PCI > ... > In p2sb.c, module.h header file will be removed as well. > Hi Andy, please provide your comments and/or concerns if any. Thanks. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v2 1/1] intel-mid: Fix sfi get_platform_data() return value issues

2016-09-08 Thread Andy Shevchenko
l-mid/device_libs/platform_tca6416.c > @@ -34,8 +34,12 @@ static void *tca6416_platform_data(void *info) >   gpio_base = get_gpio_by_name(base_pin_name); >   intr = get_gpio_by_name(intr_pin_name); >   > - if (gpio_base < 0) > + if (gpio_base < 0) { > + pr_err("%s: Unknown GPIO base number, falling back to > dynamic" > +    "allocation\n", __func__); Ditto. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v7] gpio: add Intel WhiskeyCove PMIC GPIO driver

2016-09-13 Thread Andy Shevchenko
e when I tried to use it... It might be that person is no longer working for Intel, though I think It would be better log message for that. -- With Best Regards, Andy Shevchenko

Re: [RESEND RFC PATCH 0/5] platform drivers for UP Board

2016-09-13 Thread Andy Shevchenko
board_gpio.c >  create mode 100644 drivers/platform/x86/up_board_gpio.h >  create mode 100644 drivers/platform/x86/up_board_leds.c >  create mode 100644 drivers/platform/x86/up_board_leds.h >  create mode 100644 drivers/platform/x86/up_board_pinctrl.c >  create mode 100644 drivers/platform/x86/up_board_pinctrl.h > -- Andy Shevchenko Intel Finland Oy

Re: [PATCH v7] gpio: add Intel WhiskeyCove PMIC GPIO driver

2016-09-13 Thread Andy Shevchenko
it is only in linux-next, so it cant be more than a few > weeks old. It's already quite off topic, so, I would just say that it is still valid point. Starting from some version of the series (which takes couple of months?) Bin Gao did improvements. -- With Best Regards, Andy Shevchenko

Re: [PATCH] pinctrl: intel: merrifield: fix dup size in probe

2016-08-31 Thread Andy Shevchenko
ry. Good catch! Acked-by: Andy Shevchenko P.S. Linus, perhaps this is material for -rc5. > > Fixes: 4e80c8f505741cbd ("pinctrl: intel: Add Intel Merrifield pin > controller support") > Signed-off-by: Vincent Stehlé > Cc: Andy Shevchenko > Cc: Linus Wall

[PATCH v1 1/2] x86/platform/intel-mid: Enable WiFi on Intel Edison

2016-08-31 Thread Andy Shevchenko
Intel Edison board provides built-in WiFi dongle based on Broadcom BCM43340. Append the essential data to enable WiFi on Intel Edison. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/Makefile | 2 + .../intel-mid/device_libs/platform_bcm43xx.c | 95

[PATCH v1 2/2] x86/platform/intel-mid: Enable SD card detection on Merrifield

2016-08-31 Thread Andy Shevchenko
Intel Merrifield platform provides SD card interface. The interface allows user to plug SD card to extend storage capacity. Append the essential data to enable SD card detection on it. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/Makefile | 2 + .../intel-mid

Regulator probe

2016-09-01 Thread Andy Shevchenko
Of course everything works in case of CONFIG_SDHCI=m, but it's looks like not a (proper?) solution. -- Andy Shevchenko Intel Finland Oy

Re: Regulator probe

2016-09-01 Thread Andy Shevchenko
On Thu, 2016-09-01 at 16:38 +0100, Mark Brown wrote: > On Thu, Sep 01, 2016 at 05:53:43PM +0300, Andy Shevchenko wrote: > > > > > [   20.843973] calling  sdhci_drv_init+0x0/0x20 @ 1 > > [   20.843976] sdhci: Secure Digital Host Controller Interface > > driver >

Re: [PATCH] serial: 8250_dw: Check the data->pclk when get apb_pclk

2016-08-25 Thread Andy Shevchenko
> - if (IS_ERR(data->clk) && PTR_ERR(data->clk) == -EPROBE_DEFER) > { > + if (IS_ERR(data->pclk) && PTR_ERR(data->pclk) == > -EPROBE_DEFER) { >   err = -EPROBE_DEFER; >   goto err_clk; >   } -- Andy Shevchenko Intel Finland Oy

Re: [PATCH] serial: 8250_dw: Check the data->pclk when get apb_pclk

2016-08-25 Thread Andy Shevchenko
On Thu, 2016-08-25 at 15:55 +0300, Andy Shevchenko wrote: > On Wed, 2016-08-24 at 16:33 +0800, Kefeng Wang wrote: > > > > It should check the data->pclk, not data->clk when get apb_pclk. > > > > Fixes: c8ed99d4f6a8("serial: 8250_dw: Add support for de

Re: [PATCH 0/4] platform/x86: Fix check for method instance number

2017-08-17 Thread Andy Shevchenko
On Thu, Aug 17, 2017 at 6:25 PM, Darren Hart wrote: > On Sun, Aug 13, 2017 at 03:54:26PM +0300, Andy Shevchenko wrote: >> On Sat, Aug 12, 2017 at 10:44 AM, Pali Rohár wrote: >> > This patch series fixes remaining mxm-wmi and asus-wmi drivers to evaluate >> > W

Re: linux-next: manual merge of the uuid tree with the arm64 tree

2017-06-20 Thread Andy Shevchenko
;s branch fits in with this. > > I think Andy is preparing various uuid conversion in it and wanted to > make sure you don't do any work he already did or which conflicts with > this work. Thanks, Christoph, that's correct. > > For now please just base it on my uuid-types tree. Yeah, this is safest option for now. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH] acer-wmi: Using zero as the first WMI instance number

2017-06-20 Thread Andy Shevchenko
m zero that it's must less than >> the instance_count in _WDG. >> >> This patch changes those instance number from one to zero. >> >> Cc: Darren Hart >> Cc: Andy Shevchenko >> Cc: Pali Rohár >> Signed-off-by: "Lee, Chun-Yi" > &g

Re: [PATCH v4] platform/x86: dell-laptop: Fix bogus keyboard backlight sysfs interface

2017-06-20 Thread Andy Shevchenko
Change commit log accordingly. > > Use token bit to make the intention more clear. > Also consider kbd_mode_levels_count and kbd_info.levels, suggested by > Pali Rohár. > > Use XOR to simplify the bitmask comparison, suggested by > Andy Shevchenko. > > drivers/platform/

Re: linux-next: manual merge of the uuid tree with the arm64 tree

2017-06-20 Thread Andy Shevchenko
On Tue, 2017-06-20 at 12:13 -0600, Baicar, Tyler wrote: > On 6/20/2017 2:47 AM, Andy Shevchenko wrote: > > On Tue, 2017-06-20 at 10:43 +0200, Christoph Hellwig wrote: > > > > Andy, > > The patch that was causing compilation failures on your branch was: > > 22e31

Re: [PATCH 1/2] staging: sm750fb: avoid conflicting vesafb

2017-06-20 Thread Andy Shevchenko
fdef I would like to hear. -- With Best Regards, Andy Shevchenko

Re: [PATCH v5 0/3] i2c: Hookup typec power-negotation to the PMIC and charger

2017-10-14 Thread Andy Shevchenko
first 2 patches > and esp. the first patch, so that we can get this merged for 4.15, then > that would be great. The person comes to my mind is Heikki, Though I dunno he has time either. -- With Best Regards, Andy Shevchenko

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-10-14 Thread Andy Shevchenko
Or why > Dell Latitude E6410 behaves differently? To be clear, am I waiting for new version? In any case I mark it as Changes Requested in my patchwork queue. Feel free to send a new version. -- With Best Regards, Andy Shevchenko

Re: [PATCH][next] platform/x86: intel_cht_int33fe: make a couple of local functions static

2017-10-14 Thread Andy Shevchenko
*data) > return 1; > } > > -struct i2c_client *cht_int33fe_find_max17047(void) > +static struct i2c_client *cht_int33fe_find_max17047(void) > { > struct i2c_client *max17047 = NULL; > > -- > 2.14.1 > -- With Best Regards, Andy Shevchenko

Re: [PATCHv2] thinkpad_acpi: Implement tablet mode resolving using GMMS method

2017-10-14 Thread Andy Shevchenko
in_tablet_mode = hotkey_gmms_get_tablet_mode(res, > + > &has_tablet_mode); > + if (has_tablet_mode) > + tp_features.hotkey_tablet = > TP_HOTKEY_TABLET_USES_GMMS; > + type = "GMMS"; > + } else if (acpi_evalf(hkey_handle, &res, "MHKG", "qd")) { > /* For X41t, X60t, X61t Tablets... */ > tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_MHKG; > in_tablet_mode = !!(res & TP_HOTKEY_TABLET_MASK); > type = "MHKG"; > - } else if (acpi_evalf(ec_handle, &res, "CMMD", "qd")) { > - /* For X1 Yoga (2016) */ > - tp_features.hotkey_tablet = TP_HOTKEY_TABLET_USES_CMMD; > - in_tablet_mode = res == TP_EC_CMMD_TABLET_MODE; > - type = "CMMD"; > } > > if (!tp_features.hotkey_tablet) > -- > 2.13.6 > -- With Best Regards, Andy Shevchenko

Re: [PATCH 1/3] platform/x86: intel_telemetry: Fix load failure info

2017-10-14 Thread Andy Shevchenko
{ > - pr_info(DRIVER_NAME ": version %s loaded\n", DRIVER_VERSION); > return platform_driver_register(&telemetry_soc_driver); > } > > -- > 2.7.4 > -- With Best Regards, Andy Shevchenko

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Andy Shevchenko
m_tis_tcg_phy), > GFP_KERNEL); > + phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); > if (phy == NULL) > return -ENOMEM; > > diff --git a/drivers/char/tpm/tpm_tis_spi.c > b/drivers/char/tpm/tpm_tis_spi.c > index 424ff2fde1f2..7cabb12d0b3a 100644 > --- a/drivers/char/tpm/tpm_tis_spi.c > +++ b/drivers/char/tpm/tpm_tis_spi.c > @@ -200,8 +200,7 @@ static int tpm_tis_spi_probe(struct spi_device > *dev) > { > struct tpm_tis_spi_phy *phy; > > - phy = devm_kzalloc(&dev->dev, sizeof(struct tpm_tis_spi_phy), > -GFP_KERNEL); > + phy = devm_kzalloc(&dev->dev, sizeof(*phy), GFP_KERNEL); > if (!phy) > return -ENOMEM; > -- Andy Shevchenko Intel Finland Oy

Re: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Andy Shevchenko
to the zero day bots that > catch different sorts of errors, BEFORE code is upstreamed, and > patches like these, after the fact. +1. > After the code has been upstreamed, it is a lot more difficult to > justify changes like this. It impacts both code that is being > developed AND backporting bug fixes. -- Andy Shevchenko Intel Finland Oy

Re: [PATCH 12/12] PM / core: Add AVOID_RPM driver flag

2017-10-17 Thread Andy Shevchenko
if (dev_pm_test_driver_flags(dev, DPM_FLAG_SMART_SUSPEND) && > + dev_pm_test_driver_flags(dev, DPM_FLAG_AVOID_RPM)) { Wasn't interface designed to allow something like: if (dev_pm_test_driver_flags(dev, DPM_FLAG_SMART_SUSPEND | DPM_FLAG_AVOID_RPM)) { instead? Does it make sense to have a separate definition for DPM_FLAG_SMART_SUSPEND | DPM_FLAG_AVOID_RPM ? -- Andy Shevchenko Intel Finland Oy

Re: [PATCH 12/12] PM / core: Add AVOID_RPM driver flag

2017-10-17 Thread Andy Shevchenko
On Tue, 2017-10-17 at 17:59 +0200, Rafael J. Wysocki wrote: > On Tuesday, October 17, 2017 5:33:17 PM CEST Andy Shevchenko wrote: > > On Mon, 2017-10-16 at 03:32 +0200, Rafael J. Wysocki wrote: > > > If DPM_FLAG_SMART_SUSPEND is not set, DPM_FLAG_AVOID_RPM has no > > >

Re: [patch v4 1/3] platform/x86: move Mellanox hardware platform hotplug driver to platform/mellanox

2017-10-17 Thread Andy Shevchenko
le for > the different machine architectures. > > Signed-off-by: Vadim Pasternak > Acked-by: Andy Shevchenko > +MELLANOX HARDWARE PLATFORM SUPPORT > +M: Andy Shevchenko > +M: Darren Hart > +M: Vadim Pasternak > +L: platform-driver-...@vger.kernel.org > +S

Re: [patch v4 2/3] platform/mellanox: mlxreg-hotplug: allow driver for ARM architecture

2017-10-17 Thread Andy Shevchenko
lug_device_en); > +} > + > +static void > +mlxreg_hotplug_of_device_destroy(struct mlxreg_hotplug_device *data) > +{ > + of_update_property(data->np, &mlxreg_hotplug_device_dis); > + of_node_clear_flag(data->np, OF_POPULATED); > +} > +#else > +#endif -- With Best Regards, Andy Shevchenko

Re: [patch v4 3/3] platform/mellanox: mlxreg-hotplug: modify to use regmap intreface

2017-10-17 Thread Andy Shevchenko
t; Signed-off-by: Vadim Pasternak > Acked-by: Andy Shevchenko > -#define PRIV_ATTR(i) priv->mlxreg_hotplug_attr[i] > -#define PRIV_DEV_ATTR(i) priv->mlxreg_hotplug_dev_attr[i] > -static int mlxreg_hotplug_attr_init(struct mlxreg_hotplug_priv_data *priv) > +static int > +mlxre

Re: [PATCH] efi: parse ARM error information value

2017-10-17 Thread Andy Shevchenko
gt; +#define CPER_ARM_ERR_VALID_ADDRESS_SPACE 0x0200 > +#define CPER_ARM_ERR_VALID_MEM_ATTRIBUTES0x0400 > +#define CPER_ARM_ERR_VALID_ACCESS_MODE 0x0800 BIT() is already being used in this file. > + > +#define CPER_ARM_ERR_TRANSACTION_SHIFT 16 > +#define CPER

Re: char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Andy Shevchenko
. Have you talked to Fengguang (0-day LKP)? Have you talked to Arnd (I think he is related to kernel-ci)? -- Andy Shevchenko Intel Finland Oy

Re: linux-next: build warning after merge of the drivers-x86 tree

2017-05-26 Thread Andy Shevchenko
.git#for-next >> appears to currently contain an older state from May 15. > > So just not pushed out yet. That's fine, I will hopefully notice when > it turns up. Just checking that it wasn't forgotten. No, it wasn't, it it in testing branch, I 'm about to push to for-next. -- With Best Regards, Andy Shevchenko

Re: linux-next: build warning after merge of the drivers-x86 tree

2017-05-26 Thread Andy Shevchenko
On Fri, May 26, 2017 at 12:07 PM, Stephen Rothwell wrote: > Hi Andy, > > On Fri, 26 May 2017 12:04:47 +0300 Andy Shevchenko > wrote: >> >> On Fri, May 26, 2017 at 11:35 AM, Stephen Rothwell >> wrote: >> > On Fri, 26 May 2017 10:25:36 +0200 Arnd Bergmann

Re: [PATCH] platform/x86: intel_pmc_ipc: Mark ipc_data_readb() as __maybe_unused

2017-05-26 Thread Andy Shevchenko
tel(u32 data, u32 offset) > writel(data, ipcdev.ipc_base + IPC_WRITE_BUFFER + offset); > } > > -static inline u8 ipc_data_readb(u32 offset) > +static inline u8 __maybe_unused ipc_data_readb(u32 offset) > { > return readb(ipcdev.ipc_base + IPC_READ_BUFFER + offset); > } > -- > 2.13.0.219.gdb65acc882-goog > -- With Best Regards, Andy Shevchenko

Re: [PATCH 1/8] serial: exar: Preconfigure xr17v35x MPIOs as output

2017-05-26 Thread Andy Shevchenko
e latter is the option. -- With Best Regards, Andy Shevchenko

Re: [PATCH] x86/timers: Move simple_udelay_calibration past init_hypervisor_platform

2017-05-26 Thread Andy Shevchenko
+ > x86_init.resources.probe_roms(); > > /* after parse_early_param, so could debug it */ -- With Best Regards, Andy Shevchenko

Re: [PATCH] platform/x86: dell-wmi: Add a comment explaining the 0xb2 magic number

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 8:15 AM, Darren Hart wrote: > From: Andy Lutomirski > > The hotkey table is 0xb2, add a comment for clarity. > Reviewed-by: Andy Shevchenko > Suggested-by: Darren Hart > Signed-off-by: Andy Lutomirski > Cc: Matthew Garrett > Cc: "Pali

Re: [PATCH] platform/x86: dell-wmi: Add a better description for "stealth mode"

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 8:16 AM, Darren Hart wrote: > From: Andy Lutomirski > > This is based on Mario's explanation and observation of my laptop. > Reviewed-by: Andy Shevchenko > Suggested-by: "Pali Rohár" > Signed-off-by: Andy Lutomirski > Cc: Mari

Re: [PATCH v1 1/1] intel_telemetry_debugfs: fix oops found while load/unload module test

2017-05-27 Thread Andy Shevchenko
P? > > Yeah, empty "unregister_pm_notifier" in !CONFIG_PM_SLEEP case sounds > like a good idea. I like the idea, though I would let Rafael to speak up. -- With Best Regards, Andy Shevchenko

Re: [PATCH 8/8] i2c: reformat core-base file header

2017-05-27 Thread Andy Shevchenko
re in this file because there is no significant code in the > base file and the two guys are fully credited in the i2c-mux file and b) > add my own copyright for the period of me being the maintainer. FWIW: here is my Reviewed-by: Andy Shevchenko for entire series _except_ this change. I'

Re: [PATCH] platform/x86: wmi: Fix printing info about WDG structure

2017-05-27 Thread Andy Shevchenko
d: 0x%02X\n", g->notify_id); > + else > + pr_info("\tobject_id: %c%c\n", g->object_id[0], > g->object_id[1]); If this can still contain non-printable characters the %*pE can help instead. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 2/6] stmmac: pci: Use stmmac_pci_info for all devices

2017-05-27 Thread Andy Shevchenko
VICE(PCI_VENDOR_ID_STMICRO, PCI_DEVICE_ID_STMICRO_MAC, > + stmmac_pci_info), > + STMMAC_DEVICE(PCI_VENDOR_ID_INTEL, STMMAC_QUARK_ID, quark_pci_info), -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 2/6] stmmac: pci: Use stmmac_pci_info for all devices

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 4:13 PM, Andy Shevchenko wrote: > On Fri, May 26, 2017 at 7:07 PM, Jan Kiszka wrote: >> Make stmmac_default_data compatible with stmmac_pci_info.setup and use >> an info structure for all devices. This allows to make the probing more >> regular. &g

Re: [PATCH v2 3/6] stmmac: pci: Make stmmac_pci_find_phy_addr truly generic

2017-05-27 Thread Andy Shevchenko
) return ret; /* * Comment goes here, I suppose. */ ret = 1; > + } -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 5/6] stmmac: pci: Use dmi_system_id table for retrieving PHY addresses

2017-05-27 Thread Andy Shevchenko
mmac_dmi_data, Can't be slightly better .driver_data = &galileo_stmmac_dmi_data, ? -- With Best Regards, Andy Shevchenko

Re: [PATCH] platform/x86: wmi: Fix printing info about WDG structure

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 4:17 PM, Pali Rohár wrote: > On Saturday 27 May 2017 15:07:09 Andy Shevchenko wrote: >> On Sat, May 27, 2017 at 2:51 PM, Pali Rohár >> wrote: >> > Remove >> > also reserved member as it does not have any defined meaning or >> > t

Re: [PATCH v2 6/6] stmmac: pci: Remove setup handler indirection via stmmac_pci_info

2017-05-27 Thread Andy Shevchenko
tend this and effectively revert this change. So, my vote is to leave it as is for now. -- With Best Regards, Andy Shevchenko

Re: [PATCH v3 02/10] gpio-exar/8250-exar: Do not even instantiate a GPIO device for Commtech cards

2017-05-27 Thread Andy Shevchenko
On Fri, May 26, 2017 at 7:02 PM, Jan Kiszka wrote: > Commtech adapters need the MPIOs for internal purposes, and the > gpio-exar driver already refused to pick them up. But there is actually > no point in even creating the underlying platform device. FWIW: Reviewed-by: Andy Shevchenko

Re: [PATCH v3 03/10] gpio-exar/8250-exar: Fix passing in of parent PCI device

2017-05-27 Thread Andy Shevchenko
on exit. But this won't help anyway as the core clears > drvdata after the driver left. > > Set the platform device parent instead. Now this one looks much better than first efforts. Reviewed-by: Andy Shevchenko > > Signed-off-by: Jan Kiszka > --- > drivers/gpio/gpio-e

Re: [PATCH v3 07/10] gpio-exar/8250-exar: Rearrange gpiochip parenthood

2017-05-27 Thread Andy Shevchenko
mpanion is a right thing to do (like it's done in other similar cases) Reviewed-by: Andy Shevchenko > Signed-off-by: Jan Kiszka > --- > drivers/gpio/gpio-exar.c| 2 +- > drivers/tty/serial/8250/8250_exar.c | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(

Re: [PATCH v3 08/10] gpio: exar: Refactor address and bit calculations

2017-05-27 Thread Andy Shevchenko
l lines you touched here. -- With Best Regards, Andy Shevchenko

Re: [PATCH v3 09/10] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-05-27 Thread Andy Shevchenko
gt; + device_property_read_u32(&pdev->dev, "npins", &npins) < 0) "ngpios" -- With Best Regards, Andy Shevchenko

Re: [PATCH v3 10/10] serial: exar: Add support for IOT2040 device

2017-05-27 Thread Andy Shevchenko
ret = platform->register_gpio(pcidev, port); > } Can't you move at least some of this to the patch where you move the check? -- With Best Regards, Andy Shevchenko

Re: [PATCH] scripts/gdb: make lx-dmesg command work (reliably)

2017-05-27 Thread Andy Shevchenko
rom colleague of mine couple of years ago, they (their team) moved to 100 characters in Python scripts because of somehow stupid recommendations from last century. -- With Best Regards, Andy Shevchenko

Re: [PATCH 0/2] leds: trigger: gpio: Add update point / use threaded IRQ

2017-05-27 Thread Andy Shevchenko
On Fri, May 26, 2017 at 4:17 PM, Jan Kiszka wrote: > See patches for details. > FWIW: Reviewed-by: Andy Shevchenko P.S. Of course it would be also nice to convert to GPIO descriptors, though it's not related to this series. > Jan Kiszka (2): > leds: trigger: gpio: Refres

Re: [PATCH 2/2] reset: Add basic single-register reset driver

2017-05-27 Thread Andy Shevchenko
_MODULE; > + priv->rcdev.ops = &basic_reset_ops; > + priv->rcdev.of_node = pdev->dev.of_node; > + priv->rcdev.nr_resets = 32; > + > + return reset_controller_register(&priv->rcdev); > +} > + > +static const struct of_device_id basic_reset_dt_match[] = { > + { .compatible = "reset-basic" }, > + { }, > +}; > + > +static struct platform_driver basic_reset_driver = { > + .probe = basic_reset_probe, > + .driver = { > + .name = "basic-reset", > + .of_match_table = basic_reset_dt_match, > + }, > +}; > +builtin_platform_driver(basic_reset_driver); > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko

Re: [Q] What about PCI mmio access alignment?

2017-05-27 Thread Andy Shevchenko
db(bar0 + 1) > - readl(bar0) It depends. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 07/27] thunderbolt: Allow passing NULL to tb_ctl_free()

2017-05-27 Thread Andy Shevchenko
return; > + > if (ctl->rx) > ring_free(ctl->rx); > if (ctl->tx) > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 09/27] thunderbolt: Convert switch to a device

2017-05-27 Thread Andy Shevchenko
x; > + } It might make sense to add some comment as we discussed earlier (privately) about (non-)compatibiliness with UUID by spec and why 0xff are used. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 12/27] thunderbolt: Refactor and fix parsing of port drom entries

2017-05-27 Thread Andy Shevchenko
rn value is currently ignored. Evaluate it and abort parsing on > error. > > Change tb_drom_parse_entries() to accommodate for parsing of other entry > types than TB_DROM_ENTRY_PORT. > FWIW: Reviewed-by: Andy Shevchenko > Signed-off-by: Lukas Wunner > Signed-off-by: Mik

Re: [PATCH v2 13/27] thunderbolt: Read vendor and device name from DROM

2017-05-27 Thread Andy Shevchenko
e = parse_name(entry->data, > +header->len - sizeof(*header)); > + if (!sw->device_name) > + return -ENOMEM; > + break; > + } > + > + return 0; > +} -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 13/27] thunderbolt: Read vendor and device name from DROM

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 6:57 PM, Andy Shevchenko wrote: > On Fri, May 26, 2017 at 7:09 PM, Mika Westerberg > wrote: >> The device DROM contains name of the vendor and device among other >> things. Extract this information and expose it to the userspace via two >> new

Re: [PATCH v2 21/27] thunderbolt: Store Thunderbolt generation in the switch structure

2017-05-27 Thread Andy Shevchenko
: > + case PCI_DEVICE_ID_INTEL_CACTUS_RIDGE_4C: > + case PCI_DEVICE_ID_INTEL_PORT_RIDGE: > + case PCI_DEVICE_ID_INTEL_REDWOOD_RIDGE_2C_BRIDGE: > + case PCI_DEVICE_ID_INTEL_REDWOOD_RIDGE_4C_BRIDGE: > + return 1; Other than that FWIW: Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 22/27] thunderbolt: Add support for DMA configuration based mailbox

2017-05-27 Thread Andy Shevchenko
} Just to be sure I didn't miss anything. Can't we just map buffer into DMA capable address space instead of memcpy()'ing? -- With Best Regards, Andy Shevchenko

Re: [PATCH] dmi: Make dmi_walk and dmi_walk_early return real error codes

2017-05-27 Thread Andy Shevchenko
On Sat, May 27, 2017 at 2:59 AM, Darren Hart wrote: > From: Andy Lutomirski > > Currently they return -1 on error, which will confuse callers if > they try to interpret it as a normal negative error code. > Obviously makes sense! Reviewed-by: Andy Shevchenko > Signed-off-b

Re: [PATCH] platform/x86: dell-rbtn: Improve explanation about DELLABC6

2017-05-27 Thread Andy Shevchenko
evice, but that we > are intentionally ignoring it. > Pali made a good point. Otherwise, FWIW: Reviewed-by: Andy Shevchenko > Signed-off-by: Andy Lutomirski > [dvhart: New commit message and minor comment wording fixes] > Cc: Mario Limonciello > Cc: "Pali Rohár&

Re: [RFC PATCH] ASoC: Intel: sst: Delete sst_save_shim64(); saved regs are never used

2017-05-27 Thread Andy Shevchenko
64 imrx; > u64 imrd; > u64 ipcx; > u64 ipcd; -- With Best Regards, Andy Shevchenko

Re: [PATCH 01/10] gpio: mockup: fix direction values

2017-05-27 Thread Andy Shevchenko
kup.c > +++ b/drivers/gpio/gpio-mockup.c > @@ -29,8 +29,8 @@ > #defineGPIO_MOCKUP_MAX_GC 10 > > enum { > - DIR_IN = 0, > - DIR_OUT, > + DIR_OUT = 0, > + DIR_IN = 1, > }; > > /* > -- > 2.9.3 > -- With Best Regards, Andy Shevchenko

<    3   4   5   6   7   8   9   10   11   12   >