[PATCH] xhci-pci: Allow host runtime PM as default for Intel Alder Lake xHCI

2021-04-06 Thread Azhar Shaikh
-off-by: Azhar Shaikh --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 5bbccc9a0179..a858add8436c 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -57,6

[PATCH v5 0/3] TypeC Connector Class driver improvements

2020-08-21 Thread Azhar Shaikh
'USB_ROLE_HOST in case of UFP.' to 'USB_ROLE_HOST in case of DFP.' * Patch 2: "platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect" - New patch added. Azhar Shaikh (3): platform/chrome: cros_ec_typec: Send enum values to usb_role_swi

[PATCH v5 1/3] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-08-21 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of DFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh Cc: Prashant Malani Reviewed-by: Prashant Malani Reviewed-by: Heikki Krogerus --- Changes in v5: - Rebased on top of https://lkm

[PATCH v5 3/3] platform/chrome: cros_ec_typec: Re-order connector configuration steps

2020-08-21 Thread Azhar Shaikh
before the connector and mux are configured. Signed-off-by: Azhar Shaikh Reviewed-by: Prashant Malani Reviewed-by: Heikki Krogerus --- Changes in v5: - Rebased on top of https://lkml.org/lkml/2020/7/10/1063 - Added Reviewed-by from v4 Changes in v4: - No change Changes in v3: - New patch

[PATCH v5 2/3] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-08-21 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Suggested-by: Prashant Malani Signed-off-by: Azhar Shaikh Reviewed-by: Heikki Krogerus

[PATCH v4 1/3] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-08-20 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of DFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh Cc: Prashant Malani Reviewed-by: Prashant Malani Reviewed-by: Heikki Krogerus --- Changes in v4: - Remove extra line bet

[PATCH v4 3/3] platform/chrome: cros_ec_typec: Re-order connector configuration steps

2020-08-20 Thread Azhar Shaikh
before the connector and mux are configured. Signed-off-by: Azhar Shaikh --- Changes in v4: - No change Changes in v3: - New patch added drivers/platform/chrome/cros_ec_typec.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/platform/chrome

[PATCH v4 0/3] TypeC Connector Class driver improvements

2020-08-20 Thread Azhar Shaikh
ssage to change 'USB_ROLE_HOST in case of UFP.' to 'USB_ROLE_HOST in case of DFP.' * Patch 2: "platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect" - New patch added. Azhar Shaikh (3): platform/chrome: cros_ec_typec: Send enum values to usb

[PATCH v4 2/3] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-08-20 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Suggested-by: Prashant Malani Signed-off-by: Azhar Shaikh --- Changes in v4: - Added

[PATCH v3 0/3] TypeC Connector Class driver improvements

2020-08-11 Thread Azhar Shaikh
me: cros_ec_typec: Send enum values to usb_role_switch_set_role()" - Update the commit message to change 'USB_ROLE_HOST in case of UFP.' to 'USB_ROLE_HOST in case of DFP.' * Patch 2: "platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect" - New

[PATCH v3 1/3] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-08-11 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of DFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh --- Changes in v3: - No changes Changes in v2: - Update the commit message to change 'USB_ROLE_HOST in case

[PATCH v3 3/3] platform/chrome: cros_ec_typec: Re-order connector configuration steps

2020-08-11 Thread Azhar Shaikh
before the connector and mux are configured. Signed-off-by: Azhar Shaikh --- Changes in v3: - New patch added drivers/platform/chrome/cros_ec_typec.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform

[PATCH v3 2/3] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-08-11 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Signed-off-by: Azhar Shaikh --- Changes in v3: - Move the location of calling

[PATCH v2 0/2] TypeC Connector Class driver improvements

2020-07-30 Thread Azhar Shaikh
etting usb role twice during disconnect" * New patch added. Azhar Shaikh (2): platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role() platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect drivers/platform/chrome

[PATCH v2 2/2] platform/chrome: cros_ec_typec: Avoid setting usb role during disconnect

