Received: by 10.192.165.148 with SMTP id m20csp1529018imm; Sat, 5 May 2018 14:38:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqcvFAZL//5OSyRaHt0zgjZ5xgtbFzBuVAqqYqPSdklIKUxRXfEZVMEJSVAmT1qPfKpy9kK X-Received: by 2002:a17:902:7e4a:: with SMTP id a10-v6mr33126238pln.276.1525556330029; Sat, 05 May 2018 14:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525556329; cv=none; d=google.com; s=arc-20160816; b=GQZf7tZ5qsH4MVJdgvDqn+Fr1T1dZHGScgSaMOsENHpe2Ar0Y0Ddt0s/Lw0hgGQgy+ u7atAiN+U+7UW8w44eMTGl4AU9Eet/gfq9tZsNTNMAKQGcecjf2GGvkg9h6n9/VFwSFK ZhH+a/bSaw5M2InxNxRJUiXCamsJ0n5oRjTx3NL9JV8IyaN5fBZe0H8OS6ohBi2TueMl PGErKgdWGWSpGDXtnhzrqKr5Biy1RY5pTE4U9yCMTyih1gxMwy3+/qh9t0Kifh6OPITW oVaj+BFuJsZ1ycuWx1V9mnmWBn1uWCBTkcydom+3FkVrG723uTPQyoVkDFKSFE9vd6d2 cR8g== 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=eXklJFlqDNjk8u7Lx46il6/mzgeXH9uVBaUnQqWGGDY=; b=lv1f/GzRWHDNtEb6rSB5tKgW1TKBGVB7SzUC3SQrHankGSWAGrq/+Ul9YO5mq6ScPF xvQQxr5i1yLRJ9PC50qu1QMzCoY+JtV6gCJ4t6MBGy/OGIM8nFp+4c8/oE69P0uTMp0A zkLm2TzrnARJqhen4VRIrs9AOHLSzzqoaE6E7hcVrPlesy76KQKU0XAxz8H/y+FdUlPx H1AgBz0ZY3Q1vq6rQglxqCp3X4gulx6VvqVUaoKoBsGT3ZCz85ESGexlGEcwgrOwghWQ j3qTnv7ORPpBNcf7h0buVSRQr2tVE+banexgz+47pNp2vPV05psBmHXV7PrrM2wUJeb2 YmMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lVTdx60A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15-v6si15805138pgs.351.2018.05.05.14.38.35; Sat, 05 May 2018 14:38:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=lVTdx60A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981AbeEEViI (ORCPT + 99 others); Sat, 5 May 2018 17:38:08 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:33385 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbeEEViE (ORCPT ); Sat, 5 May 2018 17:38:04 -0400 Received: by mail-wr0-f193.google.com with SMTP id o4-v6so24290412wrm.0; Sat, 05 May 2018 14:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=eXklJFlqDNjk8u7Lx46il6/mzgeXH9uVBaUnQqWGGDY=; b=lVTdx60ABztxzgiYucrNQ5Pf4sWNlOAG5AMeu3ArREyIjOizS6+gr1Ynumt065H6C4 hAF4hPIVf3NqQxd8tIBchyN7zKC3ffMX0HBIKpB+tmeQ191etKYYJfCJYTSKbkm74DT9 WmMIvY/2Kt78T3JouCpihdhU6EMyALwKLckS2QMQ7KUJrqU8zbpVX4qJqm8InZd/oKvv r67QBZ6ElZ/5D0073kDlN6Ej/C05OdmRZTTl9j3LSDRSpVGWN509K+gUqfbOPi0o1svg JJvRmjiQzdIhzLBCLgy6OhrsiCz1K+IIs0i+NbG4tHwNp8Rd/K+vx9thP3PGRXzvE2XN 10AQ== 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=eXklJFlqDNjk8u7Lx46il6/mzgeXH9uVBaUnQqWGGDY=; b=hcP0VOTjo9b8FJaXo0ENcnF90UQIB4gmlwMbBUQ7rDjLN+xsT9ieTnq7gotf/XGFcH tkZwFXhblrmAI+kXaG5sY/FUOkQSb8n+EUREquPWBS/wgUK96Km7GgIGhcBuQasSC60o VzH7YUlpQWQjhXtbf0uw5p+1N+MnbFrP54CF0P/Y/OP5kMU79HZzHj34K7WzP//TNXSY NvunL900Ke0IQVI71qiVLzmT0ZqBTuvsYlEISXQpC3TmhGCr7lzqztvuVLQovOHRh93V x+gJ8j9BirAvda3wjRJeWBF1FKQ5mL/1Cn1WNeyIlWFhE27DHE8ZZklEZIMx9zpv7/A9 PEyg== X-Gm-Message-State: ALQs6tCxFI5lLji8l58nNYEahGPRvwbjuvPpyi51PtDFombjw4WtODVg ebJlkC4y6GRlZ1JfBEL8Q6Y= X-Received: by 2002:adf:8ab7:: with SMTP id y52-v6mr24268732wry.98.1525556283071; Sat, 05 May 2018 14:38:03 -0700 (PDT) Received: from noctune.station (net-93-71-68-108.cust.vodafonedsl.it. [93.71.68.108]) by smtp.gmail.com with ESMTPSA id 135sm5472032wmx.21.2018.05.05.14.38.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 May 2018 14:38:02 -0700 (PDT) From: Andrea Greco To: m.grzeschik@pengutronix.de Cc: Andrea Greco , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/3] arcnet: com20020: Fixup missing SLOWARB bit Date: Sat, 5 May 2018 23:37:54 +0200 Message-Id: <20180505213754.8400-1-andrea.greco.gapmilano@gmail.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Greco If com20020 clock is major of 40Mhz SLOWARB bit is requested. Signed-off-by: Andrea Greco --- drivers/net/arcnet/com20020.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c index f09ea77dd6a8..abd32ed8ec9b 100644 --- a/drivers/net/arcnet/com20020.c +++ b/drivers/net/arcnet/com20020.c @@ -102,6 +102,10 @@ int com20020_check(struct net_device *dev) lp->setup = lp->clockm ? 0 : (lp->clockp << 1); lp->setup2 = (lp->clockm << 4) | 8; + // If clock is major of 40Mhz, SLOWARB bit must be set + if (lp->clockm > 1) + lp->setup2 |= SLOWARB; + /* CHECK: should we do this for SOHARD cards ? */ /* Enable P1Mode for backplane mode */ lp->setup = lp->setup | P1MODE; -- 2.14.3