| 752126a0 | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Set up common versions of operations
Driver model wants to use the core functions in this file but accesses the uclass-private data in a different way. Move the code into new 'com
dm: sata: dw_sata: Set up common versions of operations
Driver model wants to use the core functions in this file but accesses the uclass-private data in a different way. Move the code into new 'common' functions and set up stubs to call these.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 036a803e | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: More ahci_init_one() futher down
This function will not be used with driver model and it relates to the other exported functions. Move it down next to them.
Signed-off-by: Simon
dm: sata: dw_sata: More ahci_init_one() futher down
This function will not be used with driver model and it relates to the other exported functions. Move it down next to them.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 90abb28f | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Rename the dwc_ahsata private header
Rename dwc_ahsata.h to indicate that it is a private header file. We plan to create another header with some public functions.
Signed-off-by:
dm: sata: dw_sata: Rename the dwc_ahsata private header
Rename dwc_ahsata.h to indicate that it is a private header file. We plan to create another header with some public functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 47c0f369 | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Pass uc_priv to internal functions
With driver model sata_dev_desc[] does not exist. We still want to use the common code of this driver so update it to pass struct ahci_uc_priv *
dm: sata: dw_sata: Pass uc_priv to internal functions
With driver model sata_dev_desc[] does not exist. We still want to use the common code of this driver so update it to pass struct ahci_uc_priv * to each of these functions, instead of an integer which must be looked up in sata_dev_desc[].
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 4b640dbc | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Drop unnecessary casts
Most of the casts in this driver are not necessary. With driver model we do not cast from void *. Update the driver to follow this rule.
Signed-off-by: Sim
dm: sata: dw_sata: Drop unnecessary casts
Most of the casts in this driver are not necessary. With driver model we do not cast from void *. Update the driver to follow this rule.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 09bb951b | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Rename 'probe_ent' to uc_priv
With driver model this becomes uclass-private data. Rename the parameter varable to reflect this.
With the driver model conversion we will not have
dm: sata: dw_sata: Rename 'probe_ent' to uc_priv
With driver model this becomes uclass-private data. Rename the parameter varable to reflect this.
With the driver model conversion we will not have any exported functions. Move all exported functions to be together at the end of the file so that we can deal with them in one #ifdef block.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c5273acf | 29-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: sata: dw_sata: Move exported functions to the end
With the driver model conversion we will not have any exported functions. Move all exported functions to be together at the end of the file so t
dm: sata: dw_sata: Move exported functions to the end
With the driver model conversion we will not have any exported functions. Move all exported functions to be together at the end of the file so that we can deal with them in one #ifdef block.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| bfc1c6b4 | 04-Jul-2017 |
Simon Glass <sjg@chromium.org> |
dm: ahci: Correct uclass private data
This is expected to be attached to the uclass and the code operates that way, but the uclass has not been updated. Fix it to avoid using memory at address 0.
S
dm: ahci: Correct uclass private data
This is expected to be attached to the uclass and the code operates that way, but the uclass has not been updated. Fix it to avoid using memory at address 0.
Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 47fc61a (dm: ahci: Drop use of probe_ent)
show more ...
|