From patchwork Thu May 18 08:45:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 100055 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp615004qge; Thu, 18 May 2017 01:45:34 -0700 (PDT) X-Received: by 10.84.232.206 with SMTP id x14mr3478876plm.90.1495097134597; Thu, 18 May 2017 01:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495097134; cv=none; d=google.com; s=arc-20160816; b=GOZRGPCmcOFHfaj7IqF4a/v3Nnf8K5HLUJk3DLv+PNAT9HVPC8J6FCxL69+74CkD2c eaVZ2tQ8wnmGssVVfM/5jrdbzjrjQrUkqIUtjqXBzba2ZZbdmxFNzBKOAlsxPWqoEtzo FI+gIKD4qHZV1BSBGUbJE8PspZbgFfYWdfKCHm1F+5P7UttEVnv8hRr6/3CLjiJpt6lN hj1Rp5yfRwKrO5GrEGI/Ge3L8SV8bu73lNCiih79DGNsIxNF1a74L42EgEr2TswK2uui xs3NKyP7s/GibIFhoDwEH2USrW2obbzez/OIKPqzcXeY7s5Whr0VFscqX/Z9Sbr/IRy+ bqqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=+dg3wYFOcaMiB163di8MlPLcM1ymKZgUJios9PFK9Ps=; b=jR+cPb8I37AYLZdiHY94yc47t7VOA0s4ZfNcG630ciES1dmsev4Xzi0UUvh19o6U8D dwTvM6GAofQ8N7bsm07fe3+f7m6KCTETd7t6Pe1I+WdDhCd1SDPoDsnP7Zv5rDbpCkra /c8Oh8Tm1IoL4nR/1fPr4z4hYEilyDNFeg313kzAfxCMQ3YgUJMh2bpqPzVAIf01DsvP Txf3EHvs0lWfWjGssWkFxmTq3e1S2G1lpSQ7p1rnz3hkilPQcv5rjunvv1ItrpOmTn29 AF7Npd1zNHBzTl9vWOtnPkyrp2InpWlssIFjBZHolDpRNSBns9JlEwo0Rf145yGaBoxx ViHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z135si4196354pgz.5.2017.05.18.01.45.34; Thu, 18 May 2017 01:45:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbdERIpd (ORCPT + 4 others); Thu, 18 May 2017 04:45:33 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35934 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbdERIpb (ORCPT ); Thu, 18 May 2017 04:45:31 -0400 Received: by mail-wm0-f51.google.com with SMTP id 70so38175214wmq.1 for ; Thu, 18 May 2017 01:45:30 -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; bh=+dg3wYFOcaMiB163di8MlPLcM1ymKZgUJios9PFK9Ps=; b=F5G484PZXUAKjQsbIjI2HHakARV3Drpd+Tl4RW4n6rpxHSt+XCkSyikUZfOtVFN67c 1DTny2TXrxepGnni3BCmx78yf3sHy64DXnzI9Jh73v2ExgTVjWtdBsG6CmyFPmEERkly acPAwO2gwEs4HK54Ry9yxEcsfBFoc4+k9dga8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+dg3wYFOcaMiB163di8MlPLcM1ymKZgUJios9PFK9Ps=; b=lpfB1rZcZWHLnktNOPf/WoO1fdGfluClMrsNygM21NuraVirpJYCeD6AkFJ3WZTjVJ E27M9YdICcz4d4BlJfgWV2fkQZ0eLlyXAyQOi/XdkeVXlKSYaqoMmRxN0SywVjwnjoGR seuF0zzfzfpg+u8lcK9c0uVdvgvH2L8UOefp4dAycSR6LQ7xJd8HCzKcckwLOf75jiE2 ar05Bx5vWdp714H3gD8x5QKIx/5xU2wkT9wrKQake6iB0bSyFvUlObf05ByUnNd3yJ1S L4rmClPITne8vdL1EBtmpRndmNQLv40DHJ3iDgnYy0vpgW7KDpGGJD9sJJTqQgpUfK90 YHng== X-Gm-Message-State: AODbwcAwJ22zUdRa+ZJMSnuGgC/PRKkwHWi3YI3AW3MxbMGXlRMKj2op +CjBHT/aDLXlEXzx X-Received: by 10.28.13.1 with SMTP id 1mr2222246wmn.12.1495097129648; Thu, 18 May 2017 01:45:29 -0700 (PDT) Received: from lmenx321.st.com. ([80.214.31.122]) by smtp.gmail.com with ESMTPSA id n184sm15187074wmd.32.2017.05.18.01.45.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 01:45:29 -0700 (PDT) From: Benjamin Gaignard To: hverkuil@xs4all.nl, linux-media@vger.kernel.org, hans.verkuil@cisco.com Cc: Benjamin Gaignard Subject: [PATCH] cec: stih: allow to use max CEC logical addresses Date: Thu, 18 May 2017 10:45:09 +0200 Message-Id: <1495097110-20216-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hardware could support up to 16 logical addresses which is more than needed by CEC specifications. Let use CEC_MAX_LOG_ADDRS instead of limited it on one. stih_cec_adap_log_addr() function was alredy written to support multiple addresses requests. Signed-off-by: Benjamin Gaignard --- drivers/media/platform/sti/cec/stih-cec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/media/platform/sti/cec/stih-cec.c b/drivers/media/platform/sti/cec/stih-cec.c index 65ee143..6f9f036 100644 --- a/drivers/media/platform/sti/cec/stih-cec.c +++ b/drivers/media/platform/sti/cec/stih-cec.c @@ -354,7 +354,7 @@ static int stih_cec_probe(struct platform_device *pdev) cec->adap = cec_allocate_adapter(&sti_cec_adap_ops, cec, CEC_NAME, CEC_CAP_LOG_ADDRS | CEC_CAP_PASSTHROUGH | - CEC_CAP_TRANSMIT, 1); + CEC_CAP_TRANSMIT, CEC_MAX_LOG_ADDRS); ret = PTR_ERR_OR_ZERO(cec->adap); if (ret) return ret;