[PATCH v6 8/8] x86/microcode/AMD: Don't scan past the CPU equivalence table data

2018-05-19 Thread Maciej S. Szmigiero
and have to work in-place, let's pass an explicit size of this table to its scanning functions so they will know when to stop. Signed-off-by: Maciej S. Szmigiero --- arch/x86/kernel/cpu/microcode/amd.c | 46 ++--- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git

[PATCH v6 7/8] x86/microcode/AMD: Add a reminder about PATCH_MAX_SIZE macro

2018-05-19 Thread Maciej S. Szmigiero
. Signed-off-by: Maciej S. Szmigiero --- arch/x86/include/asm/microcode_amd.h | 1 + arch/x86/kernel/cpu/microcode/amd.c | 4 2 files changed, 5 insertions(+) diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h index 209492849566..8ea477fbc65f 100644

[PATCH v2] USB: serial: option: add support for D-Link DWM-157 C1

2017-08-29 Thread Maciej S. Szmigiero
ub=06 Prot=50 Driver=usb-storage Signed-off-by: Maciej S. Szmigiero Cc: sta...@vger.kernel.org --- Changes from v1: Match the whole vendor-specific interface class instead of particular interface subclasses and protocols, add usb-devices output to the commit message. drivers/usb/serial/option.c | 1

Re: [PATCH 1/5] [media] cx25840: add pin to pad mapping and output format configuration

2017-08-31 Thread Maciej S. Szmigiero
Hi Hans, Thanks for comments and sorry for not replying faster. On 21.08.2017 15:15, Hans Verkuil wrote: > Hi Maciej, > > On 08/10/2017 11:50 PM, Maciej S. Szmigiero wrote: >> This commit adds pin to pad mapping and output format configuration support >> in CX2584x-se

