[PATCH v3 0/2] cmd646: remove pci_cmd646_ide_init() function

Mark Cave-Ayland posted 2 patches 4 years, 1 month ago
Test docker-quick@centos7 passed
Test checkpatch passed
Test docker-clang@ubuntu passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200307091313.24190-1-mark.cave-ayland@ilande.co.uk
Maintainers: John Snow <jsnow@redhat.com>
hw/alpha/dp264.c |  6 +++++-
hw/ide/cmd646.c  | 12 ------------
include/hw/ide.h |  2 --
3 files changed, 5 insertions(+), 15 deletions(-)
[PATCH v3 0/2] cmd646: remove pci_cmd646_ide_init() function
Posted by Mark Cave-Ayland 4 years, 1 month ago
The recent cmd646 discussions reminded me of this patch I've had sitting in an
old branch for a while.

The DP264 machine is the last remaining user of the deprecated
pci_cmd646_ide_init() init function. Switch it over to using qdev via pci_create()
and then remove the now-unused pci_cmd646_ide_init() function.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

v3:
- Rebase onto master
- Add R-B tag from Phil
- Use pci_create_simple() instead of pci_create() as suggested by Zoltan

v2:
- Rebase onto master
- Remove setting "secondary" property to 0 for dp264 since this is already the default
- Add R-B tags from Richard


Mark Cave-Ayland (2):
  dp264: use pci_create_simple() to initialise the cmd646 device
  cmd646: remove unused pci_cmd646_ide_init() function

 hw/alpha/dp264.c |  6 +++++-
 hw/ide/cmd646.c  | 12 ------------
 include/hw/ide.h |  2 --
 3 files changed, 5 insertions(+), 15 deletions(-)

-- 
2.20.1


Re: [PATCH v3 0/2] cmd646: remove pci_cmd646_ide_init() function
Posted by John Snow 4 years, 1 month ago

On 3/7/20 4:13 AM, Mark Cave-Ayland wrote:
> The recent cmd646 discussions reminded me of this patch I've had sitting in an
> old branch for a while.
> 
> The DP264 machine is the last remaining user of the deprecated
> pci_cmd646_ide_init() init function. Switch it over to using qdev via pci_create()
> and then remove the now-unused pci_cmd646_ide_init() function.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> 
> v3:
> - Rebase onto master
> - Add R-B tag from Phil
> - Use pci_create_simple() instead of pci_create() as suggested by Zoltan
> 
> v2:
> - Rebase onto master
> - Remove setting "secondary" property to 0 for dp264 since this is already the default
> - Add R-B tags from Richard
> 
> 
> Mark Cave-Ayland (2):
>   dp264: use pci_create_simple() to initialise the cmd646 device
>   cmd646: remove unused pci_cmd646_ide_init() function
> 
>  hw/alpha/dp264.c |  6 +++++-
>  hw/ide/cmd646.c  | 12 ------------
>  include/hw/ide.h |  2 --
>  3 files changed, 5 insertions(+), 15 deletions(-)
> 

Thanks, applied to my IDE tree:

https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git

--js


Re: [PATCH v3 0/2] cmd646: remove pci_cmd646_ide_init() function
Posted by John Snow 4 years, 1 month ago

On 3/10/20 11:31 AM, John Snow wrote:
> 
> 
> On 3/7/20 4:13 AM, Mark Cave-Ayland wrote:
>> The recent cmd646 discussions reminded me of this patch I've had sitting in an
>> old branch for a while.
>>
>> The DP264 machine is the last remaining user of the deprecated
>> pci_cmd646_ide_init() init function. Switch it over to using qdev via pci_create()
>> and then remove the now-unused pci_cmd646_ide_init() function.
>>
>> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>>
>> v3:
>> - Rebase onto master
>> - Add R-B tag from Phil
>> - Use pci_create_simple() instead of pci_create() as suggested by Zoltan
>>
>> v2:
>> - Rebase onto master
>> - Remove setting "secondary" property to 0 for dp264 since this is already the default
>> - Add R-B tags from Richard
>>
>>
>> Mark Cave-Ayland (2):
>>   dp264: use pci_create_simple() to initialise the cmd646 device
>>   cmd646: remove unused pci_cmd646_ide_init() function
>>
>>  hw/alpha/dp264.c |  6 +++++-
>>  hw/ide/cmd646.c  | 12 ------------
>>  include/hw/ide.h |  2 --
>>  3 files changed, 5 insertions(+), 15 deletions(-)
>>
> 
> Thanks, applied to my IDE tree:
> 
> https://github.com/jnsnow/qemu/commits/ide
> https://github.com/jnsnow/qemu.git
> 
> --js
> 

Sorry, I replied to the wrong series!

But now it's true.

Thanks, applied to my IDE tree:

https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git

--js