From 7b99ec785fa57c8d238f75fc8ccc28af494f3c2b Mon Sep 17 00:00:00 2001 From: huyx Date: Fri, 28 Mar 2025 09:56:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=9A=84=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyx --- .../test/unittest/common/hdf_gpio_test.cpp | 26 -------- .../test/unittest/common/hdf_i2c_test.cpp | 13 ---- .../test/unittest/common/hdf_uart_test.cpp | 65 ------------------- 3 files changed, 104 deletions(-) diff --git a/framework/support/platform/test/unittest/common/hdf_gpio_test.cpp b/framework/support/platform/test/unittest/common/hdf_gpio_test.cpp index 3082bd068..2972e561f 100644 --- a/framework/support/platform/test/unittest/common/hdf_gpio_test.cpp +++ b/framework/support/platform/test/unittest/common/hdf_gpio_test.cpp @@ -84,32 +84,6 @@ HWTEST_F(HdfGpioTest, GpioTestIrqLevel001, TestSize.Level1) EXPECT_EQ(0, GpioTestExecute(GPIO_TEST_IRQ_LEVEL)); } -/** - * @tc.name: GpioTestIrqEdge001 - * @tc.desc: gpio edge irq trigger test - * @tc.type: FUNC - * @tc.require: AR000F868H - */ -HWTEST_F(HdfGpioTest, GpioTestIrqEdge001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_GPIO_TYPE, GPIO_TEST_IRQ_EDGE, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, GpioTestExecute(GPIO_TEST_IRQ_EDGE)); -} - -/** - * @tc.name: GpioTestIrqThread001 - * @tc.desc: gpio thread irq trigger test - * @tc.type: FUNC - * @tc.require: AR000F868H - */ -HWTEST_F(HdfGpioTest, GpioTestIrqThread001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_GPIO_TYPE, GPIO_TEST_IRQ_THREAD, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, GpioTestExecute(GPIO_TEST_IRQ_THREAD)); -} - /** * @tc.name: GpioTestNumberGetByName * @tc.desc: get gpio global number test diff --git a/framework/support/platform/test/unittest/common/hdf_i2c_test.cpp b/framework/support/platform/test/unittest/common/hdf_i2c_test.cpp index 45a8f1574..fd8a8631d 100644 --- a/framework/support/platform/test/unittest/common/hdf_i2c_test.cpp +++ b/framework/support/platform/test/unittest/common/hdf_i2c_test.cpp @@ -63,19 +63,6 @@ void HdfI2cTest::TearDown() { } -/** - * @tc.name: HdfI2cTestTransfer001 - * @tc.desc: i2c transfer test - * @tc.type: FUNC - * @tc.require: AR000F8688 - */ -HWTEST_F(HdfI2cTest, HdfI2cTestTransfer001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_I2C_TYPE, I2C_TEST_CMD_TRANSFER, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, I2cTestExecute(I2C_TEST_CMD_TRANSFER)); -} - /** * @tc.name: HdfI2cTestMultiThread001 * @tc.desc: i2c multithread test diff --git a/framework/support/platform/test/unittest/common/hdf_uart_test.cpp b/framework/support/platform/test/unittest/common/hdf_uart_test.cpp index c4ce4671f..64c46036d 100644 --- a/framework/support/platform/test/unittest/common/hdf_uart_test.cpp +++ b/framework/support/platform/test/unittest/common/hdf_uart_test.cpp @@ -58,19 +58,6 @@ HWTEST_F(HdfUartTest, UartSetTransModeTest001, TestSize.Level1) EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_SET_TRANSMODE)); } -/** - * @tc.name: UartWriteTest001 - * @tc.desc: uart function test - * @tc.type: FUNC - * @tc.require: AR000F8689 - */ -HWTEST_F(HdfUartTest, UartWriteTest001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_UART_TYPE, UART_TEST_CMD_WRITE, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_WRITE)); -} - /** * @tc.name: UartReadTest001 * @tc.desc: uart function test @@ -84,58 +71,6 @@ HWTEST_F(HdfUartTest, UartReadTest001, TestSize.Level1) EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_READ)); } -/** - * @tc.name: UartSetBaudTest001 - * @tc.desc: uart function test - * @tc.type: FUNC - * @tc.require: AR000F8689 - */ -HWTEST_F(HdfUartTest, UartSetBaudTest001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_UART_TYPE, UART_TEST_CMD_SET_BAUD, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_SET_BAUD)); -} - -/** - * @tc.name: UartGetBaudTest001 - * @tc.desc: uart function test - * @tc.type: FUNC - * @tc.require: AR000F8689 - */ -HWTEST_F(HdfUartTest, UartGetBaudTest001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_UART_TYPE, UART_TEST_CMD_GET_BAUD, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_GET_BAUD)); -} - -/** - * @tc.name: UartSetAttributeTest001 - * @tc.desc: uart function test - * @tc.type: FUNC - * @tc.require: AR000F8689 - */ -HWTEST_F(HdfUartTest, UartSetAttributeTest001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_UART_TYPE, UART_TEST_CMD_SET_ATTRIBUTE, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_SET_ATTRIBUTE)); -} - -/** - * @tc.name: UartGetAttributeTest001 - * @tc.desc: uart function test - * @tc.type: FUNC - * @tc.require: AR000F8689 - */ -HWTEST_F(HdfUartTest, UartGetAttributeTest001, TestSize.Level1) -{ - struct HdfTestMsg msg = {TEST_PAL_UART_TYPE, UART_TEST_CMD_GET_ATTRIBUTE, -1}; - EXPECT_EQ(0, HdfTestSendMsgToService(&msg)); - EXPECT_EQ(0, UartTestExecute(UART_TEST_CMD_GET_ATTRIBUTE)); -} - /** * @tc.name: UartReliabilityTest001 * @tc.desc: uart function test -- Gitee From 52051cd4beee0f618a03b89a509304ee2026c172 Mon Sep 17 00:00:00 2001 From: huyx Date: Fri, 18 Apr 2025 16:01:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyx --- adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c b/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c index 1ab1c7140..87a255653 100644 --- a/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c +++ b/adapter/khdf/linux/model/usb/host/src/usb_pnp_notify.c @@ -787,9 +787,7 @@ static int32_t UsbPnpNotifyDispatch( HDF_LOGI("%s: received cmd = %d", __func__, cmd); OsalMutexLock(&g_usbSendEventLock); - if (USB_PNP_DRIVER_GETDEVICES != cmd && USB_PNP_DRIVER_GET_GADGET_LINK_STATUS != cmd) { - g_usbPnpNotifyCmdType = cmd; - } + g_usbPnpNotifyCmdType = cmd; switch (cmd) { case USB_PNP_NOTIFY_ADD_INTERFACE: -- Gitee From 48e520b1d24cc429e52ddf2cf1f00d2cc1334c79 Mon Sep 17 00:00:00 2001 From: LHY6968 Date: Wed, 25 Jun 2025 11:10:33 +0800 Subject: [PATCH 3/3] change permission for pinauth local log dict Signed-off-by: LHY6968 Change-Id: Ie59f23c308940f19bb9c434a537eb6a60f3da78c --- adapter/uhdf2/host/peripheral/hdf_peripheral.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg b/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg index f2a5312b4..faddbabbb 100644 --- a/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg +++ b/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg @@ -55,7 +55,8 @@ "mkdir /data/service/el0/thermal 0755 thermal thermal", "mkdir /data/service/el0/thermal/sensor 0755 power_host power_host", "mkdir /data/service/el0/thermal/cooling 0755 power_host power_host", - "mkdir /data/service/el1/public/pinauth/ 0700 pin_auth_host pin_auth_host", + "mkdir /data/service/el1/public/pinauth/ 0750 pin_auth_host pin_auth_host", + "chmod 0750 /data/service/el1/public/pinauth/", "mkdir /data/service/el1/public/userauth/ 0700 user_auth_host user_auth_host", "chown power_host system /sys/power/wake_lock", "chown power_host system /sys/power/wake_unlock", -- Gitee