2020-07-30 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Signed-off-by: Azhar Shaikh Suggested-by: Prashant Malani --- drivers/platform/chrome

[PATCH v2 1/2] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-07-30 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of DFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh Cc: Prashant Malani Reviewed-by: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 3 ++- 1 file changed, 2 insert

[PATCH v2 1/2] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-07-30 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of DFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh Cc: Prashant Malani Reviewed-by: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 3 ++- 1 file changed, 2 insert

[PATCH] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-07-30 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Signed-off-by: Azhar Shaikh Suggested-by: Prashant Malani --- drivers/platform/chrome

[PATCH v2 0/2] TypeC Connector Class driver improvements

2020-07-30 Thread Azhar Shaikh
etting usb role twice during disconnect" * New patch added. Azhar Shaikh (2): platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role() platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect drivers/platform/chrome

[PATCH] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-07-28 Thread Azhar Shaikh
as USB_ROLE_DEVICE in case of UFP and USB_ROLE_HOST in case of UFP. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Signed-off-by: Azhar Shaikh Cc: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v8 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-01-01 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.co

[PATCH v8 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-01-01 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen ---

[PATCH v8 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2018-01-01 Thread Azhar Shaikh
on. Changes from v7: - Patch 1: "tpm_tis: Move ilb_base_addr to tpm_tis_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Remove unused variables warnings from tpm_tis_pnp_remove() and tpm_tis_plat_remove() (Suggested by S

[PATCH v8 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2018-01-01 Thread Azhar Shaikh
on. Changes from v7: - Patch 1: "tpm_tis: Move ilb_base_addr to tpm_tis_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Remove unused variables warnings from tpm_tis_pnp_remove() and tpm_tis_plat_remove() (Sugg

[PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sak

[PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16

[PATCH v7 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-12-22 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/char

[PATCH v7 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-12-22 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sak

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-12-22 Thread Azhar Shaikh
abled throughout the duration of transmit_cmd()" - chip->ops was set to NULL in tpm_del_char_device() called from tpm_chip_unregister() in error/driver exit path. Fix this code. (Suggested by Javier Martinez Canillas and Jason Gunthorpe) - Add a comment in tpm_tis_clkrun_enable() fu

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-12-22 Thread Azhar Shaikh
abled throughout the duration of transmit_cmd()" - chip->ops was set to NULL in tpm_del_char_device() called from tpm_chip_unregister() in error/driver exit path. Fix this code. (Suggested by Javier Martinez Canillas and Jason Gunthorpe) - Add a comment in tpm_tis_clkrun_enable() fu

[PATCH v7 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-12-22 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/char/tpm/t

[PATCH v7 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-12-22 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16

[PATCH v2] tpm: Fix the driver cleanup code

2017-12-21 Thread Azhar Shaikh
1339284353c41 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()") Suggested-by: Javier Martinez Canillas <javi...@redhat.com> Suggested-by: Jason Gunthorpe <j...@ziepe.ca> Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes in v2: - R

[PATCH v2] tpm: Fix the driver cleanup code

2017-12-21 Thread Azhar Shaikh
1339284353c41 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()") Suggested-by: Javier Martinez Canillas Suggested-by: Jason Gunthorpe Signed-off-by: Azhar Shaikh --- Changes in v2: - Remove TPM_CHIP_FLAG_DO_NOT_CLEAR_OPS flag, instead call tpm_tis_c

[PATCH] tpm: Fix the driver cleanup code

2017-12-21 Thread Azhar Shaikh
1339284353c41 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()") Suggested-by: Javier Martinez Canillas <javi...@redhat.com> Suggested-by: Jason Gunthorpe <j...@ziepe.ca> Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tp

[PATCH] tpm: Fix the driver cleanup code

2017-12-21 Thread Azhar Shaikh
1339284353c41 ("tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()") Suggested-by: Javier Martinez Canillas Suggested-by: Jason Gunthorpe Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm-chip.c | 5 + drivers/char/tpm/tpm.h | 1 + drivers/char/

[PATCH v6 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-12-06 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/cha

[PATCH v6 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-12-06 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/char/tpm/

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-12-06 Thread Azhar Shaikh
is_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Update the commit message. Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm: Keep CLKRUN enabled throughout the duration o

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-12-06 Thread Azhar Shaikh
is_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Update the commit message. Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm: Keep CLKRUN enabled throughout the duration o

[PATCH v6 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-12-06 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3

[PATCH v6 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-12-06 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3 files changed, 56 insertions(+), 48

[PATCH v6 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-29 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/cha

[PATCH v6 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-29 Thread Azhar Shaikh
ing and re-enabling the CLKRUN protocol, instead of doing for every TPM transaction. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/char/tpm/

[PATCH v6 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-11-29 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-29 Thread Azhar Shaikh
is_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Update the commit message. Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm: Keep CLKRUN enabled throughout the duration o

[PATCH v6 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-11-29 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3 files changed, 56 insertions(+), 48

[PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-29 Thread Azhar Shaikh
is_data" - No changes - Patch 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Update the commit message. Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm: Keep CLKRUN enabled throughout the duration o

[PATCH v5 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-11-27 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3

[PATCH v5 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2017-11-27 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 - drivers/char/tpm/tpm_tis_core.h | 13 +++ 3 files changed, 56 insertions(+), 48

[PATCH v5 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-27 Thread Azhar Shaikh
ble and re-enable CLKRUN protocol for every TPM access. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/cha

[PATCH v5 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-27 Thread Azhar Shaikh
ble and re-enable CLKRUN protocol for every TPM access. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm-interface.c | 6 +++ drivers/char/tpm/tpm_tis.c | 86 +-

[PATCH v5 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-27 Thread Azhar Shaikh
h 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Remove the functions tpm_platform_begin_xfer() and tpm_platform_end_xfer() - Move the code from these functions to tpm_tis_clkrun_enable(). Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm:

[PATCH v5 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-27 Thread Azhar Shaikh
h 2: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Remove the functions tpm_platform_begin_xfer() and tpm_platform_end_xfer() - Move the code from these functions to tpm_tis_clkrun_enable(). Azhar Shaikh (2): tpm_tis: Move ilb_base_addr to tpm_tis_data tpm:

[PATCH v4 1/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-21 Thread Azhar Shaikh
ble and re-enable CLKRUN protocol for every TPM access. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakki...@linux.intel.com> --- drivers/char/tpm/tpm-inter

[PATCH v4 1/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2017-11-21 Thread Azhar Shaikh
ble and re-enable CLKRUN protocol for every TPM access. Fixes: 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 6 ++ drivers/char/tpm/

[PATCH v4 0/2] ] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-21 Thread Azhar Shaikh
ved the #ifdef CONFIG_X86 from all other places around is_bsw() Changes from v3: - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Change function name from clk_toggle to clk_enable - Update the commit message. - Patch 2: "tpm_tis: Move ilb_base_ad

[PATCH v4 0/2] ] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-21 Thread Azhar Shaikh
ved the #ifdef CONFIG_X86 from all other places around is_bsw() Changes from v3: - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Change function name from clk_toggle to clk_enable - Update the commit message. - Patch 2: "tpm_tis: Move ilb_base_ad

[PATCH v4 2/2] tpm_tis: Move ilb_base_addr to tpm_tis_tcg_phy

2017-11-21 Thread Azhar Shaikh
Move the static variable ilb_base_addr to tpm_tis_tcg_phy. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm_tis.c | 67 ++ 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/d

[PATCH v4 2/2] tpm_tis: Move ilb_base_addr to tpm_tis_tcg_phy

2017-11-21 Thread Azhar Shaikh
Move the static variable ilb_base_addr to tpm_tis_tcg_phy. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 67 ++ 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c

[PATCH v2] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Azhar Shaikh
() to cleanup_tis() after all TPM access are completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Do error handling in init_ts(). - Update the commit message. drivers/char/tpm/tpm_tis.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-)

[PATCH v2] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Azhar Shaikh
() to cleanup_tis() after all TPM access are completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Do error handling in init_ts(). - Update the commit message. drivers/char/tpm/tpm_tis.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/char

[PATCH] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Azhar Shaikh
() to cleanup_tis(). Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm_tis.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 506e62ca3576..3224db80816a 100644 --- a/d

[PATCH] tpm: Fix the ioremap() call for Braswell systems

2017-06-22 Thread Azhar Shaikh
() to cleanup_tis(). Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm_tis.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 506e62ca3576..3224db80816a 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b

[PATCH v5] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-18 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Add CONFIG_X86 around disable_lpc_c

[PATCH v5] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-18 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Add CONFIG_X86 around disable_lpc_clk_run() and enable_lpc_clk_run() to avoid - build

[PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-14 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Add CONFIG_X86 around disable_lpc_c

[PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-14 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Add CONFIG_X86 around disable_lpc_clk_run() and enable_lpc_clk_run() to avoid - build

[PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-08 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Add CONFIG_X86 around disable_lpc_c

[PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-08 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Add CONFIG_X86 around disable_lpc_clk_run () and enable_lpc_clk_run() to avoid - build

[PATCH v3] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-07 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Add CONFIG_X86 around disable_lpc_c

[PATCH v3] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-07 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Add CONFIG_X86 around disable_lpc_clk_run () and enable_lpc_clk_run() to avoid - build

[PATCH v2] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-01 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes from v1: - Add CONFIG_X86 around disable_lpc_c

[PATCH v2] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-01 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- Changes from v1: - Add CONFIG_X86 around disable_lpc_clk_run () and enable_lpc_clk_run() to avoid - build

[PATCH] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-01 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/char/tpm/tpm.h | 20 +++ drivers/char/tpm/tpm_tis.

[PATCH] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-01 Thread Azhar Shaikh
To overcome a hardware limitation on Intel Braswell systems, disable CLKRUN protocol during TPM transactions and re-enable once the transaction is completed. Signed-off-by: Azhar Shaikh --- drivers/char/tpm/tpm.h | 20 +++ drivers/char/tpm/tpm_tis.c | 85

[PATCH v2 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-29 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes in v2: - Rebased the patch on top of 'next' branch. - No code change. drivers/mmc/host/sdhci-acpi.c | 6 ++ 1 file changed, 2 insertions(+), 4 del

[PATCH v2 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-29 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh --- Changes in v2: - Rebased the patch on top of 'next' branch. - No code change. drivers/mmc/host/sdhci-acpi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-29 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- Changes in v2: - Rebased the patch on top of 'next' branch. - No code change. drivers/mmc/host/sdhci-pci-core.c | 7 +++ 1 file changed, 3 insertions

[PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-29 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh --- Changes in v2: - Rebased the patch on top of 'next' branch. - No code change. drivers/mmc/host/sdhci-pci-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-28 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/mmc/host/sdhci-acpi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-

[PATCH 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-28 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/mmc/host/sdhci-pci-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host

[PATCH 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-28 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh --- drivers/mmc/host/sdhci-pci-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 86560d5

[PATCH 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-28 Thread Azhar Shaikh
Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card controllers. Signed-off-by: Azhar Shaikh --- drivers/mmc/host/sdhci-acpi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 9dcb704..a15d237

[PATCH] mfd: intel-lpss: Do not put device in reset state on suspend

2016-10-12 Thread Azhar Shaikh
and serial console both hang. The resetting of device is not needed while going to suspend. Hence remove this code. Fixes: 41a3da2b8e163 ("mfd: intel-lpss: Save register context on suspend") Signed-off-by: Azhar Shaikh <azhar.sha...@intel.com> --- drivers/mfd/intel-lpss.c | 3 --- 1

[PATCH] mfd: intel-lpss: Do not put device in reset state on suspend

2016-10-12 Thread Azhar Shaikh
and serial console both hang. The resetting of device is not needed while going to suspend. Hence remove this code. Fixes: 41a3da2b8e163 ("mfd: intel-lpss: Save register context on suspend") Signed-off-by: Azhar Shaikh --- drivers/mfd/intel-lpss.c | 3 --- 1 file changed, 3 deletions(-)