From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61B96C2BA19 for ; Wed, 15 Apr 2020 09:31:56 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 024B620775 for ; Wed, 15 Apr 2020 09:31:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rug-nl.20150623.gappssmtp.com header.i=@rug-nl.20150623.gappssmtp.com header.b="DJHXnnFy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 024B620775 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rug.nl Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jOeNq-0001Ax-KH; Wed, 15 Apr 2020 05:31:02 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jOeNn-0001Aj-BB for kernelnewbies@kernelnewbies.org; Wed, 15 Apr 2020 05:30:59 -0400 Received: by mail-wr1-x429.google.com with SMTP id x18so13973846wrq.2 for ; Wed, 15 Apr 2020 02:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rug-nl.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=J72faJymMq8EU2vGVsG1vTCxxys8trgI7YdhehAlNWE=; b=DJHXnnFyjsVFLxjKEkFpAnq84Lpa/GsUWFa1pM/SolukH8HfoPU3ihcr7ND7erFVLG WyLubSR+V8oJuYi5C3hM3GlJy6c4UySebj4wOpJGT1XOPw17PXDNzNwchPIw8WfOWXjt HTJoeXGk6tNqzm2n5hotlcE0OzqI4DfXwo6KX1zQGoeOOl7Q+Y6eU4EwO1RHyW9t2WlN kqaKQCy8RFgvbeO4Dg3TCmQMmX+MgPe4I1oRQOKBf5LpHCxoJwwPAC3EODmK7lfWQ8pZ ObFcxduSbwBr2I1p1hjOVuyLRlvoppydXbAPN1vkiFm8AsCx6/HJjO/wSshdB441efMJ mpeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=J72faJymMq8EU2vGVsG1vTCxxys8trgI7YdhehAlNWE=; b=GQV1MQ+8QM5esJnG659sQmL0zNLWHTLbMAx/u8qzVOerbf8YN7IAFi1RbKEaAxXQml /iB06RK8XMSKpT4h/4yalp6E8rLU4hc/zJ3CM+YGqTt9d+MSX/f/3eqxw2/vvV9aEqJU r9YK3WrJQyyFAXcPaIaua2YVOuYmF7IwQZrZC6KM7cEAUqjBkuyo3jZMLHZwt22Wm6ZL L22j3DjjDkVxtjWFJEJzL87QUbPREAwdtb3ZdxR3K6zjsAiPV/eVwSL6Y2TH3dUh0PMk RHxcOyNjLAxNzPpTpaOPyFuTTEVk6zGF/JrCBc2bGh23Ugb10d2i33XJPDLsgm3XwUGT PIOw== X-Gm-Message-State: AGi0PubQFVOP3FK0qGv9LRYqiHG3aPQKqkPrpJSWH1ZNmvR3+Z1fa2ri HdjzxSeWkrBm/4WOr18WI/6g0NSgZ/fXWA== X-Google-Smtp-Source: APiQypICN5hX9RTGSJjbnh5qtcNo4o3IjG2rlkA+GKRyhTXxShag4LjmiuNW/JRiSgn5/cSc8jWauw== X-Received: by 2002:a5d:6847:: with SMTP id o7mr14161975wrw.83.1586942995035; Wed, 15 Apr 2020 02:29:55 -0700 (PDT) Received: from ?IPv6:2001:1c01:420a:8c00:a9d3:daae:7410:cd43? (2001-1c01-420a-8c00-a9d3-daae-7410-cd43.cable.dynamic.v6.ziggo.nl. [2001:1c01:420a:8c00:a9d3:daae:7410:cd43]) by smtp.gmail.com with ESMTPSA id w18sm22320269wrn.55.2020.04.15.02.29.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2020 02:29:54 -0700 (PDT) Subject: Re: Trouble with allocating memory on platform driver From: "s.achterop@rug.nl" To: kernelnewbies@kernelnewbies.org References: <22fae602-5d4c-f585-8fb0-89a0884011ad@rug.nl> Message-ID: <07083b3a-2264-8b95-29cc-c0b3f6eb8250@rug.nl> Date: Wed, 15 Apr 2020 11:29:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <22fae602-5d4c-f585-8fb0-89a0884011ad@rug.nl> Content-Language: en-GB X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org On 4/4/20 5:21 PM, s.achterop@rug.nl wrote: > Hello list, > = > Trying to create a device driver for a raspberry pi zero (BCM2835) to con= trol a gpio and an spi device. > This eventually will be done in a FIQ interrupt handler. > A simplified version of this batradio-driver can be found at: > =A0https://github.com/SietseAchterop/Batradio/blob/master/batradio_modul= e/alloctest.c Regrettably no answers until now. I only can add that the same code fragments are used in an example that I f= ound on https://bootlin.com/blog/fiq-handlers-in-the-arm-linux-kernel/ where it is contained in the probe function of the platform driver. Is there maybe a better place to ask for help here? Thanks, Sietse _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies