Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp168164iob; Mon, 2 May 2022 16:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfrxEtyUZbJlOXU/vTABo185VmPQVMHy36c/RKWVasRjLVtKuPcb2e29KSegwC0G9HH5Nq X-Received: by 2002:a63:e60b:0:b0:3c2:2450:135a with SMTP id g11-20020a63e60b000000b003c22450135amr5429411pgh.8.1651532905331; Mon, 02 May 2022 16:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651532905; cv=none; d=google.com; s=arc-20160816; b=E+LSzOsltMw4uVdcxHzc/4Tj2kjt4bHvoCn4f/DIbJfiOE5H+9dzwasjnbei2DMPeq WJSS5qeUE9izs1To2hEeCbN/0ejh8K9WJfC3ZqXhtw6iZeWb0cuI7A+ZtazkojL28YiR bEyJNalXDR6M/RrruJCGm6kozrj6yyM2sPQ1oXvkclV6gna82G91BdGM75fPJ5XR1EEe GhU0nTk12p2OMVreoMnyP9z3YujxPVey9L8AI0QetrdU0U5zV8ju3UMC7UmzSO72YX+2 Z9/E3m479KkGwB9edHq55eqw6HOs55axBHSYCBDG7ghO6S0yYAL+tsBXJvxKH+Z8iUQt Ob4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oxKWDdPeJSszfEeucG2we5seobARL3GADW6N1hKVnQg=; b=OJLUfVraQhSn9tkVwLyAS244ixJZvYX6QxeTOCgE0j5kub653QLIVqRdvhrk2MeTEp vNdNaqrxAbaNXHDdJ+kOceobJ75Bz1jgpsWlVm1AY+IcbEaa/dDxWgV4h6joDyQVvSi5 0KDywoCEvdtepAYGXKuIeR3OmhspR3t1VwZFJpSOe97bK6zJe0U8mpK05k4oAUcSLG4N V1GDdjP6ntouQD1ypp1HvUFFx30+i3PhpimXVvTIZlsFvVRJaknDI4gF695+WX/zTmHU T/veVt4maTKK1cK8CrtDlfKKPBcVIgb+XUaPQKmqiaT0flYCk4qWOWzXqGmLfx+NKt4b y+6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+m2BX1P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 6-20020a630a06000000b003c233469c0asi3282831pgk.745.2022.05.02.16.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+m2BX1P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B1ED2ED7A; Mon, 2 May 2022 16:08:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379198AbiD2QcQ (ORCPT + 99 others); Fri, 29 Apr 2022 12:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233386AbiD2Qbc (ORCPT ); Fri, 29 Apr 2022 12:31:32 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D14BEDA6DB for ; Fri, 29 Apr 2022 09:28:13 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id b19so11431324wrh.11 for ; Fri, 29 Apr 2022 09:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oxKWDdPeJSszfEeucG2we5seobARL3GADW6N1hKVnQg=; b=F+m2BX1PfLfgcsjPS6StmQGPm0KVXiOgrJOM3YVrl4fnSRDbR0WvBCkFLRxA8qjx5x 0STv1ljFF/ClJ3jXwjaCI4hzB2dcigkIqdElO9EkeSr2jCr9Xw0Pl32NPC76l3TnCDsS pmfIu9AMTUbQ3NEUJLvDDo/bHWDyhk5OBfybOvX/i7JwfO/J8C0cHHQqgh+fqq0L051i PfNQ5by2l/AulaE3y+1fDghTHvWFW5oH0ITvCrwjPCglQcSOv/HH4YAjTS9umDXdSF0m P3MZXptsn7y+hkEnsINg4uIuQcnr2GOL2c4yNWs3DCoWi3CcWUZkL1bATZ1DTwUm/QqA qWeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oxKWDdPeJSszfEeucG2we5seobARL3GADW6N1hKVnQg=; b=4Ljrf/fOMSSH4/dLsQ0jtZX+ht57YRVaUcsIlL9mgMiQJ06RQ2enS2Fe/sbIbbIBoz JIbJRCwUpXzDc3ZGp1RpcIW1hXxcn8FwWIMbnwYfF5XyYiNPiuCwNl16y5m68bRkSQBA 2iNNvQN1y6Emk83KW77DuTLKp14wM2TJ6ELNzRZEh9Kb4ZCe/wwBPwMke6TnHGAe6hD6 T/l1gkjLD9+G9EM1mc6+sHgILCemUHZn0v/vK6An86wZll/a9hWuQ7mug1blrjdvMFRX lsmppnETntXFntIrcIV/jH+V4zSDdRb68J9SGCgrt/NxgIe3raseZqPw4g52MeJm1sWO +71w== X-Gm-Message-State: AOAM531i74jzPWc2TZM5fAe0IiwdbIMdVFDCCsp97da7aYf9dhkMaVuB tCiWnfSu+PnTCeWJscOlPNwQHjaGGnEOqA== X-Received: by 2002:a05:6000:1e08:b0:20a:873f:13b3 with SMTP id bj8-20020a0560001e0800b0020a873f13b3mr29950222wrb.52.1651249692377; Fri, 29 Apr 2022 09:28:12 -0700 (PDT) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id b5-20020adff905000000b0020a8781be70sm2781801wrr.12.2022.04.29.09.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:28:11 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Sean Anderson , Srinivas Kandagatla Subject: [PATCH 16/16] nvmem: sfp: Add support for TA 2.1 devices Date: Fri, 29 Apr 2022 17:27:01 +0100 Message-Id: <20220429162701.2222-17-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220429162701.2222-1-srinivas.kandagatla@linaro.org> References: <20220429162701.2222-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Sean Anderson This adds support for Trust Architecture (TA) 2.1 devices to the SFP driver. There are few differences between TA 2.1 and TA 3.0, especially for read-only support, so just re-use the existing data. Signed-off-by: Sean Anderson Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/layerscape-sfp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/nvmem/layerscape-sfp.c b/drivers/nvmem/layerscape-sfp.c index 59083f048921..e2b424561949 100644 --- a/drivers/nvmem/layerscape-sfp.c +++ b/drivers/nvmem/layerscape-sfp.c @@ -78,12 +78,18 @@ static int layerscape_sfp_probe(struct platform_device *pdev) return PTR_ERR_OR_ZERO(nvmem); } +static const struct layerscape_sfp_data ls1021a_data = { + .size = 0x88, + .endian = REGMAP_ENDIAN_BIG, +}; + static const struct layerscape_sfp_data ls1028a_data = { .size = 0x88, .endian = REGMAP_ENDIAN_LITTLE, }; static const struct of_device_id layerscape_sfp_dt_ids[] = { + { .compatible = "fsl,ls1021a-sfp", .data = &ls1021a_data }, { .compatible = "fsl,ls1028a-sfp", .data = &ls1028a_data }, {}, }; -- 2.21.0