From patchwork Tue Feb 15 07:27:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12746560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EAF8FC433F5 for ; Tue, 15 Feb 2022 07:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6s4IJatq/ZKP0pqMCuYIOug5gDI4OfFiwuLaeu4Kz+4=; b=pEOxH8VJHdhP7z iv5UM4EzV+ZPjOZ8r+PvyXh65BqJZEix+TCNtuhveHcSq7jUVqX7iCyhkcSVBcN4g4BzljSoSwfts MA726m9yWtD1blj0AdOhpkgS8rnrr85i1EkVQscDQBagy48iKjIJfLBcvne+cxL7I3wRTBXEaRYZW k8n+x5UNigzUWxDv1WQfzJQvfDdUtiaww2nNLm1TvtBaPolY/ACzMA+5l7TmsakyOsbEgjcrg0TcS ZdbbjzZSKJOTMg5qOK1uh7t40EV19tpWdoamFvIFdqSU029AZbMOtrHYUzcJVp2l3lkHxHLA3ZfRU ZKGpT1qtIFvzOHbVhBgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJsFb-001CT7-I1; Tue, 15 Feb 2022 07:27:51 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJsFW-001CPl-FC for linux-arm-kernel@lists.infradead.org; Tue, 15 Feb 2022 07:27:48 +0000 Received: by mail-lj1-x230.google.com with SMTP id d2so3114648ljl.1 for ; Mon, 14 Feb 2022 23:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mwXfURWRRFSQ93MpcoTcwvmUvVA7/3MO8WoXlU+6SNU=; b=dc6zN7vCCMwYw7ZSQNxXgT1Qh+ORz16Lj4xvvU54FTUEehUSG3ZMnOeQIZQCafsm/0 dWkYSC1H8Cq3ULOCUIL4J5p21h5L8MjT1zzNKdjFpvgfvYyT/lhbsWu3b7Du3AakyzWd BeOc+pfWnlob66O+Io3LhkbFjFkk6MZ8tmOgiS3VlTxX52PTV0U9XETkOTS5Oa6mCvnT mjneO03oAbzVj31OYGDJ+M9eWWKJU1Hpk0tofSD29IS3eeC3ku5+v2a4YbXt1GNGKjqv ZiotZTTy+b2M5e7KxXZyMqOUBW3V4M0SjkC7btpWgu10XkCm8BC//EPUqOACA9QtKb98 l30g== 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:mime-version :content-transfer-encoding; bh=mwXfURWRRFSQ93MpcoTcwvmUvVA7/3MO8WoXlU+6SNU=; b=WJ21kjWpbOcRBh2v7slYs/wVfbPJ45YKcXIPatKe0+Xn4aJkksDUMXODnFS6uwugzR 6MDtI+IQlhZg8gytOWPsivkxb9GTX1r4Iu59M7GMh60xmjdDI3kdDW/7CD8Fhb1cs2+V 3JIFhxaDo8q1BhiteY2jQKPD/NrReKYGpaZrxYN8jRtlcPCUPebwkJn5aZaViAe8YUwm s20J4K0n/HX/UmMdt2+SI6K1K6tqyIxNhXkLvsiwZHzCb0I+pEqc9BksdA1erCz1EmLu HJJzp+o6MdWu8ZtGz63sOONWXD/eEZ2OQ5jqAw1KRrqnauiN/Y+INJqgCA3OAmqlcVvq +gqQ== X-Gm-Message-State: AOAM531klhbFEbGSfT3JcpH5fsbB25G95o88vkSfqS/AVsYFtTB7PLJ+ FkVwYZbdTZ/KccCXreX7RvI= X-Google-Smtp-Source: ABdhPJyABb6eMTTYrFrs2t6P4KNEy1v2OJO7d+6r0KjQtprn/CkyRJZH175YG1z+uXomAazvfQjLfg== X-Received: by 2002:a05:651c:54f:: with SMTP id q15mr1641979ljp.0.1644910064529; Mon, 14 Feb 2022 23:27:44 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id p21sm4315071lja.32.2022.02.14.23.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 23:27:44 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Wolfram Sang Cc: Kamal Dasu , Florian Fainelli , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] i2c: brcmstb: fix support for DSL and CM variants Date: Tue, 15 Feb 2022 08:27:35 +0100 Message-Id: <20220215072735.17335-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_232746_543780_D2C1A9A7 X-CRM114-Status: GOOD ( 14.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki DSL and CM (Cable Modem) support 8 B max transfer size and have a custom DT binding for that reason. This driver was checking for a wrong "compatible" however which resulted in an incorrect setup. Fixes: e2e5a2c61837 ("i2c: brcmstb: Adding support for CM and DSL SoCs") Cc: Kamal Dasu Signed-off-by: Rafał Miłecki Acked-by: Florian Fainelli --- drivers/i2c/busses/i2c-brcmstb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-brcmstb.c b/drivers/i2c/busses/i2c-brcmstb.c index 490ee3962645..b00f35c0b066 100644 --- a/drivers/i2c/busses/i2c-brcmstb.c +++ b/drivers/i2c/busses/i2c-brcmstb.c @@ -673,7 +673,7 @@ static int brcmstb_i2c_probe(struct platform_device *pdev) /* set the data in/out register size for compatible SoCs */ if (of_device_is_compatible(dev->device->of_node, - "brcmstb,brcmper-i2c")) + "brcm,brcmper-i2c")) dev->data_regsz = sizeof(u8); else dev->data_regsz = sizeof(u32);