Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3340559imu; Mon, 14 Jan 2019 00:59:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN7oXIeQTOsSbXU35AVL7rGOc5d96jPSlUOel6gs37aCaD9UjutBY/7dcRcqRkDCnxOP1Jrx X-Received: by 2002:a62:3541:: with SMTP id c62mr24236339pfa.19.1547456352665; Mon, 14 Jan 2019 00:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547456352; cv=none; d=google.com; s=arc-20160816; b=sMMRqFZdGnyEOnximn0GZOzYQj2mhKo2taA3fWTybwxzRjBtgdTxZPPa7M79wIXwv6 O49DX1nZkt/FSdu4IxGlw6uwZiXaO9TcoKka3rRZ+DV1aOQya8Aqq8s/PIAHTMNCtOAq 6p/CO0JdRWgBU1HkLW5U+/kg/xh8vefGBibPv3edELdvp3jQwW4fMEw7hfIdTrT5DBad 2m90MGz2lCRLWn++Pt03gXbreVO8jN5/TE3z7YN0XEeKpS37kzdvUlobrPcWkPYA8gwe WqA+wiDW2KKeDD2hRah953hEkAhUF2MmAyzFJiFIJjKUwaTzwWoA2xqhqZCB6EHvkuZe 9a+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=DimYBnsmKPKMSh/WXmjLKWSt8sfbpWDwYJy0cAofAtk=; b=GMFBZInP+6iYmd3925T59lXUa7fY18noe62Ez5bq5JLgP0f27MkJ8gixkmdB0ZFapY Ow43LbOrlhz5tuNTi6hfJqPzdUlM6wztTim82RtM/3Hsn3IHQvQw0tsdwnlABjUzUP3m BynqIKWJNifKwzL+vyK/HXYIo/JUphUlGjtFHgsQFbZtjVUF/n9uWnGNnSKBqmiBoL86 yi4uFcr9YMcG8r21+aXeXPwroA+PtxTRW9qweBEoGa2uxHDYFu9iMPiznx6NIYCu+D/c gMhtQUlY/SsWxB/I2Dlf/xQN1Wh04L/LtSSQX5YB4JaszKIszk9xnskbwTqtQhWK7UCb jG4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g63si26383035pfc.60.2019.01.14.00.58.57; Mon, 14 Jan 2019 00:59:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726469AbfANI5s convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Jan 2019 03:57:48 -0500 Received: from mail.bootlin.com ([62.4.15.54]:40373 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfANI5s (ORCPT ); Mon, 14 Jan 2019 03:57:48 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id EBF12209C2; Mon, 14 Jan 2019 09:57:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-45-241.w90-88.abo.wanadoo.fr [90.88.163.241]) by mail.bootlin.com (Postfix) with ESMTPSA id 943B620728; Mon, 14 Jan 2019 09:57:46 +0100 (CET) Date: Mon, 14 Jan 2019 09:57:45 +0100 From: Miquel Raynal To: Olof Johansson Cc: Jens Axboe , john.hubbard@gmail.com, Kishon Vijay Abraham I , Jisheng Zhang , Rob Herring , LKML , John Hubbard , Grzegorz Jaszczyk , Hans de Goede , Linus Torvalds Subject: Re: [PATCH 1/1] phy: fix build breakage: add PHY_MODE_SATA Message-ID: <20190114095745.04027f37@xps13> In-Reply-To: References: <20190113012909.11986-1-jhubbard@nvidia.com> <20190113012909.11986-2-jhubbard@nvidia.com> <9518922c-ab17-ba06-0670-f0202b436a8c@kernel.dk> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Olof, Olof Johansson wrote on Sat, 12 Jan 2019 19:57:12 -0800: > On Sat, Jan 12, 2019 at 6:05 PM Jens Axboe wrote: > > > > On 1/12/19 6:29 PM, john.hubbard@gmail.com wrote: > > > From: John Hubbard > > > > > > Commit 49e54187ae0b ("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: 49e54187ae0b ("ata: libahci_platform: comply to PHY framework") > > > > Linus, this is probably a better option in terms of what should go in to > > fix that commit. > > I'm OK with this, but it does beg the question how the patch was > tested before submitting, if it didn't build. > > Is there functional breakage behind it? I currently lack online > hardware to test myself, unfortunately. This is my mistake, I forgot to tell Jens about this dependency, I am very sorry about that. As reported by John, this patch depends on the addition of PHY_MODE_SATA in the PHY type enumeration. This series ([1]) has been delayed and I should have warned Jens about it. I'm fine with the above fix though. Kishon, will you be able to base phy-next on top of this fix? It will be needed for the addition of the COMPHY driver. Thanks and again, sorry for the troubles. Miquèl