#
3ddaf820 |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
Use bus_generic_detach instead of device_delete_children in detach
While here, check for errors from bus_generic_detach and move it to the start of detach if necessary.
Differential Revision: https
Use bus_generic_detach instead of device_delete_children in detach
While here, check for errors from bus_generic_detach and move it to the start of detach if necessary.
Differential Revision: https://reviews.freebsd.org/D47969
show more ...
|
Revision tags: release/14.2.0, release/13.4.0 |
|
#
5b56413d |
| 25-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY
Sponsored by: Netflix
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0, release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
ea7f45d3 |
| 24-Sep-2021 |
Andriy Gapon <avg@FreeBSD.org> |
dwmmc: fix a typo
|
#
be82b3a0 |
| 26-Dec-2023 |
Emmanuel Vadot <manu@FreeBSD.org> |
clk: Move clock code in dev/clk
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of
clk: Move clock code in dev/clk
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name.
Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43191
show more ...
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
b4cc0f7d |
| 11-Jan-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Make ext_resources non-optional
EXT_RESOURCES have been introduced in 12-CURRENT and all supported releases have it enabled in their kernel config.
MFC after: 1 month Differential Revis
dwmmc: Make ext_resources non-optional
EXT_RESOURCES have been introduced in 12-CURRENT and all supported releases have it enabled in their kernel config.
MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33822
show more ...
|
#
44682688 |
| 12-Jan-2022 |
Andriy Gapon <avg@FreeBSD.org> |
mmc_da: implement d_dump method, sddadump
sddadump has been derived from sddastart.
mmc_sim interface has grown a new method, cam_poll, to support polled operation.
mmc_sim code has been changed t
mmc_da: implement d_dump method, sddadump
sddadump has been derived from sddastart.
mmc_sim interface has grown a new method, cam_poll, to support polled operation.
mmc_sim code has been changed to provide a sim_poll hook only if the controller implements the new method. The hooks is implemented in terms of the new mmc_sim_cam_poll method. Additionally, in-progress CCB-s now have CAM_REQ_INPROG status to satisfy xpt_pollwait().
mmc_sim_cam_poll method has been implemented in dwmmc host controller.
Reviewed by: manu, mav, imp MFC after: 2 weeks Relnotes: perhaps Differential Revision: https://reviews.freebsd.org/D33843
show more ...
|
#
dfb73602 |
| 07-Oct-2021 |
Michal Meloun <mmel@FreeBSD.org> |
dwmmc: Calculate the maximum transaction length correctly.
We should reserve two descriptors (not MMC_SECTORS) for potentially unaligned (so bounced) buffer fragments, one for the starting fragment
dwmmc: Calculate the maximum transaction length correctly.
We should reserve two descriptors (not MMC_SECTORS) for potentially unaligned (so bounced) buffer fragments, one for the starting fragment and one for the ending fragment.
Submitted by: kjopek@gmail.com MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D30387
show more ...
|
#
559f6021 |
| 21-Sep-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Remove dwmmc_setup_bus call from start_cmd
There is no need to re-setup the bus before each commands. Tested-on: Rock64, RockPro64 Reported by: avg
|
#
af32e2cc |
| 21-Sep-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Properly implement power_off/power_up
Write to the PWREN register should be done in update_ios based on the power_mode value in the ios struct. Also none of the manual (RockChip and Altera) a
dwmmc: Properly implement power_off/power_up
Write to the PWREN register should be done in update_ios based on the power_mode value in the ios struct. Also none of the manual (RockChip and Altera) and Linux talks about the needed for an inverted PWREN value so just remove this. This fixes eMMC (and possibly SD) when u-boot didn't setup the controller.
Reported by: avg Tested-on: Rock64, RockPro64
show more ...
|
#
990a1dbf |
| 14-Jul-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Fix MMCCAM block size support
When using SDIO the block size if per function and most of the time not equal to MMC_SECTOR_SIZE, fix sdio on dwmmc by setting the correct block size in the mmc
dwmmc: Fix MMCCAM block size support
When using SDIO the block size if per function and most of the time not equal to MMC_SECTOR_SIZE, fix sdio on dwmmc by setting the correct block size in the mmc registers.
MFC after: 1 month Sponsored by: Diablotin Systems
show more ...
|
#
c99d887c |
| 16-May-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Add bus_generic_add_child in the methods
Otherwise sdiob cannot add it's children.
Sponsored by: Diablotin Systems Differential Revision: https://reviews.freebsd.org/D30295
|
#
ce41765c |
| 16-May-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
mmc: dwmmc: Call mmc_fdt_set_power
This allow us to powerup/down the card and enabling/disabling the regulators if any.
Sponsored by: Diablotin Systems Differential Revision: https://reviews.freebs
mmc: dwmmc: Call mmc_fdt_set_power
This allow us to powerup/down the card and enabling/disabling the regulators if any.
Sponsored by: Diablotin Systems Differential Revision: https://reviews.freebsd.org/D30292
show more ...
|
#
7cbdf8a0 |
| 22-Apr-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Add \n to a debug printf
|
#
f1cc48e5 |
| 21-Apr-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
mmc: dwmmc: Convert driver to use the mmc_sim interface
A lot more generic cam related things are done in mmc_sim so this simplify the driver a lot.
Differential Revision: https://reviews.freebsd.o
mmc: dwmmc: Convert driver to use the mmc_sim interface
A lot more generic cam related things are done in mmc_sim so this simplify the driver a lot.
Differential Revision: https://reviews.freebsd.org/D27487 Reviewed by: kibab
show more ...
|
#
4c1ecf55 |
| 27-Apr-2021 |
Ruslan Bukin <br@FreeBSD.org> |
Consider the broken card detect flag that comes from 'broken-cd;' dts property.
This fixes operation on Intel Stratix 10 devices.
Tested on Terasic DE10-Pro.
Reviewed by: manu Sponsored by: UKRI D
Consider the broken card detect flag that comes from 'broken-cd;' dts property.
This fixes operation on Intel Stratix 10 devices.
Tested on Terasic DE10-Pro.
Reviewed by: manu Sponsored by: UKRI Differential revision: https://reviews.freebsd.org/D29999
show more ...
|
Revision tags: release/13.0.0 |
|
#
8727c174 |
| 21-Jan-2021 |
Michal Meloun <mmel@FreeBSD.org> |
dwmmc: Multiple busdma fixes.
- limit maximum segment size to 2048 bytes. Although dwmmc supports a buffer fragment with a maximum length of 4095 bytes, use the nearest lower power of two as th
dwmmc: Multiple busdma fixes.
- limit maximum segment size to 2048 bytes. Although dwmmc supports a buffer fragment with a maximum length of 4095 bytes, use the nearest lower power of two as the maximum fragment size. Otherwise, busdma create excessive buffer fragments. - fix off by one error in computation of the maximum data transfer length. - in addition, reserve two DMA descriptors that can be used by busdma bouncing. The beginning or end of the buffer can be misaligned. - Don’t ignore errors passed to bus_dmamap_load() callback function. - In theory, a DMA engine may be running at time when next dma descriptor is constructed. Create a full DMA descriptor before OWN bit is set.
MFC after: 2 weeks
show more ...
|
#
f4e5e045 |
| 16-Nov-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: dwmmc_switch_vccq is only used in MMCCAM kernel
Silence the build for non MMCCAM kernel
|
Revision tags: release/12.2.0 |
|
#
56feefcc |
| 02-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
mmc: clean up empty lines in .c and .h files
|
#
e2515283 |
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
d3fd812c |
| 17-Aug-2020 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
dwmmc: remove printf even under bootverbose
Remove two debugging printfs, even if hidden under boot -v. They seemed to be of debug nature and always spit onto the console when running camcontrol dev
dwmmc: remove printf even under bootverbose
Remove two debugging printfs, even if hidden under boot -v. They seemed to be of debug nature and always spit onto the console when running camcontrol devlist -v.
Reviewed by: manu MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25962
show more ...
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
41c653be |
| 24-Jul-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
dwmmc: Add MMCCAM part
Add support for MMCCAM for dwmmc
Submitted by: kibab Tested On: Rock64, RockPro64
|
Revision tags: release/11.4.0 |
|
#
a1af70e5 |
| 14-Apr-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm: dwmmc: Use mmc_fdt_helpers
Use the mmc_fdt_parse function instead of parsing everything in the driver.
MFC after: 1 month
|