[PATCH] ARM: dts: omap3-igep: Change email address in copyright notice

2021-01-18 Thread Javier Martinez Canillas
I've switched employer a long time ago and the mentioned email address no longer exists. Use my personal address to prevent the issue in the future. Signed-off-by: Javier Martinez Canillas --- arch/arm/boot/dts/omap3-igep.dtsi| 2 +- arch/arm/boot/dts/omap3-igep0020-common.dts

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-06 Thread Javier Martinez Canillas
Hello Geert, On 8/6/19 9:30 AM, Geert Uytterhoeven wrote: > On Tue, Aug 6, 2019 at 12:48 AM Javier Martinez Canillas > wrote: >> On 8/1/19 4:17 AM, Masahiro Yamada wrote: >> So I think that we should either: >> >> a) take Kieran's patch or b) remove the i

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-06 Thread Javier Martinez Canillas
Hello Geert, On 8/6/19 9:22 AM, Geert Uytterhoeven wrote: > Hi Javier, > > On Tue, Aug 6, 2019 at 12:25 AM Javier Martinez Canillas > wrote: >> On 7/31/19 9:44 PM, Wolfram Sang wrote: >>> Hi Javier, >>>> The other option is to remove i2c_of_match_d

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-05 Thread Javier Martinez Canillas
most drivers will have >> multiple tables. With the minor change that the I2C device id table is >> not required anymore by the core, but it will be just very useful to >> have? Or? >> >>> If the former is the correct way to solve this then the patch looks go

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-05 Thread Javier Martinez Canillas
e just very useful to > have? Or? > Yes, it won't be needed anymore if you are only instantiating all your devices from your firmware interface (e.g: OF, ACPI). >> If the former is the correct way to solve this then the patch looks good to >> me. >> >> Reviewed-by:

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-07-22 Thread Javier Martinez Canillas
e would be used both for auto-loading and also to match the device when it doesn't have an of_node. If the former is the correct way to solve this then the patch looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

[PATCH] media: staging/imx: Allow driver to build if COMPILE_TEST is enabled

2019-02-19 Thread Javier Martinez Canillas
: Javier Martinez Canillas --- drivers/staging/media/imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig index 36b276ea2ec..5045e24c470 100644 --- a/drivers/staging/media/imx/Kconfig +++ b/drivers

Re: [PATCH 3/3] drivers: use probe_err function in obvious cases

2018-10-16 Thread Javier Martinez Canillas
Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH 2/3] driver core: add deferring probe reason to devices_deferred property

2018-10-16 Thread Javier Martinez Canillas
_probe_msg; > + if (!*p) { > + *p = kmalloc(size, GFP_KERNEL); > + if (!*p) > + goto end; > + } > + n = snprintf(*p, size, "%s %s: ", dev_driver_string(dev), > dev_name(dev)); > + if (n < size) > + vsnprintf(*p + n, size - n, fmt, args); I wonder if the vsnprintf() return value should be checked and print a warning if the message was truncated. Probably 128 is enough for most error messages? Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH 1/3] driver core: add probe_err log helper

2018-10-16 Thread Javier Martinez Canillas
rr(dev, err, ...); > > Signed-off-by: Andrzej Hajda > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH 0/2] media: intel-ipu3: allow the media graph to be used even if a subdev fails

2018-09-17 Thread Javier Martinez Canillas
Hi Tianshu and Sakari, On 9/4/18 1:30 PM, Javier Martinez Canillas wrote: > Hello, > > This series allows the ipu3-cio2 driver to properly expose a subset of the > media graph even if some drivers for the pending subdevices fail to probe. > > Currently the driver exposes a no

[PATCH 0/2] media: intel-ipu3: allow the media graph to be used even if a subdev fails

2018-09-04 Thread Javier Martinez Canillas
.bound callback. The .complete callback is just removed since is empy after that. Best regards, Javier Javier Martinez Canillas (2): [media] v4l: allow to register dev nodes for individual v4l2 subdevs media: intel-ipu3: create pad links and register subdev nodes at bound time drivers/media

[PATCH] tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated

2018-08-30 Thread Javier Martinez Canillas
: 1.2 TPM (device-id 0x0, rev-id 78) tpm tpm0: TPM is disabled/deactivated (0x6) ima: No TPM chip found, activating TPM-bypass! (rc=6) Reported-by: Hans de Goede Signed-off-by: Javier Martinez Canillas --- drivers/char/tpm/tpm-interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 delet

Re: [PATCH] mfd: sec: Export OF module alias table

