[Intel-gfx] [PATCH 1/3] tools/intel_reg: Use pci device from config on write

Thomas Wood thomas.wood at intel.com
Wed Sep 9 06:50:09 PDT 2015


On 28 August 2015 at 16:16, Jani Nikula <jani.nikula at intel.com> wrote:
> On Fri, 28 Aug 2015, Mika Kuoppala <mika.kuoppala at linux.intel.com> wrote:
>> Use the pre configured pci device from config also
>> in write path.
>>
>> Cc: Jani Nikula <jani.nikula at intel.com>
>> Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
>> ---
>>  tools/intel_reg.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/intel_reg.c b/tools/intel_reg.c
>> index 190aa5b..2b60a83 100644
>> --- a/tools/intel_reg.c
>> +++ b/tools/intel_reg.c
>> @@ -439,7 +439,7 @@ static int intel_reg_write(struct config *config, int argc, char *argv[])
>>               return EXIT_FAILURE;
>>       }
>>
>> -     intel_register_access_init(intel_get_pci_device(), 0);
>> +     intel_register_access_init(config->pci_dev, 0);
>
> Whoops, my bad.
>
> Reviewed-by: Jani Nikula <jani.nikula at intel.com>

Thanks, I've pushed this patch. The other two patches in this series
can be pushed once any of the review comments have been addressed.


>
>
>>
>>       for (i = 1; i < argc; i += 2) {
>>               struct reg reg;
>> --
>> 2.1.4
>>
>
> --
> Jani Nikula, Intel Open Source Technology Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list