]> git.baikalelectronics.ru Git - kernel.git/commit
phy: fix build breakage: add PHY_MODE_SATA
authorJohn Hubbard <jhubbard@nvidia.com>
Sun, 13 Jan 2019 01:29:09 +0000 (17:29 -0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 16 Jan 2019 12:30:54 +0000 (18:00 +0530)
commitffa5f10415a1a540f8280d8e531afa8d7e932bf0
tree6a4421efc0da82028a0cd451858a6f338acb26bb
parent7eb8466bc1cd63c2de6b5bdb24e9a7821590599e
phy: fix build breakage: add PHY_MODE_SATA

Commit 69e7761a6f39 ("ata: libahci_platform: comply to PHY framework") uses
the PHY_MODE_SATA, but that enum had not yet been added. This caused a
build failure for me, with today's linux.git.

Also, there is a potentially conflicting (mis-named) PHY_MODE_SATA, hiding
in the Marvell Berlin SATA PHY driver.

Fix the build by:

    1) Renaming Marvell's defined value to a more scoped name,
       in order to avoid any potential conflicts: PHY_BERLIN_MODE_SATA.

    2) Adding the missing enum, which was going to be added anyway as part
       of [1].

[1] https://lkml.kernel.org/r/20190108163124.6409-3-miquel.raynal@bootlin.com

Fixes: 69e7761a6f39 ("ata: libahci_platform: comply to PHY framework")
Cc: Grzegorz Jaszczyk <jaz@semihalf.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/marvell/phy-berlin-sata.c
include/linux/phy/phy.h