2018-08-03 Thread Javier Martinez Canillas
Hi Krzysztof, On Wed, Jul 25, 2018 at 5:53 PM, Krzysztof Kozlowski wrote: > In case of Device Tree platforms, even though the Samsung PMIC sec > device is instantiated from DT, the driver is still matched through I2C > module alias. That is because I2C core always reports an I2C module > alias i

[PATCH v4] driver core: add a debugfs entry to show deferred devices

2018-07-08 Thread Javier Martinez Canillas
easier to debug. Signed-off-by: Javier Martinez Canillas Reviewed-by: Andy Shevchenko Reviewed-by: Mark Brown --- Changes since RFC v1: - Remove unneeded ret variable from deferred_devs_show() Changes since RFC v2: - Use DEFINE_SHOW_ATTRIBUTE() macro. - Don't propagate debugfs_create

Re: [PATCH v3] driver core: add a debugfs entry to show deferred devices

2018-07-08 Thread Javier Martinez Canillas
On 07/08/2018 03:22 PM, Greg Kroah-Hartman wrote: > On Sun, Jul 08, 2018 at 03:21:07PM +0200, Greg Kroah-Hartman wrote: >> On Sun, Jul 08, 2018 at 02:32:56AM +0200, Javier Martinez Canillas wrote: >>> With Device Trees (DT), the dependencies of the devices are defined in th

[PATCH v3] driver core: add a debugfs entry to show deferred devices

2018-07-07 Thread Javier Martinez Canillas
easier to debug. Signed-off-by: Javier Martinez Canillas Reviewed-by: Andy Shevchenko Reviewed-by: Mark Brown --- Changes since RFC v1: - Remove unneeded ret variable from deferred_devs_show() Changes since RFC v2: - Use DEFINE_SHOW_ATTRIBUTE() macro. - Don't propagate debugfs_create

Re: [PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-07-07 Thread Javier Martinez Canillas
Hi Greg, On 07/07/2018 05:59 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 28, 2018 at 12:06:56AM +0200, Javier Martinez Canillas wrote: >> With Device Trees (DT), the dependencies of the devices are defined in the >> DT, then the drivers parse that information to lookup the n

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
Hi Andy, On 07/04/2018 06:11 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 4:44 PM, Javier Martinez Canillas > wrote: >> On 07/04/2018 03:24 PM, Nikolaus Voss wrote: > >>> I hope you're still not annoyed... >> Don't worry for that, it's very

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On 07/04/2018 03:24 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >> On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss >> wrote: >>> On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >>>> >>>> On Wed, J

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >> >> On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss >> wrote: >> > > [snip] > >> But this discussion isn't really related to your patch. I th

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] >>> >>> Ok, in my opinion it is an elegant way of not bloating the driver when no >>> explicit handling (e.g. reading DT properties) is needed. Just adding an >>> of_device_id doesn't change any driver functionality then but only maps >

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On Wed, Jul 4, 2018 at 1:26 PM, Javier Martinez Canillas wrote: [snip] >> Ok, in my opinion it is an elegant way of not bloating the driver when no >> explicit handling (e.g. reading DT properties) is needed. Just adding an >> of_device_id doesn't change any driver func

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
Hi Nikolaus, On Wed, Jul 4, 2018 at 1:15 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: [snip] >> I think Nikolaus is correct, assuming that the driver can be used on >> legacy >> platforms that register the I2C devices using board files /

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
d the I2C core now reports of:N*T*Cfoo* solving (2). So the I2C device table isn't required anymore for {OF,ACPI}-only drivers, but it's still required for drivers that support legacy board files that calls i2c_register_board_info() directly. Same for the old .probe callback, it's

[PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-27 Thread Javier Martinez Canillas
easier to debug. Signed-off-by: Javier Martinez Canillas --- Andy, I didn't carry your Reviewed-by tag because it wasn't clear to me if you had agreed with the patch or not from your last email. Changes since RFC v1: - Remove unneeded ret variable from deferred_devs_show() Changes si

Re: [PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-20 Thread Javier Martinez Canillas
[adding Peter Robinson - Fedora IoT Architect to cc list] On 06/20/2018 10:46 AM, Javier Martinez Canillas wrote: > On 06/20/2018 12:51 AM, Greg Kroah-Hartman wrote: > > [snip] > >>> @@ -233,6 +252,9 @@ void device_unblock_probing(void) >>> */ >>>

Re: [PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-20 Thread Javier Martinez Canillas
Hi Andy, On 06/20/2018 01:43 AM, Andy Shevchenko wrote: > On Wed, Jun 20, 2018 at 1:51 AM, Greg Kroah-Hartman > wrote: >> On Tue, Jun 19, 2018 at 10:59:14PM +0200, Javier Martinez Canillas wrote: >>> For debugging purposes it may be useful to know what are the devices who

Re: [PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-20 Thread Javier Martinez Canillas
atch attempts to tell what was left (if any) in the queue after the last driver was registered. Second, is only enabled until late_initcall so it will only print the probe deferral for built-in drivers and not for modules. This patch registers the debugfs entry after the probe debugging has been disabled. > thanks, > > greg k-h > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

[PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Javier Martinez Canillas
For debugging purposes it may be useful to know what are the devices whose probe function was deferred. Add a debugfs entry showing that information. $ cat /sys/kernel/debug/deferred_devices 4807.i2c:twl@48:bci musb-hdrc.0.auto omapdrm.0 Signed-off-by: Javier Martinez Canillas

Re: [RFC PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Javier Martinez Canillas
Hello Andy, Thanks a lot for your feedback. On 06/19/2018 09:55 PM, Andy Shevchenko wrote: > On Tue, Jun 19, 2018 at 10:53 PM, Andy Shevchenko > wrote: >> On Tue, Jun 19, 2018 at 9:33 PM, Javier Martinez Canillas >> wrote: >>> For debugging purposes it may be

[RFC PATCH v2] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Javier Martinez Canillas
For debugging purposes it may be useful to know what are the devices whose probe function was deferred. Add a debugfs entry showing that information. $ cat /sys/kernel/debug/deferred_devices 4807.i2c:twl@48:bci musb-hdrc.0.auto omapdrm.0 Signed-off-by: Javier Martinez Canillas

[RFC PATCH] driver core: add a debugfs entry to show deferred devices

2018-06-19 Thread Javier Martinez Canillas
For debugging purposes it may be useful to know what are the devices whose probe function was deferred. Add a debugfs entry showing that information. $ cat /sys/kernel/debug/deferred_devices 4807.i2c:twl@48:bci musb-hdrc.0.auto omapdrm.0 Signed-off-by: Javier Martinez Canillas

Re: [PATCH v2] Documentation: dt-bindings: Explicitly mark Samsung Exynos SoC bindings as unstable

2018-05-29 Thread Javier Martinez Canillas
same kernel source tree as the kernel image. > > Signed-off-by: Marek Szyprowski > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH v2] Input: atmel_mxt_ts - add missing compatible strings to OF device table

2018-05-02 Thread Javier Martinez Canillas
Hi Dmitry, On 05/01/2018 10:57 PM, Dmitry Torokhov wrote: > From: Javier Martinez Canillas > > Commit af503716ac14 ("i2c: core: report OF style module alias for devices > registered via OF") fixed how the I2C core reports the module alias when > devices are regist

Re: [PATCH v2] regulator: Don't return or expect -errno from of_map_mode()

2018-04-18 Thread Javier Martinez Canillas
id mode. Let's do that. > > Suggested-by: Javier Martinez Canillas > Fixes: 5e5e3a42c653 ("regulator: of: Add support for parsing initial and > suspend modes") > Signed-off-by: Douglas Anderson > --- > > Changes in v2: > - Use Javier's suggestion of defin

Re: [PATCH] regulator: Fix return type of of_map_mode()

2018-04-17 Thread Javier Martinez Canillas
On Tue, Apr 17, 2018 at 7:22 PM, Mark Brown wrote: > On Tue, Apr 17, 2018 at 10:12:04AM -0700, Douglas Anderson wrote: >> In of_get_regulation_constraints() it can clearly be seen that the >> return value of of_map_mode() is assigned to a signed integer. This >> is important because the first thi

[PATCH] kbuild: rpm-pkg: use kernel-install as a fallback for new-kernel-pkg

2018-04-11 Thread Javier Martinez Canillas
The new-kernel-pkg script is only present when grubby is installed, but it may not always be the case. So if the script isn't present, attempt to use the kernel-install script as a fallback instead. Signed-off-by: Javier Martinez Canillas --- scripts/package/mkspec | 2 ++ 1 file chang

[PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table

2018-04-10 Thread Javier Martinez Canillas
style module alias for devices registered via OF") Reported-by: Enric Balletbo i Serra Signed-off-by: Javier Martinez Canillas --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 6 +- drivers/input/touchscreen/atmel_mxt_ts.c | 4 2 files changed, 9 inserti

Re: [PATCH 1/1] efi/libstub: tpm: zero initialize pointer variables for mixed mode

2018-03-13 Thread Javier Martinez Canillas
ddr; > size_t log_size, last_entry_size; > efi_bool_t truncated; > - void *tcg2_protocol; > + void *tcg2_protocol = NULL; > > status = efi_call_early(locate_protocol, &tcg2_guid, NULL, > &tcg2_protocol); > Looks go

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-07 Thread Javier Martinez Canillas
on of shim are you using? And also would be good to know if it's the same shim version that Jeremy is using. > Regards, > > Hans > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH 0/5 V2] tpm: timeouts revamp

2018-03-06 Thread Javier Martinez Canillas
gt;> defined in TCG 1.36 spec. > Probably a typo, since the latest TCG spec version is the 1.38 [0]. > Where can we get that specification? I don't have that new > version and couldn't find it from the public internet. > > /Jarkko > [0]: https://trustedcomputi

Re: [PATCH] i2c: core: report OF style module alias for devices registered via OF

2018-03-05 Thread Javier Martinez Canillas
ugh right away. > > Thanks again! > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH] i2c: core: report OF style module alias for devices registered via OF

2018-03-05 Thread Javier Martinez Canillas
Hello Wolfram, On Sun, Jan 7, 2018 at 2:17 PM, Javier Martinez Canillas wrote: > > On Sun, Dec 3, 2017 at 10:40 PM, Javier Martinez Canillas > wrote: >> The buses should honor the firmware interface used to register the device, >> but the I2C core reports a MODALIAS of t

Re: [PATCH AUTOSEL for 4.9 111/219] ASoc: rt5645: Add OF device ID table

2018-03-05 Thread Javier Martinez Canillas
On Mon, Mar 5, 2018 at 11:42 AM, Mark Brown wrote: > On Sat, Mar 03, 2018 at 10:29:00PM +, Sasha Levin wrote: >> From: Javier Martinez Canillas >> >> [ Upstream commit 9ba2da5f5d18daaa365ab5426b05e16f1d114786 ] >> >> The driver doesn't have a struct of

Re: [PATCH v2] tpm: use kmemdup() to copy the event log

2018-02-20 Thread Javier Martinez Canillas
On 02/20/2018 12:41 PM, Jarkko Sakkinen wrote: > Replaced kmalloc() + memcpy() in tpm_eventlog_efi.c and > tpm_eventlog_of.c. > > Signed-off-by: Jarkko Sakkinen > --- Looks good to me. Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas So

Re: i2c: core: report OF style module alias for devices registered via OF

2018-02-09 Thread Javier Martinez Canillas
Hi Wolfram, On Tue, Jan 16, 2018 at 3:11 PM, Javier Martinez Canillas wrote: > Hello Dmitry, > > On 01/16/2018 02:55 PM, Dmitry Mastykin wrote: >> On Sun, 3 Dec 2017 22:40:50 +0100, Javier Martinez Canillas >> wrote: >> >>> The buses should honor the fir

Re: i2c: core: report OF style module alias for devices registered via OF

2018-01-16 Thread Javier Martinez Canillas
Hello Dmitry, On 01/16/2018 02:55 PM, Dmitry Mastykin wrote: > On Sun, 3 Dec 2017 22:40:50 +0100, Javier Martinez Canillas > wrote: > >> The buses should honor the firmware interface used to register the device, >> but the I2C core reports a MODALIAS of the form i2c: ev

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2018-01-15 Thread Javier Martinez Canillas
On Sun, Jan 14, 2018 at 11:51 AM, Jonathan Cameron wrote: > On Wed, 10 Jan 2018 12:01:07 +0100 > Javier Martinez Canillas wrote: > >> Hello Jonathan, >> >> On Mon, Jan 1, 2018 at 10:53 AM, Jonathan Cameron wrote: >> >> [snip] >> >> > &

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2018-01-10 Thread Javier Martinez Canillas
Hello Dmitry, On Wed, Jan 10, 2018 at 4:51 AM, Dmitry Mastykin wrote: > Hello Johnatan, > May be the issue is the same as Javier Martinez Canillas wrote: > "What is not correct is to require OF-only drivers to have an I2C > device ID table just as a workaround to have the

Re: [PATCH v2] iio: adc: max9611: fix module auto-loading

2018-01-10 Thread Javier Martinez Canillas
Hello Jonathan, On Mon, Jan 1, 2018 at 10:53 AM, Jonathan Cameron wrote: [snip] > > I may well be missing some subtle detail of course having spent only a few > minute looking at this! > Your understanding is correct. This change has nothing to do with module autoloading. The .probe_new callb

Re: [PATCH] i2c: core: report OF style module alias for devices registered via OF

2018-01-07 Thread Javier Martinez Canillas
Hello Wolfram, On Sun, Dec 3, 2017 at 10:40 PM, Javier Martinez Canillas wrote: > The buses should honor the firmware interface used to register the device, > but the I2C core reports a MODALIAS of the form i2c: even for I2C > devices registered via OF. > > This means that user-s

[PATCH v2 1/3] tpm: delete the TPM_TIS_CLK_ENABLE flag

2017-12-24 Thread Javier Martinez Canillas
This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell systems, but the only way this can happen is if the code is not correct. So it's an unnecessary check that just makes the code harder to read. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martinez Canillas

[PATCH v2 0/3] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-24 Thread Javier Martinez Canillas
/patch/10119417/ [3]: git.infradead.org/users/jjs/linux-tpmdd.git Best regards, Javier Javier Martinez Canillas (3): tpm: delete the TPM_TIS_CLK_ENABLE flag tpm: follow coding style for variable declaration in tpm_tis_core_init() tpm: only attempt to disable the LPC CLKRUN if is already en

[PATCH v2 2/3] tpm: follow coding style for variable declaration in tpm_tis_core_init()

2017-12-24 Thread Javier Martinez Canillas
The coding style says "use just one data declaration per line (no commas for multiple data declarations)" so follow this convention. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martinez Canillas Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen --- driver

[PATCH v2 3/3] tpm: only attempt to disable the LPC CLKRUN if is already enabled

2017-12-24 Thread Javier Martinez Canillas
reak other devices that are attached to the LPC bus but don't have support for the CLKRUN protocol. Fixes: 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Javier Martinez Canillas Tested-by: James Ettle Tested-by: Jeffery Miller Reviewed-by: Jarkko Sa

[PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables

2017-12-22 Thread Javier Martinez Canillas
The data field for the entries in the device tables are set but not used. Signed-off-by: Javier Martinez Canillas --- Changes in v2: - Also empty spaces (suggested by Jason Gunthorpe). drivers/char/tpm/tpm_i2c_infineon.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH] tpm: remove unused data fields from I2C and OF device ID tables

2017-12-22 Thread Javier Martinez Canillas
The data field for the entries in the device tables are set but not used. Signed-off-by: Javier Martinez Canillas --- drivers/char/tpm/tpm_i2c_infineon.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm

Re: [PATCH v2 1/5] dt-bindings: at24: consistently document the compatible property

2017-12-21 Thread Javier Martinez Canillas
Hello Peter, On Fri, Dec 22, 2017 at 12:07 AM, Peter Rosin wrote: > On 2017-12-21 21:27, Javier Martinez Canillas wrote: >> Hello Peter, >> >> On Thu, Dec 21, 2017 at 5:20 PM, Peter Rosin wrote: >>> On 2017-12-21 14:48, Bartosz Golaszewski wrote: >>>

Re: [PATCH v2 1/5] dt-bindings: at24: consistently document the compatible property

2017-12-21 Thread Javier Martinez Canillas
Hello Peter, On Thu, Dec 21, 2017 at 5:20 PM, Peter Rosin wrote: > On 2017-12-21 14:48, Bartosz Golaszewski wrote: >> Current description of the compatible property for at24 is quite vague. >> >> Specify an exact list of accepted compatibles and document the - now >> deprecated - strings which we

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-21 Thread Javier Martinez Canillas
Hello Jeffery, On 12/21/2017 06:25 PM, Jeffery Miller wrote: > On Thu, Dec 21, 2017 at 6:46 AM, Javier Martinez Canillas > wrote: >> >> I meant linux-tpmdd + the 4 patches in this series. > > Javier, > I applied the four patches to the linux-tpmdd master 46dd3b2

Re: [PATCH 1/4] tpm: fix access attempt to an already unmapped I/O memory region

2017-12-21 Thread Javier Martinez Canillas
On 12/21/2017 04:39 PM, Shaikh, Azhar wrote: > HI Javier, > > >> -Original Message- >> From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- >> ow...@vger.kernel.org] On Behalf Of Javier Martinez Canillas >> Sent: Thursday, December 21,

Re: [PATCH 1/5] dt-bindings: at24: consistently document the compatible property

2017-12-21 Thread Javier Martinez Canillas
On Thu, Dec 21, 2017 at 2:28 PM, Bartosz Golaszewski wrote: > 2017-12-21 14:19 GMT+01:00 Javier Martinez Canillas : >> Hello Bartosz, >> >> Nice patch. >> >> On Thu, Dec 21, 2017 at 2:08 PM, Bartosz Golaszewski wrote: >>> Current description of the c

Re: [PATCH 5/5] eeprom: at24: extend the list of chips supported in DT

2017-12-21 Thread Javier Martinez Canillas
On Thu, Dec 21, 2017 at 2:08 PM, Bartosz Golaszewski wrote: > Add all supported at24 variants to the of_match table. > > Signed-off-by: Bartosz Golaszewski > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 4/5] dt-bindings: at24: extend the list of supported chips

2017-12-21 Thread Javier Martinez Canillas
of allowed compatible strings. > > Signed-off-by: Bartosz Golaszewski > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 3/5] dt-bindings: at24: fix formatting and style

2017-12-21 Thread Javier Martinez Canillas
On Thu, Dec 21, 2017 at 2:08 PM, Bartosz Golaszewski wrote: > Make formatting and style consistent for the entire document. > > This patch doesn't change the content of the binding. > > Signed-off-by: Bartosz Golaszewski > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 2/5] dt-bindings: at24: add a missing compatible

2017-12-21 Thread Javier Martinez Canillas
On Thu, Dec 21, 2017 at 2:08 PM, Bartosz Golaszewski wrote: > "atmel,spd" is reported by checkpatch as undocumented in the device > tree bindings. Add it to the list of supported compatible strings. > > Signed-off-by: Bartosz Golaszewski > --- Reviewed-by: Javier

Re: [PATCH 1/5] dt-bindings: at24: consistently document the compatible property

2017-12-21 Thread Javier Martinez Canillas
t;catalyst,24c32", > +"microchip,24c128", > +"ramtron,24c64", > +"renesas,r1ex24002", > +"at,24c08", > +"at24,24c08" > + > + will still work, but are now deprecated. > + > + Also: matching by device type alone - while still supported due to > + implementation details in I2C core - is deprecated as well. > I don't think that's correct to mention Linux specific implementation details in a Device Tree binding. It's supposed to be OS independent and in theory the same DT binding could be used in other OS / bootloaders. With that last paragraph removed, feel free to add: Reviewed-by: Javier Martinez Canillas >- reg : the I2C address of the EEPROM > Best regards, Javier

Re: [PATCH 1/4] tpm: fix access attempt to an already unmapped I/O memory region

2017-12-21 Thread Javier Martinez Canillas
Hello Azhar, On 12/20/2017 08:15 PM, Shaikh, Azhar wrote: > > >> -Original Message- >> From: Jason Gunthorpe [mailto:j...@ziepe.ca] >> Sent: Wednesday, December 20, 2017 10:55 AM >> To: Javier Martinez Canillas >> Cc: linux-kernel@vger.kernel

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-21 Thread Javier Martinez Canillas
h the previous patch shared in the other thread and the changes are quite simple so I think it's OK. Again thanks a lot for your help and merry Christmas / happy new year. > Thanks, > James. > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
On 12/20/2017 06:44 PM, Jason Gunthorpe wrote: > On Wed, Dec 20, 2017 at 05:45:16PM +0100, Javier Martinez Canillas wrote: > >> CHP51 says "LPC Clock Control Using the LPC_CLKRUN# May Not Behave As >> Expected" >> and that the implication is that "The SoC m

Re: [PATCH 2/4] tpm: delete the TPM_TIS_CLK_ENABLE flag

2017-12-20 Thread Javier Martinez Canillas
PI used by in lot of places in the kernel, but it's not the case here. But I don't have a strong opinion either, it was Jarkko who questioned the value of the flag so I can drop this patch too if you disagree with the change. I'm mostly interested in PATCH 4/4 that's the actual fix

Re: [PATCH 1/4] tpm: fix access attempt to an already unmapped I/O memory region

2017-12-20 Thread Javier Martinez Canillas
On 12/20/2017 07:08 PM, Jason Gunthorpe wrote: > On Wed, Dec 20, 2017 at 12:35:35PM +0100, Javier Martinez Canillas wrote: >> The driver maps the I/O memory address to control the LPC bus CLKRUN_EN, >> but on the error path the memory is accessed by the .clk_enable handler &g

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
Hello Azhar, On 12/20/2017 04:41 PM, Shaikh, Azhar wrote: > > >> -Original Message----- >> From: Javier Martinez Canillas [mailto:javi...@redhat.com] >> Sent: Wednesday, December 20, 2017 7:31 AM >> To: Shaikh, Azhar ; >> alexander.stef...@infineon.com

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
n.com/dgdl/Infineon-TPM+SLB+9665-DS-v10_15-EN.pdf?fileId=5546d4625185e0e201518b83d9273d87 > section 2.3 Power Management). So as Alexander mentioned CLKRUN is disabled > while TPM transactions are in progress. > Yes I do understand that. Please read my answer to Alexander's ema

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
Hello Alexander, On 12/20/2017 03:07 PM, alexander.stef...@infineon.com wrote: >> Hi Hans, >> >> Thanks a lot for your feedback. >> >> On 12/20/2017 12:43 PM, Hans de Goede wrote: >>> Hi, >>> >>> On 20-12-17 12:35, Javier Martinez Canill

Re: [PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
Hi Hans, Thanks a lot for your feedback. On 12/20/2017 12:43 PM, Hans de Goede wrote: > Hi, > > On 20-12-17 12:35, Javier Martinez Canillas wrote: >> Hello, >> >> Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") >> added logic i

[PATCH 4/4] tpm: only attempt to disable the LPC CLKRUN if is already enabled

2017-12-20 Thread Javier Martinez Canillas
reak other devices that are attached to the LPC bus but don't have support for the CLKRUN protocol. Fixes: 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Javier Martinez Canillas Tested-by: James Ettle --- This patch fixes the bug reported for the

[PATCH 1/4] tpm: fix access attempt to an already unmapped I/O memory region

2017-12-20 Thread Javier Martinez Canillas
resources in the inverse order that were acquired to prevent issues like these. Signed-off-by: Javier Martinez Canillas --- drivers/char/tpm/tpm_tis_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c

[PATCH 3/4] tpm: follow coding style for variable declaration in tpm_tis_core_init()

2017-12-20 Thread Javier Martinez Canillas
The coding style says "use just one data declaration per line (no commas for multiple data declarations)" so follow this convention. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martinez Canillas --- drivers/char/tpm/tpm_tis_core.c | 4 +++- 1 file changed, 3 insertions(+),

[PATCH 2/4] tpm: delete the TPM_TIS_CLK_ENABLE flag

2017-12-20 Thread Javier Martinez Canillas
This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell systems, but the only way this can happen is if the code is not correct. So it's an unnecessary check that just makes the code harder to read. Suggested-by: Jarkko Sakkinen Signed-off-by: Javier Martine

[PATCH 0/4] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2017-12-20 Thread Javier Martinez Canillas
gzilla.redhat.com/show_bug.cgi?id=1498987 [1]: https://bugzilla.kernel.org/show_bug.cgi?id=197287 [2]: https://patchwork.kernel.org/patch/10119417/ [3]: git.infradead.org/users/jjs/linux-tpmdd.git Best regards, Javier Javier Martinez Canillas (4): tpm: fix access attempt to an already un

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-19 Thread Javier Martinez Canillas
On 12/19/2017 02:10 PM, Jarkko Sakkinen wrote: > On Tue, Dec 19, 2017 at 12:34:46AM +0100, Javier Martinez Canillas wrote: >> Hello Jason, >> >> On 12/18/2017 09:19 PM, Jason Gunthorpe wrote: >>> On Mon, Dec 18, 2017 at 07:34:29PM +, Shaikh, Azhar wrote: >>&

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-19 Thread Javier Martinez Canillas
Hello Jarkko, On 12/19/2017 01:59 PM, Jarkko Sakkinen wrote: > James, Javier, thank you for sorting this out. I'll just have couple of > minor comments on the patch. > > On Mon, Dec 18, 2017 at 01:22:28PM +0100, Javier Martinez Canillas wrote: >> +u32 vendor, intfca

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
ge is that TPM devices with CLKRUN protocol support could make use of the CLKRUN power management feature and only systems with a TPM that doesn't support the CLKRUN protocol will disable it. The disadvantage is that the struct dmi_system_id array to match will have to be maintained a

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
Hello Azhar, On 12/18/2017 08:34 PM, Shaikh, Azhar wrote: > > >> -Original Message----- >> From: Javier Martinez Canillas [mailto:javi...@redhat.com] >> Sent: Monday, December 18, 2017 11:30 AM >> To: Jason Gunthorpe >> Cc: Jarkko Sakkinen ; James Ettle

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
ume - PASS > > Let me know if you want any further tests. > Great, thanks a lot for testing! > Many thanks, > James. > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
Hello Jason, Thanks a lot for your feedback. On 12/18/2017 06:55 PM, Jason Gunthorpe wrote: > On Mon, Dec 18, 2017 at 01:29:01PM +0100, Javier Martinez Canillas wrote: >> On 12/18/2017 01:22 PM, Javier Martinez Canillas wrote: >> >> [snip] >> >>> >&g

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
On 12/18/2017 01:22 PM, Javier Martinez Canillas wrote: [snip] > > James, > > Can you please test the following (untested) patch on top of the other two > mentioned patches to see if it makes a difference for you? > I should had tried to at least compile the patch :) U

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
17 at 08:08:58PM +0100, Javier Martinez Canillas wrote: >>>> >>>>> Although probably reverting the offending commits is the right thing to do >>>>> until a proper solution is proposed. >>>> >>>> Yes, if a fix is not forthcoming s

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
On 12/16/2017 09:59 PM, Javier Martinez Canillas wrote: > On 12/16/2017 06:01 PM, Jarkko Sakkinen wrote: >> On Fri, 2017-12-15 at 10:38 -0700, Jason Gunthorpe wrote: >>> On Fri, Dec 15, 2017 at 04:56:30PM +0200, Jarkko Sakkinen wrote: >>>> On Thu, Dec 14, 2017 at 12:

Re: [PATCH] tpm: remove type and name fields from the I2C Infineon OF table entries

2017-12-17 Thread Javier Martinez Canillas
Hello Jarkko, On 12/17/2017 05:27 PM, Jarkko Sakkinen wrote: [snip] > > Thank you for the lessons :-) > You are welcome :) > Reviewed-by: Jarkko Sakkinen > Thanks! > /Jarkko > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-16 Thread Javier Martinez Canillas
ikely to come this weekend. So we may end with Braswell system being non-function for 3 kernel releases... As mentioned I can write a patch to hide this behavior under a Kconfig option that's disabled by default (and maybe depend on BROKEN) or a module parameter until a proper solution is found. > /Jarkko > Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [PATCH] tpm: remove type and name fields from the I2C Infineon OF table entries

