Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp618306iob; Thu, 12 May 2022 00:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd7degycbfGutt8H0TGfDqt2/kI5i6E/bOobqpiXAbm9j+0k7cbuEKXjIjeI+e1VTtbMl2 X-Received: by 2002:a17:906:fae0:b0:6fd:d8e0:449e with SMTP id lu32-20020a170906fae000b006fdd8e0449emr5748773ejb.549.1652340551890; Thu, 12 May 2022 00:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652340551; cv=none; d=google.com; s=arc-20160816; b=rT0xVrFdAv8vlrvHY9DMbxjR3D8jxFIkZd0gne0flzoUKQrR5uN03DtoxrP57aWID2 knkY93NnjKgznXtvUD6kUFOcA1Erz5WywKpzwWO2xAkrT/UF/ssJuxo9CJ/wELuEIvxE Ed0aR2huZq7DSVGAJpTY7IsIChI8TkbpND9DVg3ByyeSuFhb/Kjc05mtbbEOIk2jSKuW AaoRUxX/AFvJ465DOIycRiaRq78GQJfrBrvMrNiWaVPiPAXa6xidzxDoNxfyVKJLXzJO USVAgIZ+Ebf3Z6PVNj+Txwpf3uMlKx2pdTGUSzmkbaqK8iez7Zi9NOKUlCsJovqjAyyN P3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=ynfVyISLTocoM+sP5RWAS58Ty5c+joUC7e/SGWdE+18=; b=zz3xg0/bsJS1fq5zV6nVTPB+88Xh6ZUipaWSFfe1EmoV0B6HvJdNVbGDFaRR8hPVsr H1ycuPtevBVYzjgZR1TO08kThz7EDQdkXGNqpW7PC2TCYy4BO2sHaVYrsE2w8EigzmHT nBUKJcaOe+ty/qsfJfrbIiAn3z/poJ0ofg1gPa/cLaRJt899lb2k20bNZ2OY0yDM6e2z AD/ogwpyz66TVNQju6YlZ1lx65DJVJ3B3MpaiA0Ld4CKpccvvIOR/0wup8Nlw6k/0LCF fEvA4wGsCum+H/H1QuFjTPWS/3u6oeaKq0iT9sb1wKxtD/DhdoFU/y4gh4Ft7wCCw7I8 g93A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Syw6Wsqd; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a1709064e0300b006eff1450aebsi4126754eju.691.2022.05.12.00.28.46; Thu, 12 May 2022 00:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Syw6Wsqd; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350608AbiELG6D (ORCPT + 99 others); Thu, 12 May 2022 02:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350613AbiELG4o (ORCPT ); Thu, 12 May 2022 02:56:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04B751836F; Wed, 11 May 2022 23:56:43 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B75F51F91A; Thu, 12 May 2022 06:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652338601; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ynfVyISLTocoM+sP5RWAS58Ty5c+joUC7e/SGWdE+18=; b=Syw6WsqdVcqFLDaZzsl+SWMrTmcGh2z6NY7TO/vV5kDe7WWbv4h6m5eRAjbZxXkFqyJpUP IhMfTLAvEruURlOP6Efk6CKIcuG4BpwSky4a2/uzHaw5VGw5XRTcMYYS9wajdkP6h685UQ t/6rN5C7GiNlV/EVf1ZMiEoSAhDXGbc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652338601; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ynfVyISLTocoM+sP5RWAS58Ty5c+joUC7e/SGWdE+18=; b=6kpqeVcGuGhqU/hg86ZGgh4ayDEm95Yjwg18QAMcWqXORog6QaFW56gKF4HdGhE+iJGnVs 2b/auzxAfL5wNMDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9412713A97; Thu, 12 May 2022 06:56:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hprbI6mvfGJSWQAAMHmgww (envelope-from ); Thu, 12 May 2022 06:56:41 +0000 Message-ID: <5d7ae3e5-3f21-a610-7beb-274ede95850d@suse.de> Date: Thu, 12 May 2022 08:56:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v3 12/23] dt-bindings: ata: ahci: Add platform capability properties Content-Language: en-US To: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe , Rob Herring , Krzysztof Kozlowski Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> <20220511231810.4928-13-Sergey.Semin@baikalelectronics.ru> From: Hannes Reinecke In-Reply-To: <20220511231810.4928-13-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/22 01:17, Serge Semin wrote: > In case if the platform doesn't have BIOS or a comprehensive firmware > installed then the HBA capability flags will be left uninitialized. As a > good alternative we can define a set AHCI DT-node properties to describe > all of HW-init capabilities flags. Luckily there aren't too many of them. > SSS - Staggered Spin-up support and MPS - Mechanical Presence Switch > support determine the corresponding feature availability for whole HBA by > means of the "hba-sss" and "hba-smps" properties. Each port can have the > "hba-{hpcp,mpsp,cpd,esp,fbscp}" defined indicatating that the port > supports the next functionality: HPCP - HotPlug capable port, MPSP - > Mechanical Presence Switch attached to a port, CPD - Cold Plug detection, > ESP - External SATA Port (eSATA), FBSCP - FIS-based switching capable > port. > > Signed-off-by: Serge Semin > > --- > > Alternatively we could define them as a bitfield, but having a set of > boolean properties seemed a better idea since in that case we can > implement a simple inter-dependency rules for them, which can't be done > should we take the bitfields path. > --- > .../devicetree/bindings/ata/ahci-common.yaml | 66 +++++++++++++++++++ > .../bindings/ata/ahci-platform.yaml | 11 ++++ > 2 files changed, 77 insertions(+) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer