From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965098AbcAZMRf (ORCPT ); Tue, 26 Jan 2016 07:17:35 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:57478 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933038AbcAZMRb (ORCPT ); Tue, 26 Jan 2016 07:17:31 -0500 From: Arnd Bergmann To: Tejun Heo Cc: Brijesh Singh , linux-kernel@vger.kernel.org, hdegoede@redhat.com, linux-ide@vger.kernel.org Subject: Re: [PATCH v2] ata: add AMD Seattle platform driver Date: Tue, 26 Jan 2016 13:17:16 +0100 Message-ID: <5730117.gx9ezcyLp7@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160125204300.GM3628@mtj.duckdns.org> References: <1452789071-4090-1-git-send-email-brijesh.singh@amd.com> <20160125204300.GM3628@mtj.duckdns.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:T+CqwsonU0/bEMJLh7orksGPk2rc8lUzrg6ZGsPE4+kdkToQqJt 8exzPrVLJ9kcdc/BoWsR97pWdBWqRq8a2XpF/DdETAR0dtnz6T0QFjhjExXrcviUxsQcpkl AysbZ1YKZHBztnF7dUqKVQoRo+AuznM6oUcydXZUN2ZafVwCF4ufyKuLagDqu2Aa/XSYPNL 7uC2/gNdD6++FwT88JpdA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VRbEiYy0Ac0=:SPMW7oFMh0touYjyVyD9ji 1WRyRA/uHLMp5juL/rEdSoxwaA/DVSMEWIk4ofS6qi5RThalz/I94pLuY4m8hiYfo6keII1OB A2J1beTQzhuvW5x+yqaBj2KRnizATSWj9/KnNbgxmMV6FGygCgS37pOjwZNyzlfd8iMxwGHvT TqX6MVlRpmeCW5Rl9rGZH2IzmNEGnDu9pONVHwe9qVUd4DI0C3o3VlbOfr4zSVa+7tOhF7kpM 7SCLXeQCYgDosM8egmk41NhVI97DFUBSg+jqrEzPPyKyqRMGyZiHC4hma1nXuF++z0LJO9JL4 3ueUwOgp5yZkdzBBfLJv1Z2/5a5kZeQpnUMsOaTwCbJRm2NZsyIHtFocQabEA1KM4938FhhSV +altqIwgLmtWAvF+k9P/vu+swpiYsyphHujWVmGCJ191ck9WgfbYjEQvT5MV1ADqF9mKJYKhn CRYGLyQ32ObH8nwTc++aOMU5wqGC7f2u6orIwnBnHPWlQBZ0AH6ioy48iCkNhfXx/hQUuvZXz D9/cBMGiLPk/3kM7tWvQC9FkaVdaN2fUZBH/XUexk0kuWdI+zC7PBIKnW9KziSiJfp5XGzam7 QzC2cBKM8sQOtzI2WsAnBvjhFmURSsm/aOvlzDYh79pazPNDkpw+CGJfDu0q2klfUcNTidM1w ombNL+hP1NTesTvqf8IwjQ3mJnBq8EGit6HFF2rp7ArdpL0OTyWDUiQR4CLpGAh1iCPeqlzr4 XyUN0hOkoVBpyfTC Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 25 January 2016 15:43:00 Tejun Heo wrote: > On Thu, Jan 14, 2016 at 10:31:11AM -0600, Brijesh Singh wrote: > > AMD Seattle SATA controller mostly conforms to AHCI interface with some > > special register to control SGPIO interface. In the case of an AHCI > > controller, the SGPIO feature is ideally implemented using the > > "Enclosure Management" register of the AHCI controller, but those > > registeres are not implemented in the Seattle SoC. Instead SoC > > (Rev B0 onwards) provides a 32-bit SGPIO control register which should > > be programmed to control the activity, locate and fault LEDs. > > > > The driver is based on ahci_platform driver. > > > > Signed-off-by: Brijesh Singh > > Acked-by: Hans de Goede > > CC: tj@kernel.org > > CC: linux-ide@vger.kernel.org > > Hans, can you please review the patch? > I think it needs more work: The changelog describes it as a normal driver, but based on the previous discussion, this is just a hack to work around broken BIOS versions that can no longer be fixed in the field, and there has not been a decision what the proper representation should be in ACPI. The patch also fails to address the devicetree based case, even though we did come to a conclusion that the current behavior is a regression (compared to what we had in drivers/ide/) and that there is a relatively simple fix to do it right. I'd rather see this problem solved for DT first and then have a discussion about what the ACPI binding should look like, with a review from ACPI folks before this hack gets cemented in the kernel. Arnd