Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1197158rwb; Wed, 16 Nov 2022 13:41:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf6r7k1NpByGzlnc4KcUlGsp8pa2Byhz5dzxA6KpLSycZTXubHKrfSihugmCZKV9ThyByjrf X-Received: by 2002:a17:906:d115:b0:79e:9aea:7b60 with SMTP id b21-20020a170906d11500b0079e9aea7b60mr19738552ejz.444.1668634873178; Wed, 16 Nov 2022 13:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668634873; cv=none; d=google.com; s=arc-20160816; b=bRtfP9Xxwgog/QoHIOPxPL2IXivXAGf+S+vmU7q+Qbsd+5FU2YozHvTYP5LOK0h9li DWcEQfxwN82F9Q9moxYc8p4gZIyo9H8fPTh3io8sJy2UVysOnsE8vBhQZAbMPk2lOVuW jyvbZCXLgaqaEV88zDGcl4sDoKuj+PNlmxs7uaKVazCM1vzvOb9GBk4ijg5JB72NFlQv CsH2Wk0Nu33L/zsXhE0eQUC/NATGjSAbOMRiqY2WF4ys5lh5/A8sWwhEkLqDJx+ToqRq g3lvl8TuN4JDnQhwvstxh1fiAZP6OO5iHuHq/Ark3Oj0iMiVp72YwpnuydMF0vTq4Me9 0exQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=HlCjQh0PM4VxAkXSFUydKz6XObLOjybN1uDS27puHFw=; b=TDADsusR0CgEsj5YZ5oKW0S2/SthjZ9ZX3yz9KQvtiqS8y8Usi/WTUryY4gxIJQLRj XSCT7ZPB4mQOarM4wb74jEYW7Ek6N/x56IXE2VtDjCdVzctblWTDeFaeteadJ7EsPSR6 9lCBIuqq80UH7l4TI6j5ew5Boqct9vKlTn3LSDtvCQCufydswdoUlFYPbWm0uVbu4+hN Uo487rH/3iAcpI8nn5jvtR8nuIShaNapCqP0FdJBfFD82/LH1oJb4HB81lWzZObCLexZ Lcv9zQpIhtqpm6o6S8LltZcbKemXpd42q6XRMcWeFblBJa34jTBK5UmOb9txlU5HgduK iMaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a056402440900b00463525e8776si16323813eda.491.2022.11.16.13.40.51; Wed, 16 Nov 2022 13:41:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232377AbiKPVfv (ORCPT + 91 others); Wed, 16 Nov 2022 16:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbiKPVfu (ORCPT ); Wed, 16 Nov 2022 16:35:50 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C42CD2F1 for ; Wed, 16 Nov 2022 13:35:47 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 9479C92009C; Wed, 16 Nov 2022 22:35:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 8D76092009B; Wed, 16 Nov 2022 21:35:46 +0000 (GMT) Date: Wed, 16 Nov 2022 21:35:46 +0000 (GMT) From: "Maciej W. Rozycki" To: Sudip Mukherjee cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/6] parport_pc: Fixes for Oxford Semiconductor PCI/e parallel ports Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_HDRS_LCASE autolearn=ham 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 Hi, After several iterations I have now finally made my PCIe parallel port option card based on the Oxford Semiconductor OXPCIe952 ASIC work with my RISC-V system. This has turned out a generic incompatibility issue between our driver and somewhat quirky OxSemi hardware giving the same symptoms with an x86 system as well, where the driver tries to use the Parallel Port FIFO mode, which is indeed documented by the relevant datasheets as not supported by OxSemi hardware. Additionally the hardware requires a specific bit pattern to be written into low 5 bits of ECR while poking at the mode in the high 3 bits, and while the OXPCIe952 implementation does not appear sensitive to it older ones seem to and may lock up according to our own history. This small patch series addresses these problems in 6 incremental steps. See individual change descriptions for further details. I have verified these changes with and w/o PARPORT_PC_FIFO and PARPORT_1284 options set. Please apply. Maciej