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 1ab1c7140fa45b7b865de33ca239fb8df971eac9..87a255653960a8560a93655b5e6c70cd590e9e17 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: diff --git a/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg b/adapter/uhdf2/host/peripheral/hdf_peripheral.cfg index f2a5312b4d3369740564afedcec02e97e63c9658..faddbabbba1f950cea32478c34967016af99ee25 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", 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 3082bd068f79aff211d2d1de022bf74c2ea5ee5b..2972e561f3984e7967ee0c4ed971772ef51ee214 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 45a8f1574f38352586a0f27dcda74fe202b123b9..fd8a8631de7688fdd53eb359e1d52d4e5f3bba6e 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 c4ce4671fe993d77a393d4262ffdfacc447d8235..64c46036d45524e75255fee30a80a81f6881670a 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