static int smsspi_postload(void *context) { struct _Msg { struct SmsMsgHdr_ST hdr; u32 data[1]; } Msg = { { MSG_SMS_SET_PERIODIC_STATS_REQ, 0, HIF_TASK, sizeof(struct _Msg), 0}, { 1} }; struct _spi_device_st *spi_device = (struct _spi_device_st *) context; struct _smsspi_txmsg msg; PDEBUG("Sending Period Statistics Req\n"); //This function just speed up the SPI clock fwDnlComplete(spi_device->phy_dev, 0); msg.buffer = &Msg; msg.size = sizeof(Msg); msg.alignment = SPI_PACKET_SIZE; msg.add_preamble = 1; msg.prewrite = NULL; msg.postwrite = NULL; /* smsspiphy_restore_clock; */ g_Sms_Int_Counter=0; g_Sms_Int_Counter=0; smsspi_queue_message_and_wait(context, &msg); return 0; }
static int smsspi_postload(void *context) { struct _spi_device_st *spi_device = (struct _spi_device_st *) context; int mode = smscore_registry_getmode(spi_device->coredev->devpath); if ((mode != DEVICE_MODE_ISDBT) && (mode != DEVICE_MODE_ISDBT_BDA)) { fwDnlComplete(spi_device->phy_dev, 0); } return 0; }