[PATCH] staging: mt7621-pci: refactor pci related read and writes functions

NeilBrown neil at brown.name
Sun Jul 8 21:16:41 UTC 2018


On Sun, Jul 08 2018, Sergio Paracuellos wrote:
>
> I can try to split this a bit but I don't really know how to do atomic
> changes because
> of the related things included here.

Some suggestions:

1/ MV_READ_DATA is not used.  Discard that any anything else that is
   not used.

2/ MV_WRITE is replaced with writel(), MV_READ() with readl().  Make that
   one patch.

3/ unsigned int becomes u32.  That is a patch by itself. (maybe this has
   to go before 2.

4/ Introduce mt7621_pci_get_cfgaddr() and use it where it is a drop-in
   replacement.

5/ Introduce new implementations of pci_config_read() and
   pci_config_write.

6/ discard any newly dead code (e.g write_config_* ??)

Now if there is anything left in the patch is should be clear if it
could benefit from being broken up.

Thanks for working on this.

NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20180709/9c3bdaeb/attachment.asc>


More information about the devel mailing list