[PATCH] USB:ehci:fix ehci hardware problem

2021-04-08 Thread Longfang Liu
accordance with the controller standard. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3c3820a..5dc6821 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host

[PATCH 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-08 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of kunpeng920 needs to be added to the whitelist without SBRN register. Signed-off-by: Longfan

[PATCH 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-08 Thread Longfang Liu
. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3c3820a..6a30afa 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb

[PATCH] USB:ehci:fix ehci hardware problem

2021-04-08 Thread Longfang Liu
generation Kunpeng930, we will define this SBRN register in accordance with the controller standard. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb

[PATCH 0/2] USB:ehci:fix the no SRBN register problem

2021-04-08 Thread Longfang Liu
(1) Add a whitelist for EHCI devices without SBRN registers. (2) Add Kunpeng920's EHCI device to the whitelist. Longfang Liu (2): USB:ehci:Add a whitelist for EHCI controllers USB:ehci:fix Kunpeng920 ehci hardware problem drivers/usb/host/ehci-pci.c | 29 +--

[PATCH 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-08 Thread Longfang Liu
. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3c3820a..6a30afa 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb

[PATCH 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-08 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of kunpeng920 needs to be added to the whitelist without SBRN register. Signed-off-by: Longfan

[PATCH 0/2] USB:ehci:fix the no SRBN register problem

2021-04-08 Thread Longfang Liu
(1) Add a whitelist for EHCI devices without SBRN registers. (2) Add Kunpeng920's EHCI device to the whitelist. Longfang Liu (2): USB:ehci:Add a whitelist for EHCI controllers USB:ehci:fix Kunpeng920 ehci hardware problem drivers/usb/host/ehci-pci.c | 29 +--

[PATCH v2 0/2] USB:ehci:fix the no SRBN register problem

2021-04-08 Thread Longfang Liu
(1) Add a whitelist for EHCI devices without SBRN registers. (2) Add Kunpeng920's EHCI device to the whitelist. Changes in v2: - Fix some code style issues. - Update function name. Longfang Liu (2): USB:ehci:Add a whitelist for EHCI controllers USB:ehci:fix Kunpeng920

[PATCH v2 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-08 Thread Longfang Liu
. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3c3820a..534e906 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb

[PATCH v2 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-08 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of kunpeng920 needs to be added to the whitelist without SBRN register. Signed-off-by: Longfan

[PATCH v3 0/2] USB:ehci:fix the no SRBN register problem

2021-04-08 Thread Longfang Liu
(1) Add a whitelist for EHCI devices without SBRN registers. (2) Add Kunpeng920's EHCI device to the whitelist. Changes in v3: - Fix some code style issues. - Update struct name. Changes in v2: - Fix some code style issues. - Update function name. Longfang L

[PATCH v3 2/2] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-08 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of kunpeng920 needs to be added to the whitelist without SBRN register. Signed-off-by: Longfan

[PATCH v3 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-08 Thread Longfang Liu
. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-pci.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3c3820a..f7f3156 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb

[PATCH v2] USB:ohci:fix ohci interruption problem

2021-04-09 Thread Longfang Liu
lution is to specify freeze interface in this mode to perform normal suspend_common() operations, and call ohci_suspend() after check_root_hub_suspend() is executed through the suspend_common() operation. Signed-off-by: Longfang Liu --- Changes in V2: - Modify comment and patch v

[PATCH v4] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-09 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of Kunpeng920 needs to skip the read operation of the SBRN register. Signed-off-by: Longfang Liu --- Ch

[PATCH v4] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-09 Thread Longfang Liu
cause the EHCI interrupt signal to not be turned off after reboot. this interrupt that is not closed will cause an exception to the device sharing the interrupt. Therefore, the EHCI controller of Kunpeng920 needs to skip the read operation of the SBRN register. Signed-off-by: Longfang Liu --- Ch

[PATCH 2/3] crypto: hisilicon/sec - fixes some driver coding style

2021-02-05 Thread Longfang Liu
cleanup static check errors for SEC Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++- 1 file changed, 76 insertions(+), 55 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2

[RFC PATCH] USB:XHCI:Modify XHCI driver for USB2.0 controller

2021-02-26 Thread Longfang Liu
follows, an error will occur. Is there any other modification method? Signed-off-by: Longfang Liu --- drivers/usb/host/xhci-pci.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index ef513c2..7296aad

[PATCH v2] USB:ehci:fix an interrupt calltrace error

2021-01-11 Thread Longfang Liu
: Longfang Liu --- Changes in v2: - updated cleared registers drivers/usb/host/ehci-hub.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index ce0eaf7..a99c1ac 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c

[PATCH v2] USB:ehci:fix an interrupt calltrace error

2021-01-11 Thread Longfang Liu
: Longfang Liu Acked-by: Alan Stern --- Changes in v2: - updated cleared registers drivers/usb/host/ehci-hub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index ce0eaf7..6dfbba1 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers

[RFC PATCH] USB:XHCI:Adjust the log level of hub

2021-03-25 Thread Longfang Liu
information. Signed-off-by: Longfang Liu --- drivers/usb/core/hub.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index b1e14be..70294ad 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1409,13 +1409,11

[PATCH v3 0/2] crypto:hisilicon/sec - fixes some coding style

2021-03-03 Thread Longfang Liu
1. Fix a problems. 2. Fix some coding style. Changes v2 -> v3: - Delete shash test error patch. Changes v1 -> v2: - Modify the way to fix shash test error. Longfang Liu (2): crypto: hisilicon/sec - fixes some log printing style crypto: hisilicon/sec - fixes some driver coding

[PATCH v3 2/2] crypto: hisilicon/sec - fixes some driver coding style

2021-03-03 Thread Longfang Liu
cleanup static check errors for SEC Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++- 1 file changed, 76 insertions(+), 55 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2

[PATCH v3 1/2] crypto: hisilicon/sec - fixes some log printing style

2021-03-03 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 - 3

[PATCH v2] crypto: hisilicon/sec - Fix a module parameter error

2021-03-30 Thread Longfang Liu
registered algorithms cannot be used. Therefore, when PF or VF is initialized, if the number of qp queues is not enough to create a ctx, the kernel mode cannot be used, and there is no need to register the kernel mode algorithms. Signed-off-by: Longfang Liu --- Changes in V2: - Add algorithms

[RFC PATCH] USB:ohci:fix ohci interruption problem

2021-03-26 Thread Longfang Liu
call ohci_suspend() directly during the sleep process of S4. Do you have any suggestions for this modification? Signed-off-by: Longfang Liu --- drivers/usb/host/ohci-hub.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb

[PATCH] crypto: hisilicon/sec - Fix a module parameter error

2021-03-27 Thread Longfang Liu
registered algorithms cannot be used. Therefore, when PF or VF is initialized, if the number of qp queues is not enough to create a ctx, the kernel mode cannot be used, and there is no need to register the kernel mode algorithms. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c

[PATCH] crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem

2021-03-27 Thread Longfang Liu
The input data of the ECB (AES) algorithm needs to be aligned with 16 bytes, and the input data of the XTS (AES) algorithm is at least 16 bytes. Otherwise the SEC hardware will go wrong. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 37

[PATCH] crypto: hisilicon/sec - Fix a module parameter error

2021-03-27 Thread Longfang Liu
registered algorithms cannot be used. Therefore, when PF or VF is initialized, if the number of qp queues is not enough to create a ctx, the kernel mode cannot be used, and there is no need to register the kernel mode algorithms. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c

[PATCH] crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem

2021-03-27 Thread Longfang Liu
The input data of the ECB (AES) algorithm needs to be aligned with 16 bytes, and the input data of the XTS (AES) algorithm is at least 16 bytes. Otherwise the SEC hardware will go wrong. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 37

[RFC PATCH] USB:XHCI:skip hub registration

2021-04-15 Thread Longfang Liu
flags when the hub is initialized. Signed-off-by: Longfang Liu --- drivers/usb/core/hub.c | 6 ++ drivers/usb/host/xhci-pci.c | 4 drivers/usb/host/xhci.c | 5 + drivers/usb/host/xhci.h | 1 + include/linux/usb/hcd.h | 1 + 5 files changed, 17 insertions(+) diff --

[RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the compatibility check is passed, it will enter the Stop-and-copy stage. At this time, all the live migration data will be copied, and then saved to the VF device of the destination, and then the VF device of the destination will be started and the VM of the source will be exited. Longfang Liu (3

[RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-12 Thread Longfang Liu
Register the live migration driver of the accelerator module to vfio Signed-off-by: Longfang Liu Reviewed-by: Zengtao --- drivers/vfio/pci/vfio_pci.c | 11 +++ drivers/vfio/pci/vfio_pci_private.h | 10 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/vfio/pci

[RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver

2021-04-12 Thread Longfang Liu
Add debugfs debugging interface to live migration driver Signed-off-by: Longfang Liu Reviewed-by: Zengtao --- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++ drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 + 2 files changed, 195 insertions(+) diff --git a

[RFC PATCH 1/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the migration data. (3).Operation and data processing of accelerator hardware devices Signed-off-by: Longfang Liu Reviewed-by: Zengtao --- drivers/vfio/pci/Kconfig |9 + drivers/vfio/pci/Makefile |3 +- drivers/vfio/pci/hisilicon

[RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-12 Thread Longfang Liu
Register the live migration driver of the accelerator module to vfio Signed-off-by: Longfang Liu --- drivers/vfio/pci/vfio_pci.c | 11 +++ drivers/vfio/pci/vfio_pci_private.h | 10 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers

[RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver

2021-04-12 Thread Longfang Liu
Add debugfs debugging interface to live migration driver Signed-off-by: Longfang Liu --- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++ drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 + 2 files changed, 195 insertions(+) diff --git a/drivers/vfio/pci

[RFC PATCH 1/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the migration data. (3).Operation and data processing of accelerator hardware devices Signed-off-by: Longfang Liu --- drivers/vfio/pci/Kconfig |9 + drivers/vfio/pci/Makefile |3 +- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 1164

[RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the compatibility check is passed, it will enter the Stop-and-copy stage. At this time, all the live migration data will be copied, and then saved to the VF device of the destination, and then the VF device of the destination will be started and the VM of the source will be exited. Longfang Liu (3

[RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-12 Thread Longfang Liu
Register the live migration driver of the accelerator module to vfio Signed-off-by: Longfang Liu --- drivers/vfio/pci/vfio_pci.c | 11 +++ drivers/vfio/pci/vfio_pci_private.h | 9 + 2 files changed, 20 insertions(+) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers

[RFC PATCH 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the compatibility check is passed, it will enter the Stop-and-copy stage. At this time, all the live migration data will be copied, and then saved to the VF device of the destination, and then the VF device of the destination will be started and the VM of the source will be exited. Longfang Liu (3

[RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver

2021-04-12 Thread Longfang Liu
Add debugfs debugging interface to live migration driver Signed-off-by: Longfang Liu --- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++ drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 + 2 files changed, 195 insertions(+) diff --git a/drivers/vfio/pci

[RFC PATCH 1/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
the migration data. (3).Operation and data processing of accelerator hardware devices Signed-off-by: Longfang Liu --- drivers/vfio/pci/Kconfig |8 + drivers/vfio/pci/Makefile |1 + drivers/vfio/pci/hisilicon/acc_vf_migration.c | 1144

[PATCH] USB:ohci:fix ohci interruption problem

2021-04-02 Thread Longfang Liu
S4 mode for a long time that this problem no longer occurs. Signed-off-by: Longfang Liu --- drivers/usb/core/hcd-pci.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index 1547aa6..78a56cd 100644 --- a/drivers/

[PATCH] USB:ohci:fix ohci interruption problem

2021-04-02 Thread Longfang Liu
S4 mode for a long time that this problem no longer occurs. Signed-off-by: Longfang Liu --- drivers/usb/core/hcd-pci.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index 1547aa6..c5844a3 100644 --- a/drivers/

[PATCH v2 4/6] crypto: hisilicon/sec - add new AEAD mode for SEC

2020-12-10 Thread Longfang Liu
Add new AEAD algorithms to SEC: CCM(AES), GCM(AES), CCM(SM4), GCM(SM4). Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 4 + drivers/crypto/hisilicon/sec2/sec_crypto.c | 382 - drivers/crypto/hisilicon/sec2/sec_crypto.h | 5 + 3 files

[PATCH v2 6/6] crypto: hisilicon/sec - add new algorithm test case

2020-12-10 Thread Longfang Liu
Add testing cases for new algorithms such as 'XTS(SM4)', 'CCM(SM4)' and 'GCM(SM4)' to 'Crypto testmgr'. Except for CCM(AES) exiting with unexpected success, other algorithms have successfully passed the crypto self-tests. Signed-off-by: Longfang Liu

[PATCH v2 3/6] crypto: hisilicon/sec - add new skcipher mode for SEC

2020-12-10 Thread Longfang Liu
Add new skcipher algorithms for Kunpeng930 SEC: OFB(AES), CFB(AES), CTR(AES), OFB(SM4), CFB(SM4), CTR(SM4). Signed-off-by: Wenkai Lin Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 88 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2

[PATCH v2 1/6] crypto: hisilicon/hpre - add version adapt to new algorithms

2020-12-10 Thread Longfang Liu
's version. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu Reviewed-by: Longfang Liu --- drivers/crypto/hisilicon/hpre/hpre.h| 5 +++-- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 4 ++-- drivers/crypto/hisilicon/qm.c | 4 ++-- drivers/crypto/hisilicon/qm.h

[PATCH v2 5/6] crypto: hisilicon/sec - fixes some coding style

2020-12-10 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 94 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 4 +- 3

[PATCH v2 0/6] crypto: hisilicon - enable new algorithms of SEC

2020-12-10 Thread Longfang Liu
Add support for new algorithms of SEC accelerator on Kunpeng930, the driver and test case needs to be updated Longfang Liu (5): crypto: hisilicon/sec - add new type of sqe for Kunpeng930 crypto: hisilicon/sec - add new skcipher mode for SEC crypto: hisilicon/sec - add new AEAD mode for SEC

[PATCH v2 2/6] crypto: hisilicon/sec - add new type of sqe for Kunpeng930

2020-12-10 Thread Longfang Liu
In the new generation of accelerator hardware, in order to add new algorithm support, the hardware adds a new SQE data structure, so the driver has been upgraded as needed. Signed-off-by: Sihang Chen Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 6 +- drivers

[PATCH 0/5] crypto: hisilicon - add some new algorithms

2020-11-25 Thread Longfang Liu
As the new Kunpeng930 supports some new algorithms, the driver needs to be updated Longfang Liu (4): crypto: hisilicon/sec - add new type of sqe for Kunpeng930 crypto: hisilicon/sec - add new skcipher mode for SEC crypto: hisilicon/sec - add new AEAD mode for SEC crypto: hisilicon/sec

[PATCH 2/5] crypto: hisilicon/sec - add new type of sqe for Kunpeng930

2020-11-25 Thread Longfang Liu
In the new generation of accelerator hardware, in order to add new algorithm support, the hardware adds a new SQE data structure, so the driver has been upgraded as needed. Signed-off-by: Sihang Chen Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 6 +- drivers

[PATCH 5/5] crypto: hisilicon/sec - fixes some coding style

2020-11-25 Thread Longfang Liu
1. Fix a wrong printing problem 2. Modify log print style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 92 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 4 +- 3 files changed, 49

[PATCH 3/5] crypto: hisilicon/sec - add new skcipher mode for SEC

2020-11-25 Thread Longfang Liu
Add new skcipher algorithms to Kunpeng930: OFB(AES), CFB(AES), CTR(AES), OFB(SM4), CFB(SM4), CTR(SM4). Signed-off-by: Wenkai Lin Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 47 ++ drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 ++ 2

[PATCH 1/5] crypto: hisilicon/hpre - add version adapt to new algorithms

2020-11-25 Thread Longfang Liu
's version. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu Reviewed-by: Longfang Liu --- drivers/crypto/hisilicon/hpre/hpre.h| 5 +++-- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 4 ++-- drivers/crypto/hisilicon/qm.c | 4 ++-- drivers/crypto/hisilicon/qm.h

[PATCH 4/5] crypto: hisilicon/sec - add new AEAD mode for SEC

2020-11-25 Thread Longfang Liu
Add new AEAD algorithms to SEC: CCM(AES), GCM(AES), CCM(SM4), GCM(SM4). Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 4 + drivers/crypto/hisilicon/sec2/sec_crypto.c | 384 - drivers/crypto/hisilicon/sec2/sec_crypto.h | 5 + 3 files

[PATCH] USB:ehci:fix an interrupt calltrace error

2020-11-25 Thread Longfang Liu
more than 100,000 interrupts, which causes the system to forcibly close the interrupt report and report the calltrace error. so, when the driver goes to sleep and changes the system state to suspend, the interrupt flag needs to be cleared. Signed-off-by: Longfang Liu --- drivers/usb/host/ehci-hub.c

[PATCH v4 0/3] crypto:hisilicon/sec - fixes some coding style

2021-03-12 Thread Longfang Liu
1. Fix a problems. 2. Fix some coding style. Changes v3 -> v4: - Fixed an unused warning on dev. - Create a patch for bugfix Changes v2 -> v3: - Delete shash test error patch. Changes v1 -> v2: - Modify the way to fix shash test error. Longfang Liu (3): crypto: hisilicon/se

[PATCH v4 1/3] crypto: hisilicon/sec - fixes a printing error

2021-03-12 Thread Longfang Liu
When the log is output here, the device has not been initialized yet. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2

[PATCH v4 3/3] crypto: hisilicon/sec - fixes some driver coding style

2021-03-12 Thread Longfang Liu
cleanup static check errors for SEC Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++- 1 file changed, 76 insertions(+), 55 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2

[PATCH v4 2/3] crypto: hisilicon/sec - fixes some coding style

2021-03-12 Thread Longfang Liu
1.delete the original complex method of obtaining the current device and replace it with the initialized device pointer. 2.fixes some coding style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 75

[PATCH 1/3] crypto: hisilicon/sec - fixes some log printing style

2021-02-05 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 - 3

[PATCH 0/3] crypto:hisilicon/sec - fixes some coding style

2021-02-05 Thread Longfang Liu
1. Fix two problems. 2. Fix some coding style. Longfang Liu (3): crypto: hisilicon/sec - fixes some log printing style crypto: hisilicon/sec - fixes some driver coding style crypto: hisilicon/sec - fixes shash test error arch/arm64/configs/defconfig | 2 +- drivers/crypto

[PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-05 Thread Longfang Liu
If this configuration item is not turned on, the allocation of crypto_tfm will fail when the shash algorithm calculates the hash through the software. Signed-off-by: Longfang Liu --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64

[PATCH v2 1/3] crypto: hisilicon/sec - fixes some log printing style

2021-02-07 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 - 3

[PATCH v2 0/3] crypto:hisilicon/sec - fixes some coding style

2021-02-07 Thread Longfang Liu
1. Fix two problems. 2. Fix some coding style. Changes v1 -> v2: - Modify the way to fix shash test error. Longfang Liu (3): crypto: hisilicon/sec - fixes some log printing style crypto: hisilicon/sec - fixes some driver coding style crypto: hisilicon/sec - fixes shash test er

[PATCH v2 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-07 Thread Longfang Liu
If the header file "crypto/internal/hash.h" not added, the allocation of crypto_tfm will fail when the shash algorithm calculates the hash through the software. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 2/3] crypto: hisilicon/sec - fixes some driver coding style

2021-02-07 Thread Longfang Liu
cleanup static check errors for SEC Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++- 1 file changed, 76 insertions(+), 55 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2