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: 9732939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 570416022E for ; Thu, 18 May 2017 08:45:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42BCC2861B for ; Thu, 18 May 2017 08:45:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 374FE28621; Thu, 18 May 2017 08:45:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9FDF28621 for ; Thu, 18 May 2017 08:45:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbdERIpd (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;