File tree 11 files changed +26
-26
lines changed
11 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ static const struct cxd56_automount_config_s g_sdcard0config =
89
89
.fstype = CONFIG_CXD56_SDCARD_AUTOMOUNT_FSTYPE ,
90
90
.blockdev = CONFIG_CXD56_SDCARD_AUTOMOUNT_BLKDEV ,
91
91
.mountpoint = CONFIG_CXD56_SDCARD_AUTOMOUNT_MOUNTPOINT ,
92
- .ddelay = MSEC2TICK (CONFIG_CXD56_SDCARD_AUTOMOUNT_DDELAY ),
93
- .udelay = MSEC2TICK (CONFIG_CXD56_SDCARD_AUTOMOUNT_UDELAY ),
92
+ .ddelay = MSEC2TICK_SLOW (CONFIG_CXD56_SDCARD_AUTOMOUNT_DDELAY ),
93
+ .udelay = MSEC2TICK_SLOW (CONFIG_CXD56_SDCARD_AUTOMOUNT_UDELAY ),
94
94
.attach = sdcard_attach ,
95
95
.enable = sdcard_enable ,
96
96
.inserted = sdcard_inserted
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ static const struct k28_automount_config_s g_sdhc_config =
87
87
.fstype = CONFIG_FRDMK28F_SDHC_AUTOMOUNT_FSTYPE ,
88
88
.blockdev = CONFIG_FRDMK28F_SDHC_AUTOMOUNT_BLKDEV ,
89
89
.mountpoint = CONFIG_FRDMK28F_SDHC_AUTOMOUNT_MOUNTPOINT ,
90
- .ddelay = MSEC2TICK (CONFIG_FRDMK28F_SDHC_AUTOMOUNT_DDELAY ),
91
- .udelay = MSEC2TICK (CONFIG_FRDMK28F_SDHC_AUTOMOUNT_UDELAY ),
90
+ .ddelay = MSEC2TICKSLOW (CONFIG_FRDMK28F_SDHC_AUTOMOUNT_DDELAY ),
91
+ .udelay = MSEC2TICKSLOW (CONFIG_FRDMK28F_SDHC_AUTOMOUNT_UDELAY ),
92
92
.attach = k28_sdhc_attach ,
93
93
.enable = k28_sdhc_enable ,
94
94
.inserted = k28_sdhc_inserted
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ static const struct k64_automount_config_s g_sdhc_config =
87
87
.fstype = CONFIG_FRDMK64F_SDHC_AUTOMOUNT_FSTYPE ,
88
88
.blockdev = CONFIG_FRDMK64F_SDHC_AUTOMOUNT_BLKDEV ,
89
89
.mountpoint = CONFIG_FRDMK64F_SDHC_AUTOMOUNT_MOUNTPOINT ,
90
- .ddelay = MSEC2TICK (CONFIG_FRDMK64F_SDHC_AUTOMOUNT_DDELAY ),
91
- .udelay = MSEC2TICK (CONFIG_FRDMK64F_SDHC_AUTOMOUNT_UDELAY ),
90
+ .ddelay = MSEC2TICKSLOW (CONFIG_FRDMK64F_SDHC_AUTOMOUNT_DDELAY ),
91
+ .udelay = MSEC2TICKSLOW (CONFIG_FRDMK64F_SDHC_AUTOMOUNT_UDELAY ),
92
92
.attach = k64_attach ,
93
93
.enable = k64_enable ,
94
94
.inserted = k64_inserted
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ static const struct k66_automount_config_s g_sdhc_config =
87
87
.fstype = CONFIG_FRDMK66F_SDHC_AUTOMOUNT_FSTYPE ,
88
88
.blockdev = CONFIG_FRDMK66F_SDHC_AUTOMOUNT_BLKDEV ,
89
89
.mountpoint = CONFIG_FRDMK66F_SDHC_AUTOMOUNT_MOUNTPOINT ,
90
- .ddelay = MSEC2TICK (CONFIG_FRDMK66F_SDHC_AUTOMOUNT_DDELAY ),
91
- .udelay = MSEC2TICK (CONFIG_FRDMK66F_SDHC_AUTOMOUNT_UDELAY ),
90
+ .ddelay = MSEC2TICKSLOW (CONFIG_FRDMK66F_SDHC_AUTOMOUNT_DDELAY ),
91
+ .udelay = MSEC2TICKSLOW (CONFIG_FRDMK66F_SDHC_AUTOMOUNT_UDELAY ),
92
92
.attach = k66_attach ,
93
93
.enable = k66_enable ,
94
94
.inserted = k66_inserted
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ static const struct k64_automount_config_s g_sdhc_config =
87
87
.fstype = CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_FSTYPE ,
88
88
.blockdev = CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_BLKDEV ,
89
89
.mountpoint = CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_MOUNTPOINT ,
90
- .ddelay = MSEC2TICK (CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_DDELAY ),
91
- .udelay = MSEC2TICK (CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_UDELAY ),
90
+ .ddelay = MSEC2TICKSLOW (CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_DDELAY ),
91
+ .udelay = MSEC2TICKSLOW (CONFIG_TWR_K64F120M_SDHC_AUTOMOUNT_UDELAY ),
92
92
.attach = k64_attach ,
93
93
.enable = k64_enable ,
94
94
.inserted = k64_inserted
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ static const struct sam_automount_config_s g_hsmci0config =
89
89
.fstype = CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_FSTYPE ,
90
90
.blockdev = CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_BLKDEV ,
91
91
.mountpoint = CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_MOUNTPOINT ,
92
- .ddelay = MSEC2TICK (CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_DDELAY ),
93
- .udelay = MSEC2TICK (CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_UDELAY ),
92
+ .ddelay = MSEC2TICKSLOW (CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_DDELAY ),
93
+ .udelay = MSEC2TICKSLOW (CONFIG_SAMA5D4EK_HSMCI0_AUTOMOUNT_UDELAY ),
94
94
.attach = sam_attach ,
95
95
.enable = sam_enable ,
96
96
.inserted = sam_inserted
@@ -109,8 +109,8 @@ static const struct sam_automount_config_s g_hsmci1config =
109
109
.fstype = CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_FSTYPE ,
110
110
.blockdev = CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_BLKDEV ,
111
111
.mountpoint = CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_MOUNTPOINT ,
112
- .ddelay = MSEC2TICK (CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_DDELAY ),
113
- .udelay = MSEC2TICK (CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_UDELAY ),
112
+ .ddelay = MSEC2TICK_SLOW (CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_DDELAY ),
113
+ .udelay = MSEC2TICK_SLOW (CONFIG_SAMA5D4EK_HSMCI1_AUTOMOUNT_UDELAY ),
114
114
.attach = sam_attach ,
115
115
.enable = sam_enable ,
116
116
.inserted = sam_inserted
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ static const struct sam_automount_config_s g_port0config =
89
89
.fstype = CONFIG_METRO_M4_USB_AUTOMOUNT_FSTYPE ,
90
90
.blockdev = CONFIG_METRO_M4_USB_AUTOMOUNT_BLKDEV ,
91
91
.mountpoint = CONFIG_METRO_M4_USB_AUTOMOUNT_MOUNTPOINT ,
92
- .ddelay = MSEC2TICK (CONFIG_METRO_M4_USB_AUTOMOUNT_DDELAY ),
93
- .udelay = MSEC2TICK (CONFIG_METRO_M4_USB_AUTOMOUNT_UDELAY ),
92
+ .ddelay = MSEC2TICKSLOW (CONFIG_METRO_M4_USB_AUTOMOUNT_DDELAY ),
93
+ .udelay = MSEC2TICKSLOW (CONFIG_METRO_M4_USB_AUTOMOUNT_UDELAY ),
94
94
.attach = sam_attach ,
95
95
.enable = sam_enable ,
96
96
.inserted = sam_inserted
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ static const struct sam_automount_config_s g_hsmci0config =
92
92
.fstype = CONFIG_SAMV7_HSMCI0_AUTOMOUNT_FSTYPE ,
93
93
.blockdev = CONFIG_SAMV7_HSMCI0_AUTOMOUNT_BLKDEV ,
94
94
.mountpoint = CONFIG_SAMV7_HSMCI0_AUTOMOUNT_MOUNTPOINT ,
95
- .ddelay = MSEC2TICK (CONFIG_SAMV7_HSMCI0_AUTOMOUNT_DDELAY ),
96
- .udelay = MSEC2TICK (CONFIG_SAMV7_HSMCI0_AUTOMOUNT_UDELAY ),
95
+ .ddelay = MSEC2TICK_SLOW (CONFIG_SAMV7_HSMCI0_AUTOMOUNT_DDELAY ),
96
+ .udelay = MSEC2TICK_SLOW (CONFIG_SAMV7_HSMCI0_AUTOMOUNT_UDELAY ),
97
97
.attach = sam_attach ,
98
98
.enable = sam_enable ,
99
99
.inserted = sam_inserted
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ static const struct stm32_automount_config_s g_mb1_mmcsdconfig =
93
93
.fstype = CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT_FSTYPE ,
94
94
.blockdev = CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT_BLKDEV ,
95
95
.mountpoint = CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT_MOUNTPOINT ,
96
- .ddelay = MSEC2TICK (
96
+ .ddelay = MSEC2TICKSLOW (
97
97
CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT_DDELAY ),
98
- .udelay = MSEC2TICK (
98
+ .udelay = MSEC2TICKSLOW (
99
99
CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT_UDELAY ),
100
100
.attach = stm32_attach ,
101
101
.enable = stm32_enable ,
@@ -115,9 +115,9 @@ static const struct stm32_automount_config_s g_mb2_mmcsdconfig =
115
115
.fstype = CONFIG_CLICKER2_STM32_MB2_MMCSD_AUTOMOUNT_FSTYPE ,
116
116
.blockdev = CONFIG_CLICKER2_STM32_MB2_MMCSD_AUTOMOUNT_BLKDEV ,
117
117
.mountpoint = CONFIG_CLICKER2_STM32_MB2_MMCSD_AUTOMOUNT_MOUNTPOINT ,
118
- .ddelay = MSEC2TICK (
118
+ .ddelay = MSEC2TICKSLOW (
119
119
CONFIG_CLICKER2_STM32_MB2_MMCSD_AUTOMOUNT_DDELAY ),
120
- .udelay = MSEC2TICK (
120
+ .udelay = MSEC2TICKSLOW (
121
121
CONFIG_CLICKER2_STM32_MB2_MMCSD_AUTOMOUNT_UDELAY ),
122
122
.attach = stm32_attach ,
123
123
.enable = stm32_enable ,
Original file line number Diff line number Diff line change @@ -93,10 +93,8 @@ static const struct litex_automount_config_s g_mb1_mmcsdconfig =
93
93
.fstype = CONFIG_LITEX_SDIO_MOUNT_FSTYPE ,
94
94
.blockdev = CONFIG_LITEX_SDIO_MOUNT_BLKDEV ,
95
95
.mountpoint = CONFIG_LITEX_SDIO_MOUNT_MOUNTPOINT ,
96
- .ddelay = MSEC2TICK (
97
- 100 ),
98
- .udelay = MSEC2TICK (
99
- 100 ),
96
+ .ddelay = MSEC2TICKSLOW (100 ),
97
+ .udelay = MSEC2TICKSLOW (100 ),
100
98
.attach = litex_attach ,
101
99
.enable = litex_enable ,
102
100
.inserted = litex_inserted
Original file line number Diff line number Diff line change 185
185
186
186
#if (MSEC_PER_TICK * USEC_PER_MSEC ) == USEC_PER_TICK
187
187
# define MSEC2TICK (msec ) div_const_roundup(msec, MSEC_PER_TICK)
188
+ # define MSEC2TICKSLOW (msec ) (((msec)+(MSEC_PER_TICK/2))/MSEC_PER_TICK)
188
189
#else
189
190
# define MSEC2TICK (msec ) USEC2TICK((msec) * USEC_PER_MSEC)
191
+ # define MSEC2TICKSLOW (msec ) USEC2TICK((msec) * USEC_PER_MSEC)
190
192
#endif
191
193
192
194
#define DSEC2TICK (dsec ) MSEC2TICK((dsec) * MSEC_PER_DSEC)
You can’t perform that action at this time.
0 commit comments