2017-12-16 Thread Javier Martinez Canillas
On 12/15/2017 01:03 PM, Jarkko Sakkinen wrote: > Hi > > Some basic questions about DT, which I'm not expert of. > > On Mon, Dec 04, 2017 at 06:39:16PM +0100, Javier Martinez Canillas wrote: >> The commit 21dc02eab989 ("tpm/tpm_i2c_infineon.c: Add OF att

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-14 Thread Javier Martinez Canillas
g the TPM device. Although probably reverting the offending commits is the right thing to do until a proper solution is proposed. Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [RESEND PATCH] partial revert of "[media] tvp5150: add HW input connectors support"

2017-12-14 Thread Javier Martinez Canillas
Hello Mauro, On 12/14/2017 06:02 PM, Mauro Carvalho Chehab wrote: > Em Wed, 6 Dec 2017 01:33:05 +0100 > Javier Martinez Canillas escreveu: > >> Commit f7b4b54e6364 ("[media] tvp5150: add HW input connectors support") >> added input signals support for the tvp5

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-14 Thread Javier Martinez Canillas
> I already suggested the same [0], but James said that made no difference [1]. > /Jarkko > [0]: https://lkml.org/lkml/2017/12/12/268 [1]: https://lkml.org/lkml/2017/12/12/1127 Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-12 Thread Javier Martinez Canillas
Hello Jason, On 12/12/2017 07:57 PM, Jason Gunthorpe wrote: > On Tue, Dec 12, 2017 at 12:38:00PM +0100, Javier Martinez Canillas wrote: > >> I'm not familiar with LPC so please let me know if my assumptions are wrong, >> but I find suspicious that a driver for a single dev

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-12 Thread Javier Martinez Canillas
mand. Not sure if that will make things better or worse for you, but it would be good to try in case it makes a difference. [0]: http://git.infradead.org/users/jjs/linux-tpmdd.git/commit/667dcc75be864ff4c17cf58891853b7393bba3e2 [1]: http://git.infradead.org/users/jjs/linux-tpmdd.git/commit/db

Re: [PATCH v2] ARM: dts: exynos: Enable Mixer node for Exynos5800 Peach Pi machine

2017-12-12 Thread Javier Martinez Canillas
>>> wrote: >>>> On Tue, Dec 12, 2017 at 8:42 AM, Javier Martinez Canillas >>>> wrote: >>>>> Commit 1cb686c08d12 ("ARM: dts: exynos: Add status property to Exynos 542x >>>>> Mixer nodes") disabled the Mixer node by default i

  1   2   3   4   5   6   7   8   9   10   >