Re: [PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700

2017-08-31 Thread Maciej S. Szmigiero
Hi Hans, On 21.08.2017 15:23, Hans Verkuil wrote: > Hi Maciej, > > On 08/10/2017 11:53 PM, Maciej S. Szmigiero wrote: >> This patch adds support for analog part of Medion 95700 in the cxusb >> driver. >> >> What works: >> * Video capture at various s

[PATCH v2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-07-24 Thread Maciej S. Szmigiero
(and had it wrong again on resume from S3). Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume' parameter. drivers/hwmon/it87.c | 214

[PATCH v2 4/6] tuner-simple: allow setting mono radio mode

2017-10-10 Thread Maciej S. Szmigiero
a FMD1216ME tuner. Signed-off-by: Maciej S. Szmigiero --- drivers/media/tuners/tuner-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tuner-simple.c b/drivers/media/tuners/tuner-simple.c index cf44d3657f55..01ab94681d2d 100644 --- a/drivers

[PATCH v2 0/6] [media] Add analog mode support for Medion MD95700

2017-10-10 Thread Maciej S. Szmigiero
This series adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo

[PATCH v2 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-10-10 Thread Maciej S. Szmigiero
/ mono), * Unplugging while capturing, * DVB / analog coexistence, * Raw BT.656 stream support. What does not work yet: * Audio, * VBI, * Picture controls. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/Kconfig|8 +- drivers/media/usb/dvb-usb/Makefile |2

[PATCH v2 2/6] cx25840: describe standard for 0b1100 value in AFD_FMT_STAT bits

2017-10-10 Thread Maciej S. Szmigiero
me entries in an array where chip register -> V4L2 standard mappings are stored. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/c

[PATCH v2 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-10-10 Thread Maciej S. Szmigiero
time due to hardware limitations. Actual implementation of the analog mode will be provided by the next commit. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/cxusb.c| 450 +++ drivers/media/usb/dvb-usb/cxusb.h| 48 drivers/media

[PATCH v2 1/6] cx25840: add pin to pad mapping and output format configuration

2017-10-10 Thread Maciej S. Szmigiero
ut risking compatibility problems. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 394 ++- drivers/media/i2c/cx25840/cx25840-core.h | 11 + drivers/media/i2c/cx25840/cx25840-vbi.c | 3 + drivers/media/pci/ivtv/ivtv-i2c.c

[PATCH v2 3/6] cx25840: fix a possible divide by zero in set_fmt callback

2017-10-10 Thread Maciej S. Szmigiero
ed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index c36103587c4d..cebd1a540df8 100644 --- a/drivers/media/i2c/c

Re: [PATCH][RESEND] cgroup, docs: document the root cgroup behavior of cpu and io controllers

2018-01-08 Thread Maciej S. Szmigiero
Hello, On 08.01.2018 13:15, Tejun Heo wrote: > Hello, > > On Thu, Jan 04, 2018 at 10:57:00PM +0100, Maciej S. Szmigiero wrote: >> Currently, cgroups v2 documentation contains only a generic remark that >> "How resource consumption in the root cgroup is governed i

Re: [PATCH v5] gpio: winbond: add driver

2018-01-09 Thread Maciej S. Szmigiero
On 09.01.2018 14:53, Linus Walleij wrote: > On Sat, Jan 6, 2018 at 12:46 AM, Maciej S. Szmigiero > wrote: > >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported but

[PATCH v2] cgroup, docs: document the root cgroup behavior of cpu and io controllers

2018-01-10 Thread Maciej S. Szmigiero
ith v1" section. Let's document this behavior also for cgroups v2 to make life easier for users. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move the root cgroup behavior description to a separate section, clearly marking it as non-normative information which is subject to cha

Re: [PATCH] gpio: winbond: fix ISA_BUS_API dependency

2018-01-11 Thread Maciej S. Szmigiero
o not use the isa_bus_type for it, but rather >> turn it into a platform_driver, acpi_driver or add an MFD for it that >> is shared with the wdt and hwmon portions and does the probing. >> >> For now, this patch fixes the dependency by changing 'select' into >> 'depends on'.

Re: [PATCH] gpio: winbond: add driver

2017-12-18 Thread Maciej S. Szmigiero
Hi Linus, On 18.12.2017 22:22, Linus Walleij wrote: > Hi Maciej! > > Thanks for your patch! Thanks for your review, see also my comments below. > On Thu, Dec 14, 2017 at 11:05 PM, Maciej S. Szmigiero > wrote: > >> This commit adds GPIO driver for Winbond Super I/O

Re: [PATCH] gpio: winbond: add driver

2017-12-20 Thread Maciej S. Szmigiero
On 20.12.2017 13:06, Linus Walleij wrote: > On Tue, Dec 19, 2017 at 12:07 AM, Maciej S. Szmigiero > wrote: >> On 18.12.2017 22:22, Linus Walleij wrote: > (..) >>>> +static void winbond_gpio_warn_conflict(unsigned int idx, const char >>>>

Re: [PATCH v3 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20

2017-11-27 Thread Maciej S. Szmigiero
On 27.11.2017 18:40, Takashi Sakamoto wrote: (..) > > Looks good to me. > > Reviewed-by: Takashi Sakamoto Thanks. > In next time to post any of your v2 patchset, it's better to add commenters > of v1 patchset to CC list, so that your patch reaches the person who has > practical interests in

Re: [alsa-devel] [PATCH v3 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20

2017-11-27 Thread Maciej S. Szmigiero
On 27.11.2017 21:28, Takashi Iwai wrote: > On Mon, 27 Nov 2017 00:09:47 +0100, > Maciej S. Szmigiero wrote: >> diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h >> index 58acd00cae19..d970879944fc 100644 >> --- a/include/sound/soc-dai.h >> +++ b/includ

[PATCH] ARM: dts: imx6qdl-udoo: add support for powering off

2017-11-27 Thread Maciej S. Szmigiero
o power the SoC up again press the power button (SW2, the one with a long shaft). Signed-off-by: Maciej S. Szmigiero --- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/imx6qdl-udoo.dtsi in

[PATCH v4 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S,U}20

2017-11-27 Thread Maciej S. Szmigiero
This format is similar to existing SNDRV_PCM_FORMAT_{S,U}20_3 that keep 20-bit PCM samples in 3 bytes, however i.MX6 platform SSI FIFO does not allow 3-byte accesses (including DMA) so a 4-byte (more conventional) format is needed for it. Signed-off-by: Maciej S. Szmigiero --- Changes from v1

[PATCH v4 2/2] ASoC: fsl_ssi: add 20-bit sample format for AC'97 and use it for capture

2017-11-27 Thread Maciej S. Szmigiero
e so allow this, too. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Adapt format name to changes in the first patch from this series. Changes from v2, v3: None. sound/soc/fsl/fsl_ssi.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_s

Re: [PATCH v3] gpio: winbond: add driver

2018-01-03 Thread Maciej S. Szmigiero
On 03.01.2018 20:05, Andy Shevchenko wrote: > On Sat, 2017-12-30 at 22:02 +0100, Maciej S. Szmigiero wrote: >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported but in the future

Re: [PATCH v3] gpio: winbond: add driver

2018-01-04 Thread Maciej S. Szmigiero
On 04.01.2018 18:35, Andy Shevchenko wrote: > On Thu, 2018-01-04 at 00:41 +0100, Maciej S. Szmigiero wrote: >> On 03.01.2018 20:05, Andy Shevchenko wrote: >>> On Sat, 2017-12-30 at 22:02 +0100, Maciej S. Szmigiero wrote: >>>> This commit adds GPIO driver for Winbond S

Re: [PATCH v1 11/15] ASoC: fsl_ssi: Setup AC97 in dai_probe()

2018-01-04 Thread Maciej S. Szmigiero
On 04.01.2018 20:07, Nicolin Chen wrote: > On Mon, Jan 01, 2018 at 04:17:20PM +0100, Maciej S. Szmigiero wrote: >>> AC97 configures some registers earlier to start a communication >>> with CODECs, so this patch moves those register settings to the >>> dai_probe() as w

[PATCH v4] gpio: winbond: add driver

2018-01-04 Thread Maciej S. Szmigiero
r I/O chip. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: * Added SPDX license tag, * Removed gpiobase parameter, * Changed uint{8,16}_t types to u{8,16}, * Added kerneldoc descriptions of driver structures, * Reformatted winbond_gpio_infos array fields so they are on separate lines, *

[PATCH][RESEND] cgroup, docs: document the root cgroup behavior of cpu and io controllers

2018-01-04 Thread Maciej S. Szmigiero
ith v1" section. Let's document this behavior also for cgroups v2 to make life easier for users. Signed-off-by: Maciej S. Szmigiero --- This is a resend without any changes. Documentation/cgroup-v2.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/cgroup-v2

Re: [PATCH v4] gpio: winbond: add driver

2018-01-05 Thread Maciej S. Szmigiero
On 05.01.2018 14:35, Andy Shevchenko wrote: > On Thu, 2018-01-04 at 22:46 +0100, Maciej S. Szmigiero wrote: >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported but in the future

[PATCH v5] gpio: winbond: add driver

2018-01-05 Thread Maciej S. Szmigiero
r I/O chip. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: * Added SPDX license tag, * Removed gpiobase parameter, * Changed uint{8,16}_t types to u{8,16}, * Added kerneldoc descriptions of driver structures, * Reformatted winbond_gpio_infos array fields so they are on separate lines, *

Re: [PATCH 00/10] ASoC: fsl_ssi: Clean up - coding style level

2017-12-05 Thread Maciej S. Szmigiero
Hi Nicolin, On 04.12.2017 21:46, Nicolin Chen wrote: > ==Background== > The fsl_ssi driver was designed for PPC originally and then it has > been updated to support different modes for i.MX Series, including > SDMA, I2S Master mode, AC97 and older i.MXs with FIQ, by different > contributors for

Re: [PATCH 00/10] ASoC: fsl_ssi: Clean up - coding style level

2017-12-05 Thread Maciej S. Szmigiero
On 05.12.2017 20:33, Nicolin Chen wrote: > On Tue, Dec 05, 2017 at 02:01:17PM +0100, Maciej S. Szmigiero wrote: > >>> ==Verification== >>> Theoretically, it only needs code review, build and sanity tests. I >>> have done build and sanity tests on an i.MX

[PATCH] gpio: winbond: add driver

2017-12-14 Thread Maciej S. Szmigiero
r I/O chip. Signed-off-by: Maciej S. Szmigiero --- drivers/gpio/Kconfig| 15 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-winbond.c | 694 3 files changed, 710 insertions(+) create mode 100644 drivers/gpio/gpio-winbond.c diff --git

[PATCH] cgroup, docs: document the root cgroup behavior of cpu and io controllers

2017-12-15 Thread Maciej S. Szmigiero
ith v1" section. Let's document this behavior also for cgroups v2 to make life easier for users. Signed-off-by: Maciej S. Szmigiero --- Documentation/cgroup-v2.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/cgroup-v2.txt b/Documentation/cgroup-v2.tx

[PATCH v2] gpio: winbond: add driver

2017-12-22 Thread Maciej S. Szmigiero
r I/O chip. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: * Added SPDX license tag, * Removed gpiobase parameter, * Changed uint{8,16}_t types to u{8,16}, * Added kerneldoc descriptions of driver structures, * Reformatted winbond_gpio_infos array fields so they are on separate lines, *

Re: [PATCH v4 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
On 19.12.2017 13:53, Mauro Carvalho Chehab wrote: > Em Sun, 17 Dec 2017 19:47:25 +0100 > "Maciej S. Szmigiero" escreveu: > >> This patch adds support for analog part of Medion 95700 in the cxusb >> driver. >> >> What works: >> * Video capture at

[PATCH v5 0/6] [media] Add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
of a newly added "cxusb-analog.c" file, * Don't print errors on memory allocation failures, * Get rid of the driver MODULE_VERSION(), * Small formating fix of a one line. Maciej S. Szmigiero (6): ivtv: zero-initialize cx25840 platform data cx25840: add kernel-doc description of

[PATCH v5 4/6] tuner-simple: allow setting mono radio mode

2017-12-22 Thread Maciej S. Szmigiero
a FMD1216ME tuner. Signed-off-by: Maciej S. Szmigiero --- drivers/media/tuners/tuner-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tuner-simple.c b/drivers/media/tuners/tuner-simple.c index cf44d3657f55..01ab94681d2d 100644 --- a/drivers

[PATCH v5 3/6] cx25840: add pin to pad mapping and output format configuration

2017-12-22 Thread Maciej S. Szmigiero
ut risking compatibility problems. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 396 ++- drivers/media/i2c/cx25840/cx25840-core.h | 13 + drivers/media/i2c/cx25840/cx25840-vbi.c | 3 + include/media/drv-intf/cx25840.h

[PATCH v5 1/6] ivtv: zero-initialize cx25840 platform data

2017-12-22 Thread Maciej S. Szmigiero
We need to zero-initialize cx25840 platform data structure to make sure that its future members do not contain random stack garbage. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/ivtv/ivtv-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b

[PATCH v5 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-22 Thread Maciej S. Szmigiero
time due to hardware limitations. Actual implementation of the analog mode will be provided by the next commit. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/cxusb.c| 452 +++ drivers/media/usb/dvb-usb/cxusb.h| 48 drivers/media

[PATCH v5 2/6] cx25840: add kernel-doc description of struct cx25840_state

2017-12-22 Thread Maciej S. Szmigiero
This commit describes a device instance private data of the driver (struct cx25840_state) in a kernel-doc style comment. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.h | 33 ++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff

[PATCH v5 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
/ mono), * Unplugging while capturing, * DVB / analog coexistence, * Raw BT.656 stream support. What does not work yet: * Audio, * VBI, * Picture controls. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/Kconfig| 16 +- drivers/media/usb/dvb-usb/Makefile |3

Re: [PATCH v5 3/6] cx25840: add pin to pad mapping and output format configuration

2017-12-23 Thread Maciej S. Szmigiero
On 23.12.2017 15:08, Philippe Ombredanne wrote: > On Sat, Dec 23, 2017 at 12:18 AM, Maciej S. Szmigiero > wrote: >> This commit adds pin to pad mapping and output format configuration support >> in CX2584x-series chips to cx25840 driver. >> >> This functionality i

Re: [PATCH v2] gpio: winbond: add driver

2017-12-24 Thread Maciej S. Szmigiero
On 24.12.2017 23:42, William Breathitt Gray wrote: > On Fri, Dec 22, 2017 at 07:58:49PM +0100, Maciej S. Szmigiero wrote: >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported

Re: [PATCH v2] gpio: winbond: add driver

2017-12-25 Thread Maciej S. Szmigiero
On 24.12.2017 23:42, William Breathitt Gray wrote: (..) > By the way, don't hesitate to ask for more information on the ISA > subsystem -- a lot of maintainers are unaware that it even exists since > so few devices nowadays use ISA-style communication -- but I'm always > happy to help. :) It

Re: [PATCH v2] gpio: winbond: add driver

2017-12-27 Thread Maciej S. Szmigiero
On 27.12.2017 01:24, William Breathitt Gray wrote: > On Mon, Dec 25, 2017 at 03:48:16PM +0100, Maciej S. Szmigiero wrote: (..) >> All the existing ISA bus drivers seem to depend on CONFIG_ISA_BUS_API >> instead of selecting it but IMHO this is wrong because: >> 1) This K

Re: [PATCH v2] gpio: winbond: add driver

2017-12-28 Thread Maciej S. Szmigiero
On 28.12.2017 05:58, William Breathitt Gray wrote: > On Wed, Dec 27, 2017 at 07:42:21PM +0100, Maciej S. Szmigiero wrote: >> On 27.12.2017 01:24, William Breathitt Gray wrote: >>> On Mon, Dec 25, 2017 at 03:48:16PM +0100, Maciej S. Szmigiero wrote: >> (..) >>>&

Re: [PATCH 0/3] Change ISA_BUS_API dependency to selection

2017-12-28 Thread Maciej S. Szmigiero
On 28.12.2017 17:01, William Breathitt Gray wrote: (..) > > Linus, please pickup this entire patchset through your GPIO subsystem > tree; a recursive dependency error is present if these patches are > cherry-picked (see https://lkml.org/lkml/2017/12/26/235), so they should > be merged together in

Re: [PATCH v2] gpio: winbond: add driver

2017-12-28 Thread Maciej S. Szmigiero
On 28.12.2017 16:12, Andy Shevchenko wrote: > On Fri, 2017-12-22 at 19:58 +0100, Maciej S. Szmigiero wrote: >> This commit adds GPIO driver for Winbond Super I/Os. >> >> Currently, only W83627UHG model (also known as Nuvoton NCT6627UD) is >> supported but in the future

Re: [PATCH v2 1/6] cx25840: add pin to pad mapping and output format configuration

2017-12-17 Thread Maciej S. Szmigiero
On 11.12.2017 16:27, Mauro Carvalho Chehab wrote: > Em Tue, 10 Oct 2017 23:34:45 +0200 > "Maciej S. Szmigiero" escreveu: > >> This commit adds pin to pad mapping and output format configuration support >> in CX2584x-series chips to cx25840 driver. >> >&g

[PATCH v3 0/6] [media] Add analog mode support for Medion MD95700

2017-12-17 Thread Maciej S. Szmigiero
their readability, * Generate masks using GENMASK() and BIT() macros in cx25840.h and cxusb.h. Maciej S. Szmigiero (6): ivtv: zero-initialize cx25840 platform data cx25840: add kernel-doc description of struct cx25840_state cx25840: add pin to pad mapping and output format configuration tuner-simple

[PATCH v3 2/6] cx25840: add kernel-doc description of struct cx25840_state

2017-12-17 Thread Maciej S. Szmigiero
This commit describes a device instance private data of the driver (struct cx25840_state) in a kernel-doc style comment. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.h | 33 ++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff

[PATCH v3 1/6] ivtv: zero-initialize cx25840 platform data

2017-12-17 Thread Maciej S. Szmigiero
We need to zero-initialize cx25840 platform data structure to make sure that its future members do not contain random stack garbage. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/ivtv/ivtv-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b

[PATCH v3 3/6] cx25840: add pin to pad mapping and output format configuration

2017-12-17 Thread Maciej S. Szmigiero
ut risking compatibility problems. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 396 ++- drivers/media/i2c/cx25840/cx25840-core.h | 13 + drivers/media/i2c/cx25840/cx25840-vbi.c | 3 + include/media/drv-intf/cx25840.h

[PATCH v3 4/6] tuner-simple: allow setting mono radio mode

2017-12-17 Thread Maciej S. Szmigiero
a FMD1216ME tuner. Signed-off-by: Maciej S. Szmigiero --- drivers/media/tuners/tuner-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tuner-simple.c b/drivers/media/tuners/tuner-simple.c index cf44d3657f55..01ab94681d2d 100644 --- a/drivers

[PATCH v3 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-17 Thread Maciej S. Szmigiero
time due to hardware limitations. Actual implementation of the analog mode will be provided by the next commit. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/cxusb.c| 452 +++ drivers/media/usb/dvb-usb/cxusb.h| 48 drivers/media

[PATCH v3 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-17 Thread Maciej S. Szmigiero
/ mono), * Unplugging while capturing, * DVB / analog coexistence, * Raw BT.656 stream support. What does not work yet: * Audio, * VBI, * Picture controls. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/Kconfig|8 +- drivers/media/usb/dvb-usb/Makefile |2

Re: [PATCH v3 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-17 Thread Maciej S. Szmigiero
On 17.12.2017 19:24, Philippe Ombredanne wrote: > Maciej, > > On Sun, Dec 17, 2017 at 6:37 PM, Maciej S. Szmigiero > wrote: >> This patch adds support for analog part of Medion 95700 in the cxusb >> driver. > > >> --- /dev/null >> +++ b/drivers/m

[PATCH v4 1/6] ivtv: zero-initialize cx25840 platform data

2017-12-17 Thread Maciej S. Szmigiero
We need to zero-initialize cx25840 platform data structure to make sure that its future members do not contain random stack garbage. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/ivtv/ivtv-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b

[PATCH v4 2/6] cx25840: add kernel-doc description of struct cx25840_state

2017-12-17 Thread Maciej S. Szmigiero
This commit describes a device instance private data of the driver (struct cx25840_state) in a kernel-doc style comment. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.h | 33 ++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff

[PATCH v4 0/6] [media] Add analog mode support for Medion MD95700

2017-12-17 Thread Maciej S. Szmigiero
their readability, * Generate masks using GENMASK() and BIT() macros in cx25840.h and cxusb.h. Changes from v3: Add SPDX tag to a newly added "cxusb-analog.c" file. Maciej S. Szmigiero (6): ivtv: zero-initialize cx25840 platform data cx25840: add kernel-doc description of struct cx25840_state

[PATCH v4 3/6] cx25840: add pin to pad mapping and output format configuration

2017-12-17 Thread Maciej S. Szmigiero
ut risking compatibility problems. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 396 ++- drivers/media/i2c/cx25840/cx25840-core.h | 13 + drivers/media/i2c/cx25840/cx25840-vbi.c | 3 + include/media/drv-intf/cx25840.h

[PATCH v4 4/6] tuner-simple: allow setting mono radio mode

2017-12-17 Thread Maciej S. Szmigiero
a FMD1216ME tuner. Signed-off-by: Maciej S. Szmigiero --- drivers/media/tuners/tuner-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tuner-simple.c b/drivers/media/tuners/tuner-simple.c index cf44d3657f55..01ab94681d2d 100644 --- a/drivers

[PATCH v4 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-17 Thread Maciej S. Szmigiero
/ mono), * Unplugging while capturing, * DVB / analog coexistence, * Raw BT.656 stream support. What does not work yet: * Audio, * VBI, * Picture controls. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/Kconfig|8 +- drivers/media/usb/dvb-usb/Makefile |2

[PATCH v4 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-17 Thread Maciej S. Szmigiero
time due to hardware limitations. Actual implementation of the analog mode will be provided by the next commit. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/cxusb.c| 452 +++ drivers/media/usb/dvb-usb/cxusb.h| 48 drivers/media

[PATCH v2] net: phy: leds: Add support for "link" trigger

2017-10-31 Thread Maciej S. Szmigiero
ire on any link speed known to the PHY. Such trigger can then be used for implementing a poor man's substitute of the "link" LED on boards that lack it. Let's add it. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Don't keep the "link" trigger together with link spe

Re: [PATCH v2] net: phy: leds: Add support for "link" trigger

2017-11-01 Thread Maciej S. Szmigiero
Hi Andrew, On 01.11.2017 13:16, Andrew Lunn wrote: >> @@ -123,6 +153,10 @@ int phy_led_triggers_register(struct phy_device *phy) >> while (i--) >> phy_led_trigger_unregister(>phy_led_triggers[i]); >> devm_kfree(>mdio.dev, phy->phy_led_triggers); >> +out_unreg_link: >> +

Re: [PATCH v2] net: phy: leds: Add support for "link" trigger

2017-11-01 Thread Maciej S. Szmigiero
Hi Andrew, On 01.11.2017 13:31, Andrew Lunn wrote: >> Yes, I did it the same way as the existing code did for phy->phy_led_triggers >> for reasons of both consistency and also to be on the safe side because >> maybe there is some non-obvious reason why it has to be freed >> explicitly (?). > >

Re: [PATCH v2] net: phy: leds: Add support for "link" trigger

2017-11-01 Thread Maciej S. Szmigiero
Hi Andrew, On 01.11.2017 13:37, Andrew Lunn wrote: > Hi Maciej > > I don't particularly like the > >if (!phy->link) > goto out_change_speed; > > part of the existing code. Makes me thing of BASIC. goto is good for > error handling, but this is not an error. > > If you

[PATCH v3 1/2] net: phy: leds: Refactor "no link" handler into a separate function

2017-11-01 Thread Maciej S. Szmigiero
nction so it is more obvious what the code is doing. Signed-off-by: Maciej S. Szmigiero --- drivers/net/phy/phy_led_triggers.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/phy/phy_led_triggers.c b/drivers/net/phy/phy_led_triggers.

[PATCH v3 2/2] net: phy: leds: Add support for "link" trigger

2017-11-01 Thread Maciej S. Szmigiero
ire on any link speed known to the PHY. Such trigger can then be used for implementing a poor man's substitute of the "link" LED on boards that lack it. Let's add it. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Don't keep the "link" trigger together with link spe

Re: [PATCH v2] net: phy: leds: Add support for "link" trigger

2017-11-01 Thread Maciej S. Szmigiero
Hi Andrew, On 01.11.2017 13:33, Maciej S. Szmigiero wrote: > On 01.11.2017 13:31, Andrew Lunn wrote: >>> Yes, I did it the same way as the existing code did for >>> phy->phy_led_triggers >>> for reasons of both consistency and also to be on the safe side be

[PATCH] net: phy: leds: Add support for "link" trigger

2017-10-28 Thread Maciej S. Szmigiero
ire on any link speed known to the PHY. Such trigger can then be used for implementing a poor man's substitute of the "link" LED on boards that lack it. Let's add it. Signed-off-by: Maciej S. Szmigiero --- drivers/net/phy/Kconfig| 7 +-- drivers/net/phy/phy

[PATCH] cfq-iosched: add "leaf_weight" setting for the root cgroup in cgroups v2

2017-10-29 Thread Maciej S. Szmigiero
cgroups accordingly. Let's add a "leaf_weight" setting to the root cgroup in cgroups v2, too. Note that new kernel threads appear in the root cgroup and there seems to be no way to change this since kthreadd cannot be moved to another cgroup (for a good reason). Signed-off-by: Maciej S.

Re: [PATCH] cfq-iosched: add "leaf_weight" setting for the root cgroup in cgroups v2

2017-10-30 Thread Maciej S. Szmigiero
On 30.10.2017 15:55, Tejun Heo wrote: > On Sun, Oct 29, 2017 at 05:36:53PM +0100, Maciej S. Szmigiero wrote: >> CFQ scheduler has a property that processes (or tasks in cgroups v1) that >> aren't assigned to any particular cgroup - that is, which stay in the root >> cgro

Re: [PATCH] net: phy: leds: Add support for "link" trigger

2017-10-30 Thread Maciej S. Szmigiero
On 30.10.2017 19:36, Florian Fainelli wrote: > On 10/28/2017 08:27 AM, Maciej S. Szmigiero wrote: >> Currently, we create a LED trigger for any link speed known to a PHY. >> These triggers only fire when their exact link speed had been negotiated >> (they aren't cumulative

[PATCH 0/5] [media] Add analog mode support for Medion MD95700

2017-08-10 Thread Maciej S. Szmigiero
This series adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo

[PATCH 1/5] [media] cx25840: add pin to pad mapping and output format configuration

2017-08-10 Thread Maciej S. Szmigiero
ut risking compatibility problems. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 413 ++- drivers/media/i2c/cx25840/cx25840-core.h | 11 + drivers/media/i2c/cx25840/cx25840-vbi.c | 3 + drivers/media/pci/ivtv/ivtv-i2c.c

[PATCH 3/5] [media] cx25840: fix a possible divide by zero in set_fmt callback

2017-08-10 Thread Maciej S. Szmigiero
ed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index 2fa74c23d619..c19f39821f46 100644 --- a/drivers/media/i2c/c

[PATCH 2/5] [media] cx25840: describe standard for 0b1100 value in AFD_FMT_STAT bits

2017-08-10 Thread Maciej S. Szmigiero
me entries in an array where chip register -> V4L2 standard mappings are stored. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/c

[PATCH 4/5] [media] tuner-simple: allow setting mono radio mode

2017-08-10 Thread Maciej S. Szmigiero
a FMD1216ME tuner. Signed-off-by: Maciej S. Szmigiero --- drivers/media/tuners/tuner-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/tuners/tuner-simple.c b/drivers/media/tuners/tuner-simple.c index 3339b13dd3f5..568f108efac2 100644 --- a/drivers

[PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700

2017-08-10 Thread Maciej S. Szmigiero
/ mono), * Unplugging while capturing, * DVB / analog coexistence, * Raw BT.656 stream support. What does not work yet: * Audio, * VBI, * Picture controls. Signed-off-by: Maciej S. Szmigiero --- drivers/media/usb/dvb-usb/Kconfig|8 +- drivers/media/usb/dvb-usb/Makefile |2

[PATCH] ARM: dts: imx6qdl-udoo: disable AC'97 input pins pad drivers

2017-11-20 Thread Maciej S. Szmigiero
to match what the board AC'97 CODEC chip (VT1613) has on these pins. Signed-off-by: Maciej S. Szmigiero --- arch/arm/boot/dts/imx6qdl-udoo.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/imx6qdl

[PATCH] ASoC: fsl_ssi: remove duplicated flag setting in fsl_ssi_setup_reg_vals()

2017-11-20 Thread Maciej S. Szmigiero
We don't need to set CCSR_SSI_SIER_RFF0_EN / CCSR_SSI_SIER_TFE0_EN bits in reg->rx.sier / reg->tx.sier variables in a non-AC'97 mode considering we had just initialized these variables to these very values unconditionally a few lines earlier. Signed-off-by: Maciej S. Szmigiero --- sound/s

[PATCH] ASoC: fsl_ssi: call _fsl_ssi_set_dai_fmt() just once in AC'97 mode

2017-11-20 Thread Maciej S. Szmigiero
, this should be necessary only for the very first playback but let's play safe here and make sure that no extra slots are enabled every time a playback is started. Signed-off-by: Maciej S. Szmigiero --- sound/soc/fsl/fsl_ssi.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff

[PATCH 1/2] ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure

2017-11-20 Thread Maciej S. Szmigiero
AC'97 ops (register read / write) need SSI regmap and clock, so they have to be set after them. We also need to set these ops back to NULL if we fail the probe. Signed-off-by: Maciej S. Szmigiero --- sound/soc/fsl/fsl_ssi.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions

[PATCH 2/2] ASoC: fsl_ssi: serialize AC'97 register access operations

2017-11-20 Thread Maciej S. Szmigiero
in this driver takes 100us+ let's use a mutex for this. Use this opportunity to also change a default value returned from AC'97 register read function from -1 to 0, since that's what AC'97 specs require to be returned when unknown / undefined registers are read. Signed-off-by: Maciej S. Szmigiero

Re: [alsa-devel] [PATCH] ASoC: fsl_ssi: call _fsl_ssi_set_dai_fmt() just once in AC'97 mode

2017-11-20 Thread Maciej S. Szmigiero
On 21.11.2017 01:00, Nicolin Chen wrote: > On Mon, Nov 20, 2017 at 11:13:45PM +0100, Maciej S. Szmigiero wrote: (..) >> We need to make sure, however, that only proper channel slots are enabled >> at playback start time since some AC'97 CODECs (like VT1613) were observed >> r

Re: [alsa-devel] [PATCH 1/2] ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure

2017-11-20 Thread Maciej S. Szmigiero
On 21.11.2017 01:32, Nicolin Chen wrote: > On Mon, Nov 20, 2017 at 11:14:55PM +0100, Maciej S. Szmigiero wrote: (..) >> @@ -1460,12 +1460,6 @@ static int fsl_ssi_probe(struct platform_device *pdev) >> sizeof(fsl_ssi_ac97_dai)); >> >>

[PATCH] USB: serial: option: add support for D-Link DWM-157 C1

2017-08-21 Thread Maciej S. Szmigiero
ard NMEA Device" (interface 3), "D-Link HSPA+DataCard Speech Port" (interface 4), "D-Link HSPA+DataCard Debug Port" (interface 5). Signed-off-by: Maciej S. Szmigiero Cc: sta...@vger.kernel.org --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) di

Re: [PATCH] USB: serial: option: add support for D-Link DWM-157 C1

2017-08-28 Thread Maciej S. Szmigiero
Hi Johan, On 28.08.2017 12:19, Johan Hovold wrote: > On Mon, Aug 21, 2017 at 05:43:46PM +0200, Maciej S. Szmigiero wrote: >> This commit adds support (IDs, really) for D-Link DWM-157 hardware version >> C1 USB modem to option driver. >> >> According to manufacture

Re: [v3, 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
On 09.08.2017 06:27, Guenter Roeck wrote: On Wed, Aug 02, 2017 at 01:06:23AM +0200, Maciej S. Szmigiero wrote: This commit splits out chip registers setting code on probe path to separate functions so they can be reused for setting the device properly again when system resumes from suspend

[PATCH v4 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
to in7. This will make it consistent with a similar message that it printed on IT8783. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume

[PATCH v4 2/2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
(and had it wrong again on resume from S3). Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume' parameter. Changes from v2: Code move of common

[PATCH v5 1/2] hwmon: (it87) Split out chip registers setting code on probe path

2017-08-09 Thread Maciej S. Szmigiero
to in7. This will make it consistent with a similar message that it printed on IT8783. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume

[PATCH v5 2/2] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
(and had it wrong again on resume from S3). Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume' parameter. Changes from v2: Code move of common

[PATCH v6] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
(and had it wrong again on resume from S3). Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume' parameter. Changes from v2: Code move of common

[PATCH v7] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
(and had it wrong again on resume from S3). Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Move code of common probe / resume steps to new functions so we don't need to make large parts of probe function conditional on a newly added 'resume' parameter. Changes from v2: Code move of common

<    1   2   3   4   5   6   7   8   9